]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librados: fix calc_snap_set_diff interval calculation
authorSage Weil <sage@inktank.com>
Wed, 24 Apr 2013 20:48:40 +0000 (13:48 -0700)
committerSage Weil <sage@inktank.com>
Wed, 24 Apr 2013 21:34:40 +0000 (14:34 -0700)
commit3604c98232615827812099af27ebc3ed2414c8eb
tree3eaa78b3e3529e9b176d5d9130363734c7043bde
parent5668e5b5a458fa9404dac85e722bc64ca86bdc46
librados: fix calc_snap_set_diff interval calculation

When calculating the [a,b] interval over which a given clone is valid, do
not assume that b == the clone id; that is *not* true when the original
end snap has been deleted/trimmed.

While we are here, make the code a bit cleaner to read.

Fixes: #4785
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
src/librados/snap_set_diff.cc