Skip to content

Commit 250e069

Browse files
azevaykinadameat
authored andcommitted
unused-but-set-variable fix (ydb-platform#789)
1 parent 968c63d commit 250e069

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ydb/core/tx/datashard/write_unit.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,22 +69,18 @@ class TWriteUnit : public TExecutionUnit {
6969
{
7070
keyCells.clear();
7171
keyCells.reserve(TableInfo_.KeyColumnIds.size());
72-
ui64 keyBytes = 0;
7372
for (ui16 keyColIdx = 0; keyColIdx < TableInfo_.KeyColumnIds.size(); ++keyColIdx) {
7473
const TCell& cell = matrix.GetCell(rowIdx, keyColIdx);
75-
keyBytes += cell.IsNull() ? 1 : cell.Size();
7674
keyCells.emplace_back(cell);
7775
}
7876

7977
commands.clear();
8078
Y_ABORT_UNLESS(matrix.GetColCount() >= TableInfo_.KeyColumnIds.size());
8179
commands.reserve(matrix.GetColCount() - TableInfo_.KeyColumnIds.size());
8280

83-
ui64 valueBytes = 0;
8481
for (ui16 valueColIdx = TableInfo_.KeyColumnIds.size(); valueColIdx < matrix.GetColCount(); ++valueColIdx) {
8582
ui32 columnTag = writeTx->RecordOperation().GetColumnIds(valueColIdx);
8683
const TCell& cell = matrix.GetCell(rowIdx, valueColIdx);
87-
valueBytes += cell.IsNull() ? 1 : cell.Size();
8884

8985
NMiniKQL::IEngineFlatHost::TUpdateCommand command = {columnTag, TKeyDesc::EColumnOperation::Set, {}, cell};
9086
commands.emplace_back(std::move(command));

0 commit comments

Comments
 (0)