]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
librgw: move ObjUnref trace print ahead of...unref
authorMatt Benjamin <mbenjamin@redhat.com>
Sat, 19 Dec 2015 23:32:05 +0000 (18:32 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:07:04 +0000 (12:07 -0500)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.h

index 4478bd5febc582721c82cfb10bbcfb9af3900a20..35eaa9f0acc51d820b8422eabf84bea50ab40469 100644 (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);
        }
       };