From 0c93df912e71781719c1a3373cc3c18c44c48910 Mon Sep 17 00:00:00 2001 From: kailiu Date: Thu, 21 Nov 2013 17:54:23 -0800 Subject: [PATCH] Improve the readability of the TableProperties::ToString() --- db/table_properties_collector.cc | 2 +- table/block_based_table_builder.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/db/table_properties_collector.cc b/db/table_properties_collector.cc index d0cd1520d..3654663c1 100644 --- a/db/table_properties_collector.cc +++ b/db/table_properties_collector.cc @@ -74,7 +74,7 @@ std::string TableProperties::ToString( ); AppendProperty( result, - "(estimated) table size=", + "(estimated) table size", data_size + index_size + filter_size, prop_delim, kv_delim diff --git a/table/block_based_table_builder.cc b/table/block_based_table_builder.cc index a5bf216dc..88b7a5fc7 100644 --- a/table/block_based_table_builder.cc +++ b/table/block_based_table_builder.cc @@ -530,8 +530,8 @@ Status BlockBasedTableBuilder::Finish() { Log( r->options.info_log, "Table was constructed:\n" - " basic properties: %s\n" - " user collected properties: %s", + " [basic properties]: %s\n" + " [user collected properties]: %s", r->props.ToString().c_str(), user_collected.c_str() );