]> git-server-git.apps.pok.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)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Wed, 29 Dec 2010 01:07:07 +0000 (17:07 -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 502aec4353ff79bab91c610d41c07cb3987028c3..eb084d75020ee63e1398bdb99d37c2026cfcb2ad 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) {