From c92a1d73fd0fdaf1d538310a8a1398f1cefb77f4 Mon Sep 17 00:00:00 2001 From: Daniil Demin Date: Thu, 10 Oct 2024 15:31:21 +0000 Subject: [PATCH] automatic style fixes + rewrite deprecated lambda capture --- ydb/core/tx/schemeshard/schemeshard__table_stats.cpp | 4 ++-- ydb/core/tx/schemeshard/ut_helpers/helpers.cpp | 2 +- ydb/core/tx/schemeshard/ut_index/ut_async_index.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ydb/core/tx/schemeshard/schemeshard__table_stats.cpp b/ydb/core/tx/schemeshard/schemeshard__table_stats.cpp index 1452a4295817..be8b720f1314 100644 --- a/ydb/core/tx/schemeshard/schemeshard__table_stats.cpp +++ b/ydb/core/tx/schemeshard/schemeshard__table_stats.cpp @@ -273,9 +273,9 @@ bool TTxStoreTableStats::PersistSingleStats(const TPathId& pathId, const TPartitionStats newStats = PrepareStats(ctx, rec, channelsMapping); LOG_INFO_S(ctx, NKikimrServices::FLAT_TX_SCHEMESHARD, - "Add stats from shard with datashardId(TabletID)=" << datashardId + "Add stats from shard with datashardId(TabletID)=" << datashardId << ", pathId " << pathId.LocalPathId - << ": RowCount " << newStats.RowCount + << ": RowCount " << newStats.RowCount << ", DataSize " << newStats.DataSize << (newStats.HasBorrowedData ? ", with borrowed parts" : "")); diff --git a/ydb/core/tx/schemeshard/ut_helpers/helpers.cpp b/ydb/core/tx/schemeshard/ut_helpers/helpers.cpp index c4b2763d8f70..4c96edd736e1 100644 --- a/ydb/core/tx/schemeshard/ut_helpers/helpers.cpp +++ b/ydb/core/tx/schemeshard/ut_helpers/helpers.cpp @@ -2011,7 +2011,7 @@ namespace NSchemeShardUT_Private { Runtime.SendToPipe(shardData.ShardId, sender, proposal); TAutoPtr handle; auto event = Runtime.GrabEdgeEventIf(handle, - [=](const TEvDataShard::TEvProposeTransactionResult& event) { + [this, shardData](const TEvDataShard::TEvProposeTransactionResult& event) { return event.GetTxId() == TxId && event.GetOrigin() == shardData.ShardId; }); activeZone = true; diff --git a/ydb/core/tx/schemeshard/ut_index/ut_async_index.cpp b/ydb/core/tx/schemeshard/ut_index/ut_async_index.cpp index e96f9a0ac11d..a330a8f3e53e 100644 --- a/ydb/core/tx/schemeshard/ut_index/ut_async_index.cpp +++ b/ydb/core/tx/schemeshard/ut_index/ut_async_index.cpp @@ -574,5 +574,5 @@ Y_UNIT_TEST_SUITE(TAsyncIndexTests) { NLs::IndexState(NKikimrSchemeOp::EIndexStateReady), NLs::IndexKeys({"indexed"}), }); - } + } }