librgw: move ObjUnref trace print ahead of...unref

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
This commit is contained in:
Matt Benjamin 2015-12-19 18:32:05 -05:00
parent 1f2ec092f7
commit eaf156397a

View File

@ -673,13 +673,12 @@ namespace rgw {
public:
ObjUnref(RGWLibFS* fs) : fs(fs) {}
void operator()(RGWFileHandle* fh) const {
fs->fh_lru.unref(fh, cohort::lru::FLAG_NONE);
lsubdout(fs->get_context(), rgw, 5)
<< __func__
<< fh->name
<< " refs=" << fh->get_refcnt()
<< " before ObjUnref refs=" << fh->get_refcnt()
<< dendl;
fs->fh_lru.unref(fh, cohort::lru::FLAG_NONE);
}
};