Merge pull request #10419 from jcsp/wip-16764

client: fix shutdown with open inodes
This commit is contained in:
Yan, Zheng 2016-07-24 21:42:06 -05:00 committed by GitHub
commit 16ce830ce7

View File

@ -5689,9 +5689,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()) {