Skip to content

Commit 61b5646

Browse files
authored
Undo fix for inc4455 (#15531)
1 parent 5137cce commit 61b5646

File tree

1 file changed

+2
-0
lines changed
  • ydb/core/tx/columnshard/engines/storage/granule

1 file changed

+2
-0
lines changed

ydb/core/tx/columnshard/engines/storage/granule/granule.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ void TGranuleMeta::OnAfterChangePortion(const std::shared_ptr<TPortionInfo> port
5454
if (portionAfter) {
5555
PortionInfoGuard.OnNewPortion(portionAfter);
5656
if (!portionAfter->HasRemoveSnapshot()) {
57+
PortionsIndex.AddPortion(portionAfter);
5758
if (modificationGuard) {
5859
modificationGuard->AddPortion(portionAfter);
5960
} else {
@@ -81,6 +82,7 @@ void TGranuleMeta::OnBeforeChangePortion(const std::shared_ptr<TPortionInfo> por
8182
if (portionBefore) {
8283
PortionInfoGuard.OnDropPortion(portionBefore);
8384
if (!portionBefore->HasRemoveSnapshot()) {
85+
PortionsIndex.RemovePortion(portionBefore);
8486
OptimizerPlanner->StartModificationGuard().RemovePortion(portionBefore);
8587
ActualizationIndex->RemovePortion(portionBefore);
8688
}

0 commit comments

Comments
 (0)