const auto& fhk = rgw_fh.get_key();
const auto& fh = const_cast<RGWFileHandle&>(rgw_fh).get_fh();
os << "<RGWFileHandle:";
- os << "addr=" << &rgw_fh;
+ os << "addr=" << &rgw_fh << ";";
switch (fh->fh_type) {
case RGW_FS_TYPE_DIRECTORY:
os << "type=DIRECTORY;";
} /* RGWFileHandle::decode_attrs */
bool RGWFileHandle::reclaim() {
+ lsubdout(fs->get_context(), rgw, 17)
+ << __func__ << " " << *this
+ << dendl;
fs->fh_cache.remove(fh.fh_hk.object, this, cohort::lru::FLAG_NONE);
return true;
} /* RGWFileHandle::reclaim */
{
RGWLibFS *fs = static_cast<RGWLibFS*>(rgw_fs->fs_private);
RGWFileHandle* rgw_fh = get_rgwfh(fh);
- fs->unref(rgw_fh);
+ lsubdout(fs->get_context(), rgw, 17)
+ << __func__ << " " << *rgw_fh
+ << dendl;
+
+ fs->unref(rgw_fh);
return 0;
}
}
lat.lock->unlock(); /* !LATCHED */
get<0>(fhr) = fh;
+ if (fh) {
+ lsubdout(get_context(), rgw, 17)
+ << __func__ << " 1 " << *fh
+ << dendl;
+ }
return fhr;
} /* lookup_fh(const fh_key&) */
lat.lock->unlock(); /* !LATCHED */
out:
get<0>(fhr) = fh;
+ if (fh) {
+ lsubdout(get_context(), rgw, 17)
+ << __func__ << " 2 " << *fh
+ << dendl;
+ }
return fhr;
} /* lookup_fh(RGWFileHandle*, const char *, const uint32_t) */