It is possible that mdsdir and stray directroies are auth pinned.
(they have unstable lock or they are being stored)
Fixes: http://tracker.ceph.com/issues/20537
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
assert(!migrator->is_exporting());
assert(!migrator->is_importing());
+ if ((myin && myin->is_auth_pinned()) ||
+ (mydir && mydir->is_auth_pinned())) {
+ dout(7) << "still have auth pinned objects" << dendl;
+ return false;
+ }
// flush what we can from the log
mds->mdlog->trim(0);