]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/MemStore: implement reference 'memstore' backend
authorSage Weil <sage@inktank.com>
Fri, 6 Dec 2013 00:58:06 +0000 (16:58 -0800)
committerSage Weil <sage@inktank.com>
Fri, 6 Dec 2013 07:13:28 +0000 (23:13 -0800)
commitaa63d6730a638591b0699c4215ed5cce2917d1c9
treeece6d6ba72ac40cf89a56a21ee6d317b310e8a84
parent58231460772f882cfd35fac786778c304c207c8a
os/MemStore: implement reference 'memstore' backend

This is (as near to) a trivial ObjectStore backend for the OSD as we can
get at the moment.  Everything is stored in memory.  We are slightly
tricky with the locking, but not overly so.

On umount we dump everything out to disk, and on mount we load it all in
again, so we have some very coarse persistence/durability... just enough
to make this usable in a non-failure environment.

Signed-off-by: Sage Weil <sage@inktank.com>
src/os/Makefile.am
src/os/MemStore.cc [new file with mode: 0644]
src/os/MemStore.h [new file with mode: 0644]
src/os/ObjectStore.cc