From 62eb2c23aaa5da1ce96fa7d8e080719a239727f5 Mon Sep 17 00:00:00 2001 From: Yi Wu Date: Fri, 8 Mar 2019 11:15:51 -0800 Subject: [PATCH] Print data block index options to info log (#5039) Summary: Print data block index type related options to info log Pull Request resolved: https://github.com/facebook/rocksdb/pull/5039 Differential Revision: D14387718 Pulled By: miasantreble fbshipit-source-id: 9df8f82eea83a8344c7d12a712486f656691bc4a --- table/block_based_table_factory.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/table/block_based_table_factory.cc b/table/block_based_table_factory.cc index 35aeba252..e5ba4edf7 100644 --- a/table/block_based_table_factory.cc +++ b/table/block_based_table_factory.cc @@ -296,6 +296,12 @@ std::string BlockBasedTableFactory::GetPrintableTableOptions() const { snprintf(buffer, kBufferSize, " index_type: %d\n", table_options_.index_type); ret.append(buffer); + snprintf(buffer, kBufferSize, " data_block_index_type: %d\n", + table_options_.data_block_index_type); + ret.append(buffer); + snprintf(buffer, kBufferSize, " data_block_hash_table_util_ratio: %lf\n", + table_options_.data_block_hash_table_util_ratio); + ret.append(buffer); snprintf(buffer, kBufferSize, " hash_index_allow_collision: %d\n", table_options_.hash_index_allow_collision); ret.append(buffer);