]> 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:44:35 +0000 (12:44 +0100)
commitdf8ecf3dda1b6b6eaa79f8f82f5470c0c4e2cc2b
treebb7df36e82e9c24bd81d0df34589893851f4979c
parent8efef4970d4ec3dbfc55c0e04f44222dad364916
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