aboutsummaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/interface/client.h
diff options
context:
space:
mode:
authorermolovd <ermolovd@yandex-team.com>2025-02-19 12:57:38 +0300
committerermolovd <ermolovd@yandex-team.com>2025-02-19 13:19:53 +0300
commitdbc58e8a3b624feb7bccd730530e520da549e859 (patch)
treebece6558f94e28a8d95cce5b413c2e39c37a28d0 /yt/cpp/mapreduce/interface/client.h
parent209a37d035f1d8ea98e913ccbc07762ec479eab2 (diff)
downloadydb-dbc58e8a3b624feb7bccd730530e520da549e859.tar.gz
YT-21081: fix temp tables for case when client is created with GlobalTx
commit_hash:c49256f38de62e8d05359c16a70ea6b88220a9ba
Diffstat (limited to 'yt/cpp/mapreduce/interface/client.h')
-rw-r--r--yt/cpp/mapreduce/interface/client.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/yt/cpp/mapreduce/interface/client.h b/yt/cpp/mapreduce/interface/client.h
index 8270eec55d..3d4bc6ac1b 100644
--- a/yt/cpp/mapreduce/interface/client.h
+++ b/yt/cpp/mapreduce/interface/client.h
@@ -165,8 +165,15 @@ public:
/// @see [YT doc](https://ytsaurus.tech/docs/en/api/commands.html#execute_batch)
virtual TBatchRequestPtr CreateBatchRequest() = 0;
- /// @brief Get root client outside of all transactions.
- virtual IClientPtr GetParentClient() = 0;
+ ///
+ /// @brief Get root client.
+ ///
+ /// @param ignoreGlobalTx root client could be created already attached to some global transaction, @ref NYT::TConfig::GlobalTx.
+ /// when ignoreGlobalTx = false original client (attached to GlobalTx) is returned
+ /// when ignoreGlobalTx = true, returned client is not attached to any transaction.
+ ///
+ /// TODO: rename to GetRootClient()
+ virtual IClientPtr GetParentClient(bool ignoreGlobalTx = false) = 0;
};
////////////////////////////////////////////////////////////////////////////////