print more table_options to info log
Summary: print more table_options to info log Closes https://github.com/facebook/rocksdb/pull/3003 Differential Revision: D6054490 Pulled By: yiwu-arbug fbshipit-source-id: 8e6f96e08bdc906077b6c62ade419d7cb739110f
This commit is contained in:
parent
10ba50e9eb
commit
60c09f5fbb
@ -9,9 +9,15 @@
|
||||
|
||||
#include "table/block_based_table_factory.h"
|
||||
|
||||
#ifndef __STDC_FORMAT_MACROS
|
||||
#define __STDC_FORMAT_MACROS
|
||||
#endif
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "options/options_helper.h"
|
||||
#include "port/port.h"
|
||||
@ -191,6 +197,15 @@ std::string BlockBasedTableFactory::GetPrintableTableOptions() const {
|
||||
snprintf(buffer, kBufferSize, " index_block_restart_interval: %d\n",
|
||||
table_options_.index_block_restart_interval);
|
||||
ret.append(buffer);
|
||||
snprintf(buffer, kBufferSize, " metadata_block_size: %" PRIu64 "\n",
|
||||
table_options_.metadata_block_size);
|
||||
ret.append(buffer);
|
||||
snprintf(buffer, kBufferSize, " partition_filters: %d\n",
|
||||
table_options_.partition_filters);
|
||||
ret.append(buffer);
|
||||
snprintf(buffer, kBufferSize, " use_delta_encoding: %d\n",
|
||||
table_options_.use_delta_encoding);
|
||||
ret.append(buffer);
|
||||
snprintf(buffer, kBufferSize, " filter_policy: %s\n",
|
||||
table_options_.filter_policy == nullptr ?
|
||||
"nullptr" : table_options_.filter_policy->Name());
|
||||
@ -198,6 +213,12 @@ std::string BlockBasedTableFactory::GetPrintableTableOptions() const {
|
||||
snprintf(buffer, kBufferSize, " whole_key_filtering: %d\n",
|
||||
table_options_.whole_key_filtering);
|
||||
ret.append(buffer);
|
||||
snprintf(buffer, kBufferSize, " verify_compression: %d\n",
|
||||
table_options_.verify_compression);
|
||||
ret.append(buffer);
|
||||
snprintf(buffer, kBufferSize, " read_amp_bytes_per_bit: %d\n",
|
||||
table_options_.read_amp_bytes_per_bit);
|
||||
ret.append(buffer);
|
||||
snprintf(buffer, kBufferSize, " format_version: %d\n",
|
||||
table_options_.format_version);
|
||||
ret.append(buffer);
|
||||
|
Loading…
Reference in New Issue
Block a user