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

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

index 3acf4e73ca92e44e681cd6fc5bdec6aed5540991..614cdfa9feed99da2f771ca2d3f2205a0c7924b9 100644 (file)
@@ -171,7 +171,7 @@ public:
     version_t last_requested;           // last object requested by primary
 
     /****/
-    IndexedLog() {}
+    IndexedLog() : last_requested(0) {}
 
     void claim_log(const pg_log_t& o) {
       log = o.log;