diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2025-07-30 03:50:01 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2025-07-30 04:00:32 +0300 |
commit | 57246862f1d445ce91e4a2238983da39d78c982c (patch) | |
tree | 2d38b9394354136143913755c4bba5e198f2d5f7 | |
parent | 94ab428afaf835a102a527535e6428f55180e070 (diff) | |
download | ydb-57246862f1d445ce91e4a2238983da39d78c982c.tar.gz |
Intermediate changes
commit_hash:a5440c65c85d508ebcfe2e9d69bb11eddfac1fe2
-rw-r--r-- | yt/yt/client/driver/chaos_commands.cpp | 4 | ||||
-rw-r--r-- | yt/yt/client/driver/chaos_commands.h | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/yt/yt/client/driver/chaos_commands.cpp b/yt/yt/client/driver/chaos_commands.cpp index a2f41ce37cf..0c166a33890 100644 --- a/yt/yt/client/driver/chaos_commands.cpp +++ b/yt/yt/client/driver/chaos_commands.cpp @@ -88,13 +88,15 @@ void TAlterReplicationCardCommand::DoExecute(ICommandContextPtr context) void TPingChaosLeaseCommand::Register(TRegistrar registrar) { registrar.Parameter("chaos_lease_id", &TThis::ChaosLeaseId); + registrar.Parameter("ping_ancestors", &TThis::PingAncestors) + .Default(true); } void TPingChaosLeaseCommand::DoExecute(ICommandContextPtr context) { auto options = TChaosLeaseAttachOptions{}; options.Ping = true; - options.PingAncestors = true; + options.PingAncestors = PingAncestors; auto future = context->GetClient()->AttachChaosLease(ChaosLeaseId, options); auto chaosLease = WaitFor(future) diff --git a/yt/yt/client/driver/chaos_commands.h b/yt/yt/client/driver/chaos_commands.h index dd95ef4658e..b51bf399ee0 100644 --- a/yt/yt/client/driver/chaos_commands.h +++ b/yt/yt/client/driver/chaos_commands.h @@ -52,6 +52,7 @@ public: private: NChaosClient::TChaosLeaseId ChaosLeaseId; + bool PingAncestors; void DoExecute(ICommandContextPtr context) override; }; |