]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
PGLog: initialize complete_to
authorSamuel Just <sam.just@inktank.com>
Fri, 30 May 2014 22:18:53 +0000 (15:18 -0700)
committerSamuel Just <sam.just@inktank.com>
Fri, 30 May 2014 22:18:53 +0000 (15:18 -0700)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/PGLog.h

index f793cbdf57df9a60b57492d76cdfecde7b34cc2f..1ae6af40eaa62d2183d2c66e738dc53be1fef4cc 100644 (file)
@@ -63,7 +63,9 @@ struct PGLog {
     version_t last_requested;           // last object requested by primary
 
     /****/
-    IndexedLog() : last_requested(0) {}
+    IndexedLog() :
+      complete_to(log.end()),
+      last_requested(0) {}
 
     void claim_log(const pg_log_t& o) {
       log = o.log;