]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: add TypeTrait class to librbd/cache
authorshangdehao1 <dehao.shang@intel.com>
Thu, 23 May 2019 21:46:24 +0000 (05:46 +0800)
committerJason Dillaman <dillaman@redhat.com>
Mon, 24 Jun 2019 21:35:40 +0000 (17:35 -0400)
commit09afab6b173a6a9a0054866224262dbec0990f6f
tree843afa500b47cdd9673eadab7e4d2a42a2ca1c75
parentab1c146ad6d937662098088ea4ac3ba116dd4130
librbd: add TypeTrait class to librbd/cache

- add TypeTraits to librbd/cache
- remove the second template parameter of parent image dispatch
- remove m_cache_client and m_image_ctx to private selection,
  and add two public method to get these two data member.
- modify parent image cache uite testing

Signed-off-by: Dehao Shang <dehao.shang@intel.com>
src/librbd/cache/ParentCacheObjectDispatch.cc
src/librbd/cache/ParentCacheObjectDispatch.h
src/librbd/cache/TypeTraits.h [new file with mode: 0644]
src/test/librbd/cache/test_mock_ParentImageCache.cc