]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Add a new KV wrapper GenericObjectMap
authorHaomai Wang <haomaiwang@gmail.com>
Wed, 29 Jan 2014 09:46:00 +0000 (17:46 +0800)
committerHaomai Wang <haomaiwang@gmail.com>
Wed, 29 Jan 2014 09:46:00 +0000 (17:46 +0800)
commit8fb366f0895e783fe8bc90d71bf65c50af710ef9
tree1d560089e153e40953a7c27ebff0343cf6ed3639
parent2a737d841e17dff8b831fc600c1b902cb467f4b9
Add a new KV wrapper GenericObjectMap

Now we already have DBObjectMap which implement ObjectMap and other
interfaces, and ObjectMap.h implied that ObjectMap is used to encapsulates
the FileStore key value store. There exists limitation in current DBObjectMap
implementation, such as lacking of "coll_t" in "key", complicated prefix
hard-coded and inflexible extending.

So in order to provide a more flexible API and clear implementation to wrap KV
store, I copy the origin DBObjectMap and redesign the partial implementation.
Adding "coll_t" argument to all API and export "prefix" to callers. Prefixes
are divided into two parts "INTERN" and "USER". "INTERN" keys used by self to
manage and "USER" keys are managed by callers. Besides above, misc fixes are
imported such as more clear member function name and extendible header
structure.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
src/common/config_opts.h
src/os/GenericObjectMap.cc [new file with mode: 0644]
src/os/GenericObjectMap.h [new file with mode: 0644]