]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os: LevelDBStore: ignore ENOENT files when estimating store size 561/head
authorJoao Eduardo Luis <jecluis@gmail.com>
Fri, 30 Aug 2013 17:05:33 +0000 (18:05 +0100)
committerJoao Eduardo Luis <jecluis@gmail.com>
Fri, 30 Aug 2013 17:05:33 +0000 (18:05 +0100)
commit64774e5792f136df2bc78db686440fc2f3a7643f
tree56afd26c16631ff2b713300974eb2667fdb204f5
parent56ff4101a12e190caea9805dd5fb250ab5fa8e8c
os: LevelDBStore: ignore ENOENT files when estimating store size

While iterating over the store files we race against leveldb, which may
be shuffling data around thus removing some files.

By ignoring missing files on stat, we'll get to not account those files
but that's okay -- this is just an estimate.

Fixes: #6178
Signed-off-by: Joao Eduardo Luis <jecluis@gmail.com>
src/os/LevelDBStore.h