Skip to content

Commit

Permalink
mds: don't cap log when there are replicated objects
Browse files Browse the repository at this point in the history
replicas may dirty scatter locks

Fixes: http://tracker.ceph.com/issues/21467
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
  • Loading branch information
ukernel committed Oct 9, 2018
1 parent 82a9816 commit 1bf2a5c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/mds/MDCache.cc
Expand Up @@ -7701,6 +7701,12 @@ bool MDCache::shutdown_pass()
ceph_assert(!migrator->is_exporting());
ceph_assert(!migrator->is_importing());

// replicas may dirty scatter locks
if (myin && myin->is_replicated()) {
dout(7) << "still have replicated objects" << dendl;
return false;
}

if ((myin && myin->is_auth_pinned()) ||
(mydir && mydir->is_auth_pinned())) {
dout(7) << "still have auth pinned objects" << dendl;
Expand Down

0 comments on commit 1bf2a5c

Please sign in to comment.