This is an automated email from the ASF dual-hosted git repository.
morrysnow pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.1 by this push:
new e6506cb2346 branch-3.1: [fix](meta) Do not copy it when input rowset
meta dont have load id #52088 (#52097)
e6506cb2346 is described below
commit e6506cb23464354a50fc6bf8ec38e359dd0d8c71
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Jun 24 10:46:49 2025 +0800
branch-3.1: [fix](meta) Do not copy it when input rowset meta dont have
load id #52088 (#52097)
Cherry-picked from #52088
Co-authored-by: Siyang Tang <[email protected]>
---
be/src/cloud/pb_convert.cpp | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/be/src/cloud/pb_convert.cpp b/be/src/cloud/pb_convert.cpp
index 0d24192a758..2883fb51d0f 100644
--- a/be/src/cloud/pb_convert.cpp
+++ b/be/src/cloud/pb_convert.cpp
@@ -213,7 +213,9 @@ void cloud_rowset_meta_to_doris(RowsetMetaPB* out, const
RowsetMetaCloudPB& in,
out->mutable_delete_predicate()->CopyFrom(in.delete_predicate());
}
out->set_empty(in.empty());
- out->mutable_load_id()->CopyFrom(in.load_id());
+ if (in.has_load_id()) {
+ out->mutable_load_id()->CopyFrom(in.load_id());
+ }
out->set_delete_flag(in.delete_flag());
out->set_creation_time(in.creation_time());
if (in.has_tablet_uid()) {
@@ -268,7 +270,9 @@ void cloud_rowset_meta_to_doris(RowsetMetaPB* out,
RowsetMetaCloudPB&& in,
out->mutable_delete_predicate()->Swap(in.mutable_delete_predicate());
}
out->set_empty(in.empty());
- out->mutable_load_id()->CopyFrom(in.load_id());
+ if (in.has_load_id()) {
+ out->mutable_load_id()->CopyFrom(in.load_id());
+ }
out->set_delete_flag(in.delete_flag());
out->set_creation_time(in.creation_time());
if (in.has_tablet_uid()) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]