]> 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>
Sat, 2 Dec 2023 12:50:04 +0000 (13:50 +0100)
commitc0747922040841c371dbe2706354c08c73d8e59f
tree26dceae992a451c3688088d83dc1b20a2736a19b
parent50ff870c24481d820efa3396a38402f36e17df82
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>
src/librados/snap_set_diff.cc
src/librbd/io/ObjectRequest.cc