mirror of
https://github.com/ceph/ceph
synced 2025-02-15 14:58:01 +00:00
librbd/diff_iterator: use proper snap to query parent overlap
If no snapshot has been made, we will use CEPH_NOSNAP instead of 0, to query the parent overlap. Fixes bug http://tracker.ceph.com/issues/18200 Signed-off-by: Xiaoxi Chen <xiaoxchen@ebay.com>
This commit is contained in:
parent
fe814e78b9
commit
a88ceff276
@ -264,7 +264,7 @@ int DiffIterate::execute() {
|
||||
RWLock::RLocker l(m_image_ctx.snap_lock);
|
||||
RWLock::RLocker l2(m_image_ctx.parent_lock);
|
||||
uint64_t overlap = end_size;
|
||||
m_image_ctx.get_parent_overlap(from_snap_id, &overlap);
|
||||
m_image_ctx.get_parent_overlap(m_image_ctx.snap_id, &overlap);
|
||||
r = 0;
|
||||
if (m_image_ctx.parent && overlap > 0) {
|
||||
ldout(cct, 10) << " first getting parent diff" << dendl;
|
||||
|
Loading…
Reference in New Issue
Block a user