]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd/deep_copy: skip snap list if object is known to be clean
authorJason Dillaman <dillaman@redhat.com>
Fri, 29 Jan 2021 15:44:38 +0000 (10:44 -0500)
committerJason Dillaman <dillaman@redhat.com>
Mon, 8 Feb 2021 14:23:34 +0000 (09:23 -0500)
commit235b27a8f08a82fc46efa8b6a3e5cb8a5276956b
treec18d187322568de62b4233a7878fc77691a5dbf2
parentca0b9bfc28ef7287ca139ca9640c876223eda87b
librbd/deep_copy: skip snap list if object is known to be clean

If the fast-diff indicates that the destination object should exist
and that it hasn't changed, there shouldn't be a need to issue the
snap list operation. Instead, just update the destination object map
to indicate the existence of the object.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/deep_copy/ImageCopyRequest.cc
src/librbd/deep_copy/ObjectCopyRequest.cc
src/librbd/deep_copy/Types.h
src/test/librbd/deep_copy/test_mock_ImageCopyRequest.cc
src/test/librbd/deep_copy/test_mock_ObjectCopyRequest.cc