Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
Signed-off-by: Connor1996 <[email protected]>
  • Loading branch information
Connor1996 committed Oct 9, 2020
1 parent 209323c commit a93693b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion table/block_based/block_based_table_builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,6 @@ Status BlockBasedTableBuilder::Finish() {
// To make sure properties block is able to keep the accurate size of index
// block, we will finish writing all index entries first.
if (ok() && !empty_data_block) {
// printf("no next data %s\n", Slice(r->last_key).ToString(true).c_str());
r->index_builder->AddIndexEntry(
&r->last_key, nullptr /* no next data block */, r->pending_handle);
}
Expand Down
5 changes: 2 additions & 3 deletions table/block_based/block_based_table_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1998,9 +1998,8 @@ TBlockIter* BlockBasedTable::NewDataBlockIterator(
(is_user_key &&
user_comparator->Compare(index_key, iter->user_key()) < 0)) {
ROCKS_LOG_ERROR(rep_->ioptions.info_log,
"first key %s in block[%lu, %lu] of %s isn't smaller "
"than or equal to "
"index key %s\n",
"first key %s in block[%" PRIu64 ", %" PRIu64
"] of %s isn't smaller than or equal to index key %s\n",
iter->key().ToString(true).c_str(), handle.offset(),
handle.size(), rep_->file->file_name().c_str(),
index_key.ToString(true).c_str());
Expand Down

0 comments on commit a93693b

Please sign in to comment.