This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 069a9e9592a [fix](cloud)fix tablet_path when rowset is null (#52280)
069a9e9592a is described below
commit 069a9e9592a36144e60eed6e466539a83f149320
Author: koarz <[email protected]>
AuthorDate: Fri Jul 11 12:04:46 2025 +0800
[fix](cloud)fix tablet_path when rowset is null (#52280)
---
be/src/cloud/cloud_tablet.cpp | 4 ++--
be/src/cloud/cloud_tablet.h | 2 +-
be/src/olap/base_tablet.h | 2 +-
be/src/olap/tablet.h | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/be/src/cloud/cloud_tablet.cpp b/be/src/cloud/cloud_tablet.cpp
index 673d721d84e..23fa4d680fb 100644
--- a/be/src/cloud/cloud_tablet.cpp
+++ b/be/src/cloud/cloud_tablet.cpp
@@ -78,8 +78,8 @@ bool CloudTablet::exceed_version_limit(int32_t limit) {
return _approximate_num_rowsets.load(std::memory_order_relaxed) > limit;
}
-const std::string& CloudTablet::tablet_path() const {
- return get_rowset_with_max_version()->tablet_path();
+std::string CloudTablet::tablet_path() const {
+ return "";
}
Status CloudTablet::capture_consistent_rowsets_unlocked(
diff --git a/be/src/cloud/cloud_tablet.h b/be/src/cloud/cloud_tablet.h
index f5a767a2ea7..a08526c5ff6 100644
--- a/be/src/cloud/cloud_tablet.h
+++ b/be/src/cloud/cloud_tablet.h
@@ -70,7 +70,7 @@ public:
return _approximate_data_size.load(std::memory_order_relaxed);
}
- const std::string& tablet_path() const override;
+ std::string tablet_path() const override;
// clang-format off
int64_t fetch_add_approximate_num_rowsets (int64_t x) { return
_approximate_num_rowsets .fetch_add(x, std::memory_order_relaxed); }
diff --git a/be/src/olap/base_tablet.h b/be/src/olap/base_tablet.h
index a8dfe2cd1de..6905964b758 100644
--- a/be/src/olap/base_tablet.h
+++ b/be/src/olap/base_tablet.h
@@ -103,7 +103,7 @@ public:
void set_alter_failed(bool alter_failed) { _alter_failed = alter_failed; }
bool is_alter_failed() { return _alter_failed; }
- virtual const std::string& tablet_path() const = 0;
+ virtual std::string tablet_path() const = 0;
virtual bool exceed_version_limit(int32_t limit) = 0;
diff --git a/be/src/olap/tablet.h b/be/src/olap/tablet.h
index a52755c1d04..afd44950a4c 100644
--- a/be/src/olap/tablet.h
+++ b/be/src/olap/tablet.h
@@ -116,7 +116,7 @@ public:
DataDir* data_dir() const { return _data_dir; }
int64_t replica_id() const { return _tablet_meta->replica_id(); }
- const std::string& tablet_path() const override { return _tablet_path; }
+ std::string tablet_path() const override { return _tablet_path; }
bool set_tablet_schema_into_rowset_meta();
Status init();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]