Merge pull request #10138 from ClickHouse/fix-logged-number-of-inserted-rows

Fix logged number of inserted rows into ReplicatedMergeTree
This commit is contained in:
alexey-milovidov 2020-04-09 05:50:49 +03:00 committed by GitHub
commit fef889c0ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,11 +147,11 @@ void ReplicatedMergeTreeBlockOutputStream::write(const Block & block)
/// That is, do not insert the same data to the same partition twice.
block_id = part->info.partition_id + "_" + toString(hash_value.words[0]) + "_" + toString(hash_value.words[1]);
LOG_DEBUG(log, "Wrote block with ID '" << block_id << "', " << block.rows() << " rows");
LOG_DEBUG(log, "Wrote block with ID '" << block_id << "', " << current_block.block.rows() << " rows");
}
else
{
LOG_DEBUG(log, "Wrote block with " << block.rows() << " rows");
LOG_DEBUG(log, "Wrote block with " << current_block.block.rows() << " rows");
}
try