]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Hotcold: Added ability to select which levels record metrics
authorKosie van der Merwe <kosie.vandermerwe@gmail.com>
Fri, 15 Feb 2013 20:06:34 +0000 (12:06 -0800)
committerKosie van der Merwe <kosie.vandermerwe@gmail.com>
Fri, 15 Feb 2013 20:06:34 +0000 (12:06 -0800)
commitdc23fd24a04aaf110a105506981266ed114c36c0
tree4a29f0bfb0bc429f297c77fa83a8f19875fb693e
parent9a9a560ba9e250e4347f2fd20df012f3302cf35c
Hotcold: Added ability to select which levels record metrics

Summary: Added an option to `Options` to specify which levels have metrics recorded and used that option in `Version::Get()` to stop metrics being recorded for wrong levels and in `DBImpl` to stop `DoCompactionWork()` trying to split on hotcold for levels where no metrics are available.

Test Plan: make check

Reviewers: vamsi, dhruba

Reviewed By: vamsi

CC: leveldb
Differential Revision: https://reviews.facebook.net/D8511
db/db_bench.cc
db/db_impl.cc
db/version_set.cc
include/leveldb/options.h
util/options.cc