diff --git a/ydb/core/tx/scheme_board/replica.cpp b/ydb/core/tx/scheme_board/replica.cpp index c1600b4bd644..cb5ddd2e923f 100644 --- a/ydb/core/tx/scheme_board/replica.cpp +++ b/ydb/core/tx/scheme_board/replica.cpp @@ -248,17 +248,6 @@ class TReplica: public TMonitorableActor { TrackMemory(); } - explicit TDescription( - TReplica* owner, - const TPathId& pathId, - TOpaquePathDescription&& pathDescription) - : Owner(owner) - , PathId(pathId) - , PathDescription(std::move(pathDescription)) - { - TrackMemory(); - } - explicit TDescription( TReplica* owner, const TString& path, @@ -540,13 +529,13 @@ class TReplica: public TMonitorableActor { } // upsert description only by pathId - TDescription& UpsertDescription(const TPathId& pathId, TOpaquePathDescription&& pathDescription) { + TDescription& UpsertDescriptionByPathId(const TString& path, const TPathId& pathId, TOpaquePathDescription&& pathDescription) { SBR_LOG_I("Upsert description" << ": pathId# " << pathId << ", pathDescription# " << pathDescription.ToString() ); - return Descriptions.Upsert(pathId, TDescription(this, pathId, std::move(pathDescription))); + return Descriptions.Upsert(pathId, TDescription(this, path, pathId, std::move(pathDescription))); } // upsert description by path AND pathId both @@ -898,7 +887,7 @@ class TReplica: public TMonitorableActor { if (abandonedSchemeShards.contains(pathId.OwnerId)) { // TSS is ignored, present GSS reverted it log("Replace GSS by TSS description is rejected, GSS implicitly knows that TSS has been reverted" ", but still inject description only by pathId for safe"); - UpsertDescription(pathId, std::move(pathDescription)); + UpsertDescriptionByPathId(path, pathId, std::move(pathDescription)); return AckUpdate(ev); } @@ -923,7 +912,7 @@ class TReplica: public TMonitorableActor { } log("Inject description only by pathId, it is update from GSS"); - UpsertDescription(pathId, std::move(pathDescription)); + UpsertDescriptionByPathId(path, pathId, std::move(pathDescription)); return AckUpdate(ev); }