Skip to content

Commit abc837b

Browse files
authored
disable clean_deprecated_snapshot normalizer if unneeded (#18617)
1 parent 93fad2b commit abc837b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ydb/core/tx/columnshard/normalizer/portion/clean_deprecated_snapshot.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ class TChanges: public INormalizerChanges {
6969
TConclusion<std::vector<INormalizerTask::TPtr>> TCleanDeprecatedSnapshotNormalizer::DoInit(
7070
const TNormalizationController&, NTabletFlatExecutor::TTransactionContext& txc) {
7171
using namespace NColumnShard;
72+
73+
if (!AppDataVerified().ColumnShardConfig.GetColumnChunksV0Usage()) {
74+
return std::vector<INormalizerTask::TPtr>();
75+
}
76+
7277
auto batchesToDelete = GetChunksToRewrite(txc, DsGroupSelector);
7378
if (!batchesToDelete) {
7479
return TConclusionStatus::Fail("Not ready");

0 commit comments

Comments
 (0)