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 7f2c0c31255 [fix](meta) Do not copy it when input rowset meta dont
have load id (#52088)
7f2c0c31255 is described below
commit 7f2c0c312556ce1fc77164026c0150330adc3dbf
Author: Siyang Tang <[email protected]>
AuthorDate: Sat Jun 21 09:27:03 2025 +0800
[fix](meta) Do not copy it when input rowset meta dont have load id (#52088)
---
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 f8fdb4bbcc7..72256e3ed05 100644
--- a/be/src/cloud/pb_convert.cpp
+++ b/be/src/cloud/pb_convert.cpp
@@ -186,7 +186,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()) {
@@ -242,7 +244,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]