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 398defe10b [fix](publish) fix check_version_exist coredump (#22038)
398defe10b is described below

commit 398defe10b4a5d6c990e4886b4ae857b7f521f10
Author: xiongjx <[email protected]>
AuthorDate: Thu Jul 20 22:01:15 2023 +0800

    [fix](publish) fix check_version_exist coredump (#22038)
---
 be/src/olap/tablet.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/be/src/olap/tablet.cpp b/be/src/olap/tablet.cpp
index 8723a9fa00..885c03f64b 100644
--- a/be/src/olap/tablet.cpp
+++ b/be/src/olap/tablet.cpp
@@ -867,6 +867,7 @@ bool Tablet::exceed_version_limit(int32_t limit) const {
 
 // If any rowset contains the specific version, it means the version already 
exist
 bool Tablet::check_version_exist(const Version& version) const {
+    std::shared_lock rdlock(_meta_lock);
     for (auto& it : _rs_version_map) {
         if (it.first.contains(version)) {
             return true;


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

Reply via email to