diff --git a/ydb/core/tx/columnshard/engines/storage/granule/granule.cpp b/ydb/core/tx/columnshard/engines/storage/granule/granule.cpp index 78a4a09d2303..5aa46a01de1f 100644 --- a/ydb/core/tx/columnshard/engines/storage/granule/granule.cpp +++ b/ydb/core/tx/columnshard/engines/storage/granule/granule.cpp @@ -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(PathId, versionedIndex); + ActualizationIndex = std::make_unique(PathId, versionedIndex); } void TGranuleMeta::UpsertPortionOnLoad(const std::shared_ptr&& portion) { diff --git a/ydb/core/tx/columnshard/engines/storage/granule/granule.h b/ydb/core/tx/columnshard/engines/storage/granule/granule.h index c9686573e2f9..ab6a5406a325 100644 --- a/ydb/core/tx/columnshard/engines/storage/granule/granule.h +++ b/ydb/core/tx/columnshard/engines/storage/granule/granule.h @@ -123,7 +123,7 @@ class TGranuleMeta: TNonCopyable { std::shared_ptr Stats; std::shared_ptr StoragesManager; std::shared_ptr OptimizerPlanner; - std::shared_ptr ActualizationIndex; + std::unique_ptr ActualizationIndex; mutable TInstant NextActualizations = TInstant::Zero(); NGranule::NPortionsIndex::TPortionsIndex PortionsIndex;