]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson: add FuturizedCollection
authorchunmei Liu <chunmei.liu@intel.com>
Thu, 22 Aug 2019 07:47:40 +0000 (00:47 -0700)
committerKefu Chai <kchai@redhat.com>
Tue, 27 Aug 2019 16:03:53 +0000 (00:03 +0800)
commit0fbedd538c1015cbc93363320b22088439419484
treeb1557336c41e8589b1d0fb0c7489e1921af84f9e
parent6188e317919b275fd24353e3b03779bcaefa3ae7
crimson: add FuturizedCollection

we will need to talk to BlueStore, and currently `ceph::os::Collection`
only works with `CyanStore`, so a wrapper around `ceph::os::Collection`
is added. we can subclass it to adapt to CyanStore and to BlueStore.

the underlying concrete `FuturizedStore` classes are responsible to
cast `FuturizedCollection` to their own `Collection` type if they
want to access the interface not exposed by `FuturizedCollection`.

Signed-off-by: chunmei Liu <chunmei.liu@intel.com>
18 files changed:
src/crimson/os/cyan_collection.cc
src/crimson/os/cyan_collection.h
src/crimson/os/cyan_store.cc
src/crimson/os/cyan_store.h
src/crimson/os/futurized_collection.h [new file with mode: 0644]
src/crimson/os/futurized_store.h
src/crimson/osd/ec_backend.cc
src/crimson/osd/osd.cc
src/crimson/osd/osd.h
src/crimson/osd/osd_meta.cc
src/crimson/osd/osd_meta.h
src/crimson/osd/pg.cc
src/crimson/osd/pg.h
src/crimson/osd/pg_backend.cc
src/crimson/osd/pg_backend.h
src/crimson/osd/pg_meta.cc
src/crimson/osd/replicated_backend.cc
src/crimson/osd/shard_services.h