File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
ydb/core/tx/columnshard/engines/storage/granule Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ void TGranuleMeta::OnAfterChangePortion(const std::shared_ptr<TPortionInfo> port
54
54
if (portionAfter) {
55
55
PortionInfoGuard.OnNewPortion (portionAfter);
56
56
if (!portionAfter->HasRemoveSnapshot ()) {
57
+ PortionsIndex.AddPortion (portionAfter);
57
58
if (modificationGuard) {
58
59
modificationGuard->AddPortion (portionAfter);
59
60
} else {
@@ -81,6 +82,7 @@ void TGranuleMeta::OnBeforeChangePortion(const std::shared_ptr<TPortionInfo> por
81
82
if (portionBefore) {
82
83
PortionInfoGuard.OnDropPortion (portionBefore);
83
84
if (!portionBefore->HasRemoveSnapshot ()) {
85
+ PortionsIndex.RemovePortion (portionBefore);
84
86
OptimizerPlanner->StartModificationGuard ().RemovePortion (portionBefore);
85
87
ActualizationIndex->RemovePortion (portionBefore);
86
88
}
You can’t perform that action at this time.
0 commit comments