Address comments
This commit is contained in:
parent
d0a0c91017
commit
8f0de0554f
1
TARGETS
1
TARGETS
@ -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,
|
||||
|
2
cache/cache_bench_tool.cc
vendored
2
cache/cache_bench_tool.cc
vendored
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user