Skip to content

Commit

Permalink
[fix](publish) fix check_version_exist coredump (#22038)
Browse files Browse the repository at this point in the history
  • Loading branch information
jixxiong authored Jul 20, 2023
1 parent ab11dea commit 398defe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions be/src/olap/tablet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 398defe

Please sign in to comment.