diff options
author | Alexander Rutkovsky <alexvru@mail.ru> | 2022-02-10 20:57:35 +0300 |
---|---|---|
committer | Alexander Rutkovsky <alexvru@mail.ru> | 2022-02-10 20:57:35 +0300 |
commit | 4b285c9638a11b796314e7f10a77a6def9580f11 (patch) | |
tree | 31d5939b6dbc263049dedf4091ea662f153aca62 | |
parent | ebc12904a7b268104892c8d0d2475ef3eb1c6302 (diff) | |
download | ydb-4b285c9638a11b796314e7f10a77a6def9580f11.tar.gz |
Add AllowVDiskDefrag feature flag to config KIKIMR-12036
ref:ab3e0f3b549b656b1d61a4fefcf9bd8d919ef15b
-rw-r--r-- | ydb/core/blobstorage/vdisk/skeleton/blobstorage_skeleton.cpp | 2 | ||||
-rw-r--r-- | ydb/core/protos/config.proto | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/ydb/core/blobstorage/vdisk/skeleton/blobstorage_skeleton.cpp b/ydb/core/blobstorage/vdisk/skeleton/blobstorage_skeleton.cpp index 96b813d3172..85c2f39a772 100644 --- a/ydb/core/blobstorage/vdisk/skeleton/blobstorage_skeleton.cpp +++ b/ydb/core/blobstorage/vdisk/skeleton/blobstorage_skeleton.cpp @@ -1765,7 +1765,7 @@ namespace NKikimr { Db->AnubisRunnerID.Set(ctx.Register(CreateAnubisRunner(anubisCtx, GInfo))); } - if (Config->RunDefrag) { + if (Config->RunDefrag && AppData()->FeatureFlags.GetAllowVDiskDefrag()) { auto defragCtx = std::make_shared<TDefragCtx>(VCtx, HugeBlobCtx, PDiskCtx, ctx.SelfID, Db->HugeKeeperID, true); DefragId = ctx.Register(CreateDefragActor(defragCtx, GInfo)); diff --git a/ydb/core/protos/config.proto b/ydb/core/protos/config.proto index d64169d4fc0..3eab6e1ac9c 100644 --- a/ydb/core/protos/config.proto +++ b/ydb/core/protos/config.proto @@ -676,6 +676,7 @@ message TFeatureFlags { optional bool EnablePublicApiKeepInMemory = 60 [default = false]; optional bool EnableImplicitScanQueryInScripts = 61 [default = true]; optional bool EnablePredicateExtractForScanQueries = 62 [default = true]; + optional bool AllowVDiskDefrag = 63 [default = true]; } message TSqsConfig { |