Skip to content

Commit 1812028

Browse files
jixxiongpull[bot]
authored andcommitted
[fix](publish) fix check_version_exist coredump (#22038)
1 parent 396407d commit 1812028

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎be/src/olap/tablet.cpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,7 @@ bool Tablet::exceed_version_limit(int32_t limit) const {
867867

868868
// If any rowset contains the specific version, it means the version already exist
869869
bool Tablet::check_version_exist(const Version& version) const {
870+
std::shared_lock rdlock(_meta_lock);
870871
for (auto& it : _rs_version_map) {
871872
if (it.first.contains(version)) {
872873
return true;

0 commit comments

Comments
 (0)