From 8d1257c650148ebc33d5e12b3fc5add6be8eb6fd Mon Sep 17 00:00:00 2001 From: Alexander Lipatov Date: Sun, 17 Mar 2024 01:21:09 +0300 Subject: [PATCH] fix: Pass logger to TxControl.ToProto --- src/Ydb.Sdk/src/Services/Table/ExecuteDataQuery.cs | 2 +- src/Ydb.Sdk/src/Services/Table/Transaction.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ydb.Sdk/src/Services/Table/ExecuteDataQuery.cs b/src/Ydb.Sdk/src/Services/Table/ExecuteDataQuery.cs index 79a5d215..88ec6ed7 100644 --- a/src/Ydb.Sdk/src/Services/Table/ExecuteDataQuery.cs +++ b/src/Ydb.Sdk/src/Services/Table/ExecuteDataQuery.cs @@ -65,7 +65,7 @@ public async Task ExecuteDataQuery( { OperationParams = MakeOperationParams(settings), SessionId = Id, - TxControl = txControl.ToProto(), + TxControl = txControl.ToProto(Logger), Query = new Ydb.Table.Query { YqlText = query diff --git a/src/Ydb.Sdk/src/Services/Table/Transaction.cs b/src/Ydb.Sdk/src/Services/Table/Transaction.cs index 001bc45e..461cc24c 100644 --- a/src/Ydb.Sdk/src/Services/Table/Transaction.cs +++ b/src/Ydb.Sdk/src/Services/Table/Transaction.cs @@ -114,7 +114,7 @@ public TxControl Commit() return this; } - internal TransactionControl ToProto(ILogger? logger = null) + internal TransactionControl ToProto(ILogger logger) { if (_txNum != null) {