@@ -332,7 +332,47 @@ TMessageSeqNo TSchemeShard::NextRound() {
332332
333333void TSchemeShard::Clear () {
334334 PathsById.clear ();
335+
335336 Tables.clear ();
337+ TTLEnabledTables.clear ();
338+
339+ Indexes.clear ();
340+ CdcStreams.clear ();
341+ Sequences.clear ();
342+ Replications.clear ();
343+ BlobDepots.clear ();
344+
345+ TablesWithSnapshots.clear ();
346+ SnapshotTables.clear ();
347+ SnapshotsStepIds.clear ();
348+
349+ LockedPaths.clear ();
350+
351+ Topics.clear ();
352+ RtmrVolumes.clear ();
353+ SolomonVolumes.clear ();
354+ SubDomains.clear ();
355+ BlockStoreVolumes.clear ();
356+ FileStoreInfos.clear ();
357+ KesusInfos.clear ();
358+ OlapStores.clear ();
359+ ExternalTables.clear ();
360+ ExternalDataSources.clear ();
361+ Views.clear ();
362+
363+ ColumnTables = { };
364+
365+ RevertedMigrations.clear ();
366+
367+ Operations.clear ();
368+ Publications.clear ();
369+ TxInFlight.clear ();
370+
371+ ShardInfos.clear ();
372+ AdoptedShards.clear ();
373+ TabletIdToShardIdx.clear ();
374+
375+ PartitionMetricsMap.clear ();
336376
337377 if (CompactionQueue) {
338378 CompactionQueue->Clear ();
@@ -346,18 +386,6 @@ void TSchemeShard::Clear() {
346386
347387 ShardsWithBorrowed.clear ();
348388 ShardsWithLoaned.clear ();
349- Topics.clear ();
350- RtmrVolumes.clear ();
351- SubDomains.clear ();
352- BlockStoreVolumes.clear ();
353- KesusInfos.clear ();
354- TxInFlight.clear ();
355- ShardInfos.clear ();
356- Indexes.clear ();
357- CdcStreams.clear ();
358- RevertedMigrations.clear ();
359- Sequences.clear ();
360- Replications.clear ();
361389
362390 for (ui32 idx = 0 ; idx < TabletCounters->Simple ().Size (); ++idx) {
363391 TabletCounters->Simple ()[idx].Set (0 );
@@ -366,8 +394,6 @@ void TSchemeShard::Clear() {
366394 TabletCounters->Percentile ()[COUNTER_SHARDS_WITH_SEARCH_HEIGHT].Clear ();
367395 TabletCounters->Percentile ()[COUNTER_SHARDS_WITH_FULL_COMPACTION].Clear ();
368396 TabletCounters->Percentile ()[COUNTER_SHARDS_WITH_ROW_DELETES].Clear ();
369-
370- PartitionMetricsMap.clear ();
371397}
372398
373399void TSchemeShard::IncrementPathDbRefCount (const TPathId& pathId, const TStringBuf& debug) {
0 commit comments