]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: PG::Info::History: init last_epoch_clean
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Wed, 29 Dec 2010 01:03:12 +0000 (17:03 -0800)
committerSage Weil <sage@newdream.net>
Mon, 3 Jan 2011 18:30:56 +0000 (10:30 -0800)
It seems that we have not been zeroing
PG::Info::History:last_epoch_clean when the History structure is
created. This led to some very interesting log output (and bugs!)

Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
src/osd/PG.h

index e8bda5f6ffb8b7fb9b9c75898ad2f20fcb27ff3a..d6552b3478519bc799817d0869ee35af414f5442 100644 (file)
@@ -128,7 +128,7 @@ public:
 
       History() :            
        epoch_created(0),
-       last_epoch_started(0), last_epoch_split(0),
+       last_epoch_started(0), last_epoch_clean(0), last_epoch_split(0),
        same_up_since(0), same_acting_since(0), same_primary_since(0) {}
 
       void merge(const History &other) {