]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: restore diff-iterate include_parent functionality in fast-diff mode
authorIlya Dryomov <idryomov@gmail.com>
Wed, 5 Jan 2022 19:24:40 +0000 (20:24 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 14 Jan 2022 11:26:11 +0000 (12:26 +0100)
commitff144b2b857c41b4b99fc9bbfc847f32cb5cae1d
treeb7ca2061a918f12019924238e382f940db5770df
parentd78fdc3e33933ac56df47c5285fc7342637d49e3
librbd: restore diff-iterate include_parent functionality in fast-diff mode

Commit 4429ed4f3f4c ("librbd: switch diff iterate API to use new snaps
list dispatch methods") removed the recursive execute() call.  The new
list_snaps method does indeed handle parent diffs internally but it is
not used in fast-diff mode.  Nothing changed there -- we still need to
load the parent object map, calculate parent object_diff_state, etc.

Fixes: https://tracker.ceph.com/issues/53787
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 04293bef6ccd2b9ca3db53906b63c952e235cdb4)
src/librbd/api/DiffIterate.cc
src/test/librbd/test_librbd.cc