The heler also updates the SnapRealm::open_past_parents, which is needed
for the have_past_parents_open() check.
That is used when, among other things, we import caps; not updating it
prevented the cap import from sending the client cap message, which makes
the mds<->client cap relationship get out of sync.
Signed-off-by: Sage Weil <sage@newdream.net>
assert(parenti);
assert(parenti->snaprealm);
snaprealm->parent = new_parent;
- parenti->get(PIN_PASTSNAPPARENT);
+ snaprealm->add_open_past_parent(new_parent);
dout(10) << " realm " << *snaprealm << " past_parents " << snaprealm->srnode.past_parents
<< " -> " << next_snaprealm->past_parents << dendl;
dout(10) << " pinning new parent " << *parenti << dendl;