_release_fh(fh);
}
- while (!ll_unclosed_fh.empty()) {
- set<Fh*>::iterator it = ll_unclosed_fh.begin();
- ll_unclosed_fh.erase(*it);
+ 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);
}
out:
Fh *fhptr = fhp ? *fhp : NULL;
if (fhptr) {
- ll_unclosed_fh.insert(fhptr);
+ ll_unclosed_fh_set.insert(fhptr);
}
tout(cct) << (unsigned long)fhptr << std::endl;
ldout(cct, 3) << "ll_open " << vino << " " << flags << " = " << r << " (" <<
Fh *fhptr = fhp ? *fhp : NULL;
if (fhptr) {
- ll_unclosed_fh.insert(fhptr);
+ ll_unclosed_fh_set.insert(fhptr);
}
tout(cct) << (unsigned long)fhptr << std::endl;
tout(cct) << attr->st_ino << std::endl;
tout(cct) << "ll_release (fh)" << std::endl;
tout(cct) << (unsigned long)fh << std::endl;
- if (ll_unclosed_fh.count(fh))
- ll_unclosed_fh.erase(fh);
+ if (ll_unclosed_fh_set.count(fh))
+ ll_unclosed_fh_set.erase(fh);
return _release_fh(fh);
}
// file handles, etc.
interval_set<int> free_fd_set; // unused fds
ceph::unordered_map<int, Fh*> fd_map;
- set<Fh*> ll_unclosed_fh;
+ set<Fh*> ll_unclosed_fh_set;
int get_fd() {
int fd = free_fd_set.range_start();