diff options
author | koloshmet <koloshmet@yandex-team.com> | 2024-12-06 15:00:15 +0300 |
---|---|---|
committer | koloshmet <koloshmet@yandex-team.com> | 2024-12-06 17:31:39 +0300 |
commit | 77b1698d62b42692774bf76f91fcff7eacb23ca5 (patch) | |
tree | a83b51bf0d765991a14f82bd28f6ca10a748d80f | |
parent | 55dd93cc46080690f1971959a8e232842132504a (diff) | |
download | ydb-77b1698d62b42692774bf76f91fcff7eacb23ca5.tar.gz |
YT-22011: Cypress move acl behaviour is equalized to copy
Cypress move acl behaviour is equalized to copy
commit_hash:b80e768c5d207960172d94bb69fab9f59fe93b61
-rw-r--r-- | yt/yt/client/api/rpc_proxy/client_base.cpp | 1 | ||||
-rw-r--r-- | yt/yt/client/driver/cypress_commands.cpp | 7 | ||||
-rw-r--r-- | yt/yt_proto/yt/client/api/rpc_proxy/proto/api_service.proto | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/yt/yt/client/api/rpc_proxy/client_base.cpp b/yt/yt/client/api/rpc_proxy/client_base.cpp index c8cd251d90f..7a049d81a32 100644 --- a/yt/yt/client/api/rpc_proxy/client_base.cpp +++ b/yt/yt/client/api/rpc_proxy/client_base.cpp @@ -514,6 +514,7 @@ TFuture<NCypressClient::TNodeId> TClientBase::MoveNode( req->set_preserve_expiration_time(options.PreserveExpirationTime); req->set_preserve_expiration_timeout(options.PreserveExpirationTimeout); req->set_preserve_owner(options.PreserveOwner); + req->set_preserve_acl(options.PreserveAcl); req->set_pessimistic_quota_check(options.PessimisticQuotaCheck); req->set_enable_cross_cell_copying(options.EnableCrossCellCopying); diff --git a/yt/yt/client/driver/cypress_commands.cpp b/yt/yt/client/driver/cypress_commands.cpp index 622e20fe5b7..b94dd9dce82 100644 --- a/yt/yt/client/driver/cypress_commands.cpp +++ b/yt/yt/client/driver/cypress_commands.cpp @@ -600,6 +600,13 @@ void TMoveCommand::Register(TRegistrar registrar) .Optional(/*init*/ false); registrar.ParameterWithUniversalAccessor<bool>( + "preserve_acl", + [] (TThis* command) -> auto& { + return command->Options.PreserveAcl; + }) + .Optional(/*init*/ false); + + registrar.ParameterWithUniversalAccessor<bool>( "pessimistic_quota_check", [] (TThis* command) -> auto& { return command->Options.PessimisticQuotaCheck; diff --git a/yt/yt_proto/yt/client/api/rpc_proxy/proto/api_service.proto b/yt/yt_proto/yt/client/api/rpc_proxy/proto/api_service.proto index 75524ee48b3..46588914813 100644 --- a/yt/yt_proto/yt/client/api/rpc_proxy/proto/api_service.proto +++ b/yt/yt_proto/yt/client/api/rpc_proxy/proto/api_service.proto @@ -1701,6 +1701,7 @@ message TReqMoveNode optional bool preserve_expiration_time = 6 [default = false]; optional bool preserve_expiration_timeout = 12 [default = false]; optional bool preserve_owner = 11 [default = false]; + optional bool preserve_acl = 14 [default = false]; optional bool pessimistic_quota_check = 7 [default = true]; optional bool enable_cross_cell_copying = 13 [default = true]; |