https://github.com/facebook/rocksdb
Revision 0ccaba2a05db5c5930018d0d78775f29ba622e16 authored by Yi Wu on 23 May 2017, 17:32:02 UTC, committed by Yi Wu on 23 May 2017, 19:27:53 UTC
Summary: rocksdb.estimate-num-keys is compute from `estimate_num_keys - 2 * estimate_num_deletes`. If `2 * estimate_num_deletes > estimate_num_keys` it will underflow. Fixing it. Closes https://github.com/facebook/rocksdb/pull/2348 Differential Revision: D5109272 Pulled By: yiwu-arbug fbshipit-source-id: e1bfb91346a59b7282a282b615002507e9d7c246
1 parent 4646cd4
Tip revision: 0ccaba2a05db5c5930018d0d78775f29ba622e16 authored by Yi Wu on 23 May 2017, 17:32:02 UTC
Fix rocksdb.estimate-num-keys DB property underflow
Fix rocksdb.estimate-num-keys DB property underflow
Tip revision: 0ccaba2
File | Mode | Size |
---|---|---|
histogram.cc | -rw-r--r-- | 10.1 KB |
histogram.h | -rw-r--r-- | 4.5 KB |
histogram_test.cc | -rw-r--r-- | 6.7 KB |
histogram_windowing.cc | -rw-r--r-- | 6.0 KB |
histogram_windowing.h | -rw-r--r-- | 2.8 KB |
instrumented_mutex.cc | -rw-r--r-- | 2.7 KB |
instrumented_mutex.h | -rw-r--r-- | 2.3 KB |
iostats_context.cc | -rw-r--r-- | 1.6 KB |
iostats_context_imp.h | -rw-r--r-- | 1.7 KB |
iostats_context_test.cc | -rw-r--r-- | 986 bytes |
perf_context.cc | -rw-r--r-- | 5.8 KB |
perf_context_imp.h | -rw-r--r-- | 1.7 KB |
perf_level.cc | -rw-r--r-- | 758 bytes |
perf_level_imp.h | -rw-r--r-- | 529 bytes |
perf_step_timer.h | -rw-r--r-- | 1.2 KB |
statistics.cc | -rw-r--r-- | 7.2 KB |
statistics.h | -rw-r--r-- | 5.6 KB |
statistics_test.cc | -rw-r--r-- | 1.1 KB |
thread_status_impl.cc | -rw-r--r-- | 4.8 KB |
thread_status_updater.cc | -rw-r--r-- | 10.8 KB |
thread_status_updater.h | -rw-r--r-- | 8.5 KB |
thread_status_updater_debug.cc | -rw-r--r-- | 1.3 KB |
thread_status_util.cc | -rw-r--r-- | 6.9 KB |
thread_status_util.h | -rw-r--r-- | 5.1 KB |
thread_status_util_debug.cc | -rw-r--r-- | 1001 bytes |
Computing file changes ...