@@ -248,17 +248,6 @@ class TReplica: public TMonitorableActor<TReplica> {
248
248
TrackMemory ();
249
249
}
250
250
251
- explicit TDescription (
252
- TReplica* owner,
253
- const TPathId& pathId,
254
- TOpaquePathDescription&& pathDescription)
255
- : Owner(owner)
256
- , PathId(pathId)
257
- , PathDescription(std::move(pathDescription))
258
- {
259
- TrackMemory ();
260
- }
261
-
262
251
explicit TDescription (
263
252
TReplica* owner,
264
253
const TString& path,
@@ -540,13 +529,13 @@ class TReplica: public TMonitorableActor<TReplica> {
540
529
}
541
530
542
531
// upsert description only by pathId
543
- TDescription& UpsertDescription ( const TPathId& pathId, TOpaquePathDescription&& pathDescription) {
532
+ TDescription& UpsertDescriptionByPathId ( const TString& path, const TPathId& pathId, TOpaquePathDescription&& pathDescription) {
544
533
SBR_LOG_I (" Upsert description"
545
534
<< " : pathId# " << pathId
546
535
<< " , pathDescription# " << pathDescription.ToString ()
547
536
);
548
537
549
- return Descriptions.Upsert (pathId, TDescription (this , pathId, std::move (pathDescription)));
538
+ return Descriptions.Upsert (pathId, TDescription (this , path, pathId, std::move (pathDescription)));
550
539
}
551
540
552
541
// upsert description by path AND pathId both
@@ -898,7 +887,7 @@ class TReplica: public TMonitorableActor<TReplica> {
898
887
if (abandonedSchemeShards.contains (pathId.OwnerId )) { // TSS is ignored, present GSS reverted it
899
888
log (" Replace GSS by TSS description is rejected, GSS implicitly knows that TSS has been reverted"
900
889
" , but still inject description only by pathId for safe" );
901
- UpsertDescription ( pathId, std::move (pathDescription));
890
+ UpsertDescriptionByPathId (path, pathId, std::move (pathDescription));
902
891
return AckUpdate (ev);
903
892
}
904
893
@@ -923,7 +912,7 @@ class TReplica: public TMonitorableActor<TReplica> {
923
912
}
924
913
925
914
log (" Inject description only by pathId, it is update from GSS" );
926
- UpsertDescription ( pathId, std::move (pathDescription));
915
+ UpsertDescriptionByPathId (path, pathId, std::move (pathDescription));
927
916
return AckUpdate (ev);
928
917
}
929
918
0 commit comments