Skip to content

Commit

Permalink
clarify ActualizationIndex ownership (ydb-platform#11247)
Browse files Browse the repository at this point in the history
  • Loading branch information
zverevgeny committed Jan 5, 2025
1 parent bd58034 commit a939842
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ TGranuleMeta::TGranuleMeta(
PathId, owner.GetStoragesManager(), versionedIndex.GetLastSchema()->GetIndexInfo().GetPrimaryKey());
OptimizerPlanner = versionedIndex.GetLastSchema()->GetIndexInfo().GetCompactionPlannerConstructor()->BuildPlanner(context).DetachResult();
AFL_VERIFY(!!OptimizerPlanner);
ActualizationIndex = std::make_shared<NActualizer::TGranuleActualizationIndex>(PathId, versionedIndex);
ActualizationIndex = std::make_unique<NActualizer::TGranuleActualizationIndex>(PathId, versionedIndex);
}

void TGranuleMeta::UpsertPortionOnLoad(const std::shared_ptr<TPortionInfo>&& portion) {
Expand Down
2 changes: 1 addition & 1 deletion ydb/core/tx/columnshard/engines/storage/granule/granule.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class TGranuleMeta: TNonCopyable {
std::shared_ptr<TGranulesStat> Stats;
std::shared_ptr<IStoragesManager> StoragesManager;
std::shared_ptr<NStorageOptimizer::IOptimizerPlanner> OptimizerPlanner;
std::shared_ptr<NActualizer::TGranuleActualizationIndex> ActualizationIndex;
std::unique_ptr<NActualizer::TGranuleActualizationIndex> ActualizationIndex;
mutable TInstant NextActualizations = TInstant::Zero();

NGranule::NPortionsIndex::TPortionsIndex PortionsIndex;
Expand Down

0 comments on commit a939842

Please sign in to comment.