]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librados/snap_set_diff: set end_size only if end object exists
authorIlya Dryomov <idryomov@gmail.com>
Sat, 11 Nov 2023 13:15:49 +0000 (14:15 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 11 Dec 2023 11:51:48 +0000 (12:51 +0100)
commitaa537d34a85309057684192986d6f208dcc596c5
tree2389607fd21dccccf8f746e55341c05cb877639d
parentbef78a51880cb7d25e258a6b00c26898788a1958
librados/snap_set_diff: set end_size only if end object exists

Since commit 73f50a13109f ("rbd-mirror: use generalized deep copy for
image sync"), the only user of calc_snap_set_diff() immediately unsets
end_size otherwise.

calc_snap_set_diff() semantics are clearer if end_size is set together
with end_exists and clone_end_snap_id.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit c0747922040841c371dbe2706354c08c73d8e59f)
src/librados/snap_set_diff.cc
src/librbd/io/ObjectRequest.cc