This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-1.2-lts by this push:
     new eb426f0c3b [bugfix](block reader) fix status compare error (#16341)
eb426f0c3b is described below

commit eb426f0c3b6a67036e0009a02c12f4e60535cc9d
Author: yixiutt <[email protected]>
AuthorDate: Wed Feb 1 21:45:14 2023 +0800

    [bugfix](block reader) fix status compare error (#16341)
---
 be/src/olap/cumulative_compaction_policy.cpp | 1 -
 be/src/vec/olap/block_reader.cpp             | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/be/src/olap/cumulative_compaction_policy.cpp 
b/be/src/olap/cumulative_compaction_policy.cpp
index 163e29a5ca..5b30e3aa07 100644
--- a/be/src/olap/cumulative_compaction_policy.cpp
+++ b/be/src/olap/cumulative_compaction_policy.cpp
@@ -242,7 +242,6 @@ int SizeBasedCumulativeCompactionPolicy::pick_input_rowsets(
         std::vector<RowsetSharedPtr>* input_rowsets, Version* 
last_delete_version,
         size_t* compaction_score) {
     size_t promotion_size = tablet->cumulative_promotion_size();
-    ;
     int transient_size = 0;
     *compaction_score = 0;
     int64_t total_size = 0;
diff --git a/be/src/vec/olap/block_reader.cpp b/be/src/vec/olap/block_reader.cpp
index fa79e1bb9c..c608c397a6 100644
--- a/be/src/vec/olap/block_reader.cpp
+++ b/be/src/vec/olap/block_reader.cpp
@@ -92,7 +92,7 @@ Status BlockReader::_init_collect_iter(const ReaderParams& 
read_params,
 
     RETURN_IF_ERROR(_vcollect_iter.build_heap(*valid_rs_readers));
     auto status = _vcollect_iter.current_row(&_next_row);
-    _eof = status.is_end_of_file();
+    _eof = (status.precise_code() == OLAP_ERR_DATA_EOF);
 
     return Status::OK();
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to