]> 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>
Thu, 11 Feb 2021 18:52:05 +0000 (13:52 -0500)
commit20073d8da7b65b34041117b8f7b1e6f975a6d1d2
treee0567d3b8b6787b24ad10747e5100288e5bb2409
parent96a001c2379de09277ccc17fd70d24c6d573aa84
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>
(cherry picked from commit 235b27a8f08a82fc46efa8b6a3e5cb8a5276956b)
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