Skip to content

Commit

Permalink
Merge pull request #10499 from Abhishekvrshny/wip-16299-jewel
Browse files Browse the repository at this point in the history
jewel: mds: fix SnapRealm::have_past_parents_open()

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
  • Loading branch information
Loic Dachary committed Aug 23, 2016
2 parents 2823714 + 2beb56a commit 9fd5291
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mds/SnapRealm.cc
Expand Up @@ -189,8 +189,8 @@ bool SnapRealm::have_past_parents_open(snapid_t first, snapid_t last)
return false;
}
SnapRealm *parent_realm = open_past_parents[p->second.ino].first;
if (parent_realm->have_past_parents_open(MAX(first, p->second.first),
MIN(last, p->first)))
if (!parent_realm->have_past_parents_open(MAX(first, p->second.first),
MIN(last, p->first)))
return false;
}

Expand Down

0 comments on commit 9fd5291

Please sign in to comment.