]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os: KeyValueDB: expose interface to obtain estimated store size
authorJoao Eduardo Luis <jecluis@gmail.com>
Thu, 22 Aug 2013 15:17:02 +0000 (16:17 +0100)
committerJoao Eduardo Luis <jecluis@gmail.com>
Fri, 23 Aug 2013 18:05:25 +0000 (19:05 +0100)
commit7a091d3161b34a123547da8a764da051cd60271a
tree083bda7d42ba7a1015eaf4e46586da36d8cb9983
parentaee053c1a68b733a2bec189cee2814d12ddca751
os: KeyValueDB: expose interface to obtain estimated store size

On LevelDBStore, instead of using leveldb's GetApproximateSizes() function,
we will instead assess what's the store's raw size from the contents of
the store dir (this means .sst's, .log's, etc).  The reason behind this
approach is that GetApproximateSizes() would expect us to provide a range
of keys for which to obtain an approximate size; on the other hand, what we
really want is to obtain the size of the store -- not the size of the
data (besides, with the compaction issues we've been seeing, we wonder
how reliable such approximation would be).

Signed-off-by: Joao Eduardo Luis <jecluis@gmail.com>
src/os/KeyValueDB.h
src/os/LevelDBStore.h
src/test/ObjectMap/KeyValueDBMemory.h