Apply InfoLogLevel to the logs in table/plain_table_index.cc
Summary: Apply InfoLogLevel to the logs in table/plain_table_index.cc Test Plan: make Reviewers: ljin, sdong, igor Reviewed By: igor Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D27909
This commit is contained in:
parent
bbd9c53457
commit
e7ad69b9fe
@ -93,7 +93,8 @@ Slice PlainTableIndexBuilder::Finish() {
|
||||
BucketizeIndexes(&hash_to_offsets, &entries_per_bucket);
|
||||
|
||||
keys_per_prefix_hist_.Add(num_keys_per_prefix_);
|
||||
Log(ioptions_.info_log, "Number of Keys per prefix Histogram: %s",
|
||||
Log(InfoLogLevel::INFO_LEVEL, ioptions_.info_log,
|
||||
"Number of Keys per prefix Histogram: %s",
|
||||
keys_per_prefix_hist_.ToString().c_str());
|
||||
|
||||
// From the temp data structure, populate indexes.
|
||||
@ -147,7 +148,8 @@ void PlainTableIndexBuilder::BucketizeIndexes(
|
||||
Slice PlainTableIndexBuilder::FillIndexes(
|
||||
const std::vector<IndexRecord*>& hash_to_offsets,
|
||||
const std::vector<uint32_t>& entries_per_bucket) {
|
||||
Log(ioptions_.info_log, "Reserving %zu bytes for plain table's sub_index",
|
||||
Log(InfoLogLevel::DEBUG_LEVEL, ioptions_.info_log,
|
||||
"Reserving %zu bytes for plain table's sub_index",
|
||||
sub_index_size_);
|
||||
auto total_allocate_size = GetTotalSize();
|
||||
char* allocated = arena_->AllocateAligned(
|
||||
@ -191,7 +193,8 @@ Slice PlainTableIndexBuilder::FillIndexes(
|
||||
}
|
||||
assert(sub_index_offset == sub_index_size_);
|
||||
|
||||
Log(ioptions_.info_log, "hash table size: %d, suffix_map length %zu",
|
||||
Log(InfoLogLevel::DEBUG_INFO, ioptions_.info_log,
|
||||
"hash table size: %d, suffix_map length %zu",
|
||||
index_size_, sub_index_size_);
|
||||
return Slice(allocated, GetTotalSize());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user