Skip to content

Commit

Permalink
kv/RocksdbStore: remove perfcounter l_rocksdb_txns/l_rocksdb_txns_sync
Browse files Browse the repository at this point in the history
Perfcounter l_rocksdb_submit_latency/l_rocksdb_submit_sync_latency
contain l_rocksdb_txns/l_rocksdb_txns_sync.

Signed-off-by: Jianpeng Ma <[email protected]>
  • Loading branch information
majianpeng committed Aug 3, 2020
1 parent 9e01fca commit 17f375d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/kv/RocksDBStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -957,8 +957,6 @@ int RocksDBStore::do_open(ostream &out,

PerfCountersBuilder plb(cct, "rocksdb", l_rocksdb_first, l_rocksdb_last);
plb.add_u64_counter(l_rocksdb_gets, "get", "Gets");
plb.add_u64_counter(l_rocksdb_txns, "submit_transaction", "Submit transactions");
plb.add_u64_counter(l_rocksdb_txns_sync, "submit_transaction_sync", "Submit transactions sync");
plb.add_time_avg(l_rocksdb_get_latency, "get_latency", "Get latency");
plb.add_time_avg(l_rocksdb_submit_latency, "submit_latency", "Submit Latency");
plb.add_time_avg(l_rocksdb_submit_sync_latency, "submit_sync_latency", "Submit Sync Latency");
Expand Down Expand Up @@ -1308,7 +1306,6 @@ int RocksDBStore::submit_transaction(KeyValueDB::Transaction t)
int result = submit_common(woptions, t);

utime_t lat = ceph_clock_now() - start;
logger->inc(l_rocksdb_txns);
logger->tinc(l_rocksdb_submit_latency, lat);

return result;
Expand All @@ -1324,7 +1321,6 @@ int RocksDBStore::submit_transaction_sync(KeyValueDB::Transaction t)
int result = submit_common(woptions, t);

utime_t lat = ceph_clock_now() - start;
logger->inc(l_rocksdb_txns_sync);
logger->tinc(l_rocksdb_submit_sync_latency, lat);

return result;
Expand Down
2 changes: 0 additions & 2 deletions src/kv/RocksDBStore.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
enum {
l_rocksdb_first = 34300,
l_rocksdb_gets,
l_rocksdb_txns,
l_rocksdb_txns_sync,
l_rocksdb_get_latency,
l_rocksdb_submit_latency,
l_rocksdb_submit_sync_latency,
Expand Down

0 comments on commit 17f375d

Please sign in to comment.