Skip to content

Commit

Permalink
Merge pull request #12649 from xiaoxichen/wip-18278-jewel
Browse files Browse the repository at this point in the history
jewel: rbd: librbd: use proper snapshot when computing diff parent overlap

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
  • Loading branch information
smithfarm committed Jan 30, 2017
2 parents a1e7c06 + 64c0cae commit efad365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librbd/DiffIterate.cc
Expand Up @@ -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;
Expand Down

0 comments on commit efad365

Please sign in to comment.