]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedPG.h: uninit var in ctor RepModify
authorSamuel Just <sam.just@inktank.com>
Wed, 29 Aug 2012 23:39:25 +0000 (16:39 -0700)
committerSage Weil <sage@inktank.com>
Fri, 31 Aug 2012 20:11:36 +0000 (13:11 -0700)
CID 717344: Uninitialized scalar field (UNINIT_CTOR)At (2): Non-static class
member "epoch_started" is not initialized in this constructor nor in any
functions that it calls.

Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/ReplicatedPG.h

index 60ac6be9b1c4a58321025b4b259c2f53b9bf0c2f..79b373f9d01dad68a0b0dca34fdc6976d9ed0c15 100644 (file)
@@ -828,7 +828,7 @@ protected:
     list<ObjectStore::Transaction*> tls;
     
     RepModify() : pg(NULL), ctx(NULL), applied(false), committed(false), ackerosd(-1),
-                 bytes_written(0) {}
+                 epoch_started(0), bytes_written(0) {}
   };
 
   struct C_OSD_RepModifyApply : public Context {