]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Expose statistic for sequence number and implement setTickerCount
authorMayank Agarwal <amayank@fb.com>
Fri, 16 Aug 2013 05:06:26 +0000 (22:06 -0700)
committerMayank Agarwal <amayank@fb.com>
Fri, 16 Aug 2013 06:00:20 +0000 (23:00 -0700)
commit387ac0f1e100bd49cd03af2e23f2bf62a0e9e223
tree6fd81850960c5f001ef05487f3a6d29827a74d4a
parentd1d3d15eb78d31a2fc967fc4da2ca2246ff62028
Expose statistic for sequence number and implement setTickerCount

Summary: statistic for sequence number is needed by wormhole. setTickerCount is demanded for this statistic. I can't simply recordTick(max_sequence) when db recovers because the statistic iobject is owned by client and may/may not be reset during reopen. Eg. statistic is reset in mcrocksdb whereas it is not in db_stress. Therefore it is best to go with setTickerCount

Test Plan: ./db_stress ... --statistics=1 and observed expected sequence number

Reviewers: dhruba

CC: leveldb
Differential Revision: https://reviews.facebook.net/D12327
db/db_impl.cc
db/db_statistics.h
include/leveldb/statistics.h