[RocksDB] move stats counting outside of mutex protected region for DB::Get()

Summary:
As title. This is possible as tickers are atomic now.
db_bench on high qps in-memory muti-thread random get workload, showed ~5% throughput improvement.

Test Plan: make check; db_bench; db_stress

Reviewers: dhruba

Reviewed By: dhruba

CC: leveldb

Differential Revision: https://reviews.facebook.net/D12555
main
Haobo Xu 12 years ago
parent dad2731729
commit 43eef52001
Loading…
Cancel
Save