Address comments

This commit is contained in:
anand76 2021-04-27 17:20:52 -07:00
parent d0a0c91017
commit 8f0de0554f
3 changed files with 3 additions and 1 deletions

View File

@ -803,6 +803,7 @@ cpp_library(
os_deps = ROCKSDB_OS_DEPS,
os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS,
preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS,
include_paths = ROCKSDB_INCLUDE_PATHS,
deps = [":rocksdb_lib"],
external_deps = ROCKSDB_EXTERNAL_DEPS,
link_whole = False,

View File

@ -137,7 +137,7 @@ class Stats {
insert_us += other.insert_us;
}
void Report() {
fprintf(stdout, "%lu hits, %lu misses, %lu lookup_ns, %lu insert_ns\n",
fprintf(stdout, "%lu hits, %lu misses, %lu lookup_us, %lu insert_us\n",
hits, misses, lookup_us, insert_us);
fflush(stdout);
}

View File

@ -373,6 +373,7 @@ class Cache {
Handle** handle = nullptr,
Priority priority = Priority::LOW) {
DeletionCallback delete_cb = nullptr;
assert(helper_cb != nullptr);
(*helper_cb)(nullptr, nullptr, &delete_cb);
return Insert(key, value, charge, delete_cb, handle, priority);
}