]> git.apps.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:55:57 +0000 (12:55 +0100)
commit8801950d0d222938805a73c817c6a8233f77e9e9
tree4dd133b8f09cc208c39c4dce7d0f65ec302c8048
parentb3735538aee12ee0cdfa6687aa521bed91000b54
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