]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: parent image cache should work for all parents in hierarchy
authorJason Dillaman <dillaman@redhat.com>
Wed, 20 May 2020 20:08:36 +0000 (16:08 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 21 May 2020 18:50:32 +0000 (14:50 -0400)
commit8d1c2e8d81a290a3b98b1c3b9d94f9bdabde981f
tree3ea77289533395878e5ff305571ab5f9001f96b8
parent8375abbf286e1d04c87240c97d76282b9a2e44a5
librbd: parent image cache should work for all parents in hierarchy

A parent image might have its own parent image and so forth. Use the
ImageCtx::child member instead to determine if it's a R/W image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/cache/ParentCacheObjectDispatch.cc
src/test/librbd/cache/test_mock_ParentImageCache.cc
src/test/librbd/mock/MockImageCtx.h