]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd/PG: fix get debug refcount line
authorSage Weil <sage@redhat.com>
Wed, 20 Feb 2019 23:23:51 +0000 (17:23 -0600)
committerSage Weil <sage@redhat.com>
Wed, 20 Feb 2019 23:23:51 +0000 (17:23 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PG.cc

index f015c77d57c7a771de23da51b496fca685e13cef..59f39edbaf1493a24e19bae120efe11dd2807156 100644 (file)
@@ -152,7 +152,7 @@ void PGStateHistory::dump(Formatter* f) const {
 
 void PG::get(const char* tag)
 {
-  int after = ref++;
+  int after = ++ref;
   lgeneric_subdout(cct, refs, 1) << "PG::get " << this << " "
                                 << (after - 1) << " -> " << after << dendl;
 #ifdef PG_DEBUG_REFS