]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: fix issues with snapshot-based mirroring image state
authorJason Dillaman <dillaman@redhat.com>
Fri, 14 Feb 2020 14:34:35 +0000 (09:34 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 21 Feb 2020 14:03:09 +0000 (09:03 -0500)
commit1b18c067b769b02635ded5fb2f51544075df1877
tree4b67bf984198f17ce9ae8187bf8ac89c01d29d36
parentbcbdd6cf698b380f6385dad851ea883d0badb517
librbd: fix issues with snapshot-based mirroring image state

There is no need to record the snapshot id within the SnapState structure
since that will duplicate the id. Additionally, the protection status wasn't
being decoded. Also includes some improvements to the debug formatting.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/mirror/snapshot/SetImageStateRequest.cc
src/librbd/mirror/snapshot/Types.cc
src/librbd/mirror/snapshot/Types.h