sorted.insert(*p);
if ((*p)->get_parent()->is_auth())
mustpin.insert(*p);
- else if ((*p)->get_type() == CEPH_LOCK_IFILE &&
- !(*p)->get_parent()->is_auth() && !(*p)->can_wrlock(client)) { // we might have to request a scatter
- dout(15) << " will also auth_pin " << *(*p)->get_parent() << " in case we need to request a scatter" << dendl;
+ else if (!(*p)->get_parent()->is_auth() &&
+ !(*p)->can_wrlock(client)) { // we might have to request a scatter
+ dout(15) << " will also auth_pin " << *(*p)->get_parent()
+ << " in case we need to request a scatter" << dendl;
mustpin.insert(*p);
}
}
sorted.insert(*p);
if ((*p)->get_parent()->is_auth())
mustpin.insert(*p);
- else if ((*p)->get_type() == CEPH_LOCK_IFILE &&
- !(*p)->get_parent()->is_auth() && !(*p)->can_rdlock(client)) { // we might have to request an rdlock
- dout(15) << " will also auth_pin " << *(*p)->get_parent() << " in case we need to request a rdlock" << dendl;
+ else if (!(*p)->get_parent()->is_auth() &&
+ !(*p)->can_rdlock(client)) { // we might have to request an rdlock
+ dout(15) << " will also auth_pin " << *(*p)->get_parent()
+ << " in case we need to request a rdlock" << dendl;
mustpin.insert(*p);
}
}