Skip to content

Commit

Permalink
Merge pull request #10499: mds: fix SnapRealm::have_past_parents_open()
Browse files Browse the repository at this point in the history
Reviewed-by: Loic Dachary <ldachary@redhat.com>
  • Loading branch information
Loic Dachary committed Aug 8, 2016
2 parents 5e63e77 + 2beb56a commit 077fcaf
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 077fcaf

Please sign in to comment.