]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd/deep_copy: object-copy state machine must update object map
authorJason Dillaman <dillaman@redhat.com>
Fri, 29 Jan 2021 02:42:09 +0000 (21:42 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 5 Feb 2021 04:26:57 +0000 (23:26 -0500)
commitca0b9bfc28ef7287ca139ca9640c876223eda87b
treebc2574caa0a32b6ab39be37283088715f1d27088
parent89d2a13db67945bfd7c6d6fe79584f00574b8ba3
librbd/deep_copy: object-copy state machine must update object map

If there was no data to copy, the object-copy state machine was bypassing
the object-map update states and prematurely completing. Since the
object-map is default-initialized to all non-existent objects, this results
in incorrect state for OBJECT_EXISTS_CLEAN objects.

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