Skip to content

Commit

Permalink
Merge pull request #10958: jewel: client: fix shutdown with open inodes
Browse files Browse the repository at this point in the history
Reviewed-by: Loic Dachary <ldachary@redhat.com>
  • Loading branch information
Loic Dachary committed Oct 10, 2016
2 parents 78f5f2b + cf211d7 commit d47c249
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/client/Client.cc
Expand Up @@ -5651,9 +5651,10 @@ void Client::unmount()

while (!ll_unclosed_fh_set.empty()) {
set<Fh*>::iterator it = ll_unclosed_fh_set.begin();
ll_unclosed_fh_set.erase(*it);
ldout(cct, 0) << " destroyed lost open file " << *it << " on " << *((*it)->inode) << dendl;
_release_fh(*it);
Fh *fh = *it;
ll_unclosed_fh_set.erase(fh);
ldout(cct, 0) << " destroyed lost open file " << fh << " on " << *(fh->inode) << dendl;
_release_fh(fh);
}

while (!opened_dirs.empty()) {
Expand Down

0 comments on commit d47c249

Please sign in to comment.