]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: fix accounting .snap thing
authorSage Weil <sage@newdream.net>
Mon, 11 May 2009 17:44:20 +0000 (10:44 -0700)
committerSage Weil <sage@newdream.net>
Mon, 11 May 2009 18:02:04 +0000 (11:02 -0700)
src/osd/OSD.cc

index 5f69a34ec777fc33d2aaa42496282a81f10cf6d2..0bd9b7449c0cc9b688404fadd9345bd075d33be7 100644 (file)
@@ -2517,7 +2517,7 @@ void OSD::split_pg(PG *parent, map<pg_t,PG*>& children, ObjectStore::Transaction
       child->info.stats.num_bytes += st.st_size;
       child->info.stats.num_kb += SHIFT_ROUND_UP(st.st_size, 10);
       child->info.stats.num_objects++;
-      if (poid.snap && poid.snap != CEPH_NOSNAP)
+      if (poid.oid.snap && poid.oid.snap != CEPH_NOSNAP)
        child->info.stats.num_object_clones++;
     } else {
       dout(20) << " leaving " << poid << "   in " << parentid << dendl;