Skip to content

Commit ee3d56f

Browse files
authored
clarify ActualizationIndex ownership (#11247)
1 parent 373467c commit ee3d56f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ TGranuleMeta::TGranuleMeta(
130130
PathId, owner.GetStoragesManager(), versionedIndex.GetLastSchema()->GetIndexInfo().GetPrimaryKey());
131131
OptimizerPlanner = versionedIndex.GetLastSchema()->GetIndexInfo().GetCompactionPlannerConstructor()->BuildPlanner(context).DetachResult();
132132
AFL_VERIFY(!!OptimizerPlanner);
133-
ActualizationIndex = std::make_shared<NActualizer::TGranuleActualizationIndex>(PathId, versionedIndex);
133+
ActualizationIndex = std::make_unique<NActualizer::TGranuleActualizationIndex>(PathId, versionedIndex);
134134
}
135135

136136
void TGranuleMeta::UpsertPortionOnLoad(const std::shared_ptr<TPortionInfo>&& portion) {

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class TGranuleMeta: TNonCopyable {
123123
std::shared_ptr<TGranulesStat> Stats;
124124
std::shared_ptr<IStoragesManager> StoragesManager;
125125
std::shared_ptr<NStorageOptimizer::IOptimizerPlanner> OptimizerPlanner;
126-
std::shared_ptr<NActualizer::TGranuleActualizationIndex> ActualizationIndex;
126+
std::unique_ptr<NActualizer::TGranuleActualizationIndex> ActualizationIndex;
127127
mutable TInstant NextActualizations = TInstant::Zero();
128128

129129
NGranule::NPortionsIndex::TPortionsIndex PortionsIndex;

0 commit comments

Comments
 (0)