Skip to content

Commit

Permalink
Merge branch 'master' into least_greatest_string
Browse files Browse the repository at this point in the history
  • Loading branch information
ywqzzy authored Feb 8, 2023
2 parents 15c3dfe + 0bb9cb4 commit 2ccea27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbms/src/Storages/DeltaMerge/DeltaMergeStore_InternalBg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ SegmentPtr DeltaMergeStore::gcTrySegmentMerge(const DMContextPtr & dm_context, c
auto new_segment = segmentMerge(*dm_context, segments_to_merge, SegmentMergeReason::BackgroundGCThread);
if (new_segment)
{
checkSegmentUpdate(dm_context, segment, ThreadType::BG_GC);
checkSegmentUpdate(dm_context, new_segment, ThreadType::BG_GC);
}

return new_segment;
Expand Down Expand Up @@ -718,7 +718,7 @@ SegmentPtr DeltaMergeStore::gcTrySegmentMergeDelta(const DMContextPtr & dm_conte
}

segment_snap = {};
checkSegmentUpdate(dm_context, segment, ThreadType::BG_GC);
checkSegmentUpdate(dm_context, new_segment, ThreadType::BG_GC);

return new_segment;
}
Expand Down

0 comments on commit 2ccea27

Please sign in to comment.