]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_metadata.h: init cur_shard in LogListCtx with 0 465/head
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 24 Jul 2013 16:48:14 +0000 (18:48 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 24 Jul 2013 16:48:14 +0000 (18:48 +0200)
CID 1054868 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
  uninit_member: Non-static class member "cur_shard" is not
  initialized in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_metadata.h

index 2cc9110191aab2dc1d461e5b15fde0e0816edb10..3ff3b3317b8c6a30dc79a49be7436b4f6fc83947 100644 (file)
@@ -102,7 +102,7 @@ public:
 
     bool done;
 
-    LogListCtx() : done(false) {}
+    LogListCtx() : cur_shard(0), done(false) {}
   };
 
   void init_list_entries(int shard_id, utime_t& from_time, utime_t& end_time, string& marker, void **handle);