summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-07-24 18:48:14 +0200
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-07-24 18:48:14 +0200
commita0559880bd1eb2b44a9a69a50fabef241da1faaa (patch)
tree2d20095a1e8b73dd9c8cf0d6a69b076693cdc5ec
parentebff1ebd1011968bfdf1d88208d3b95ec1c2e476 (diff)
downloadceph-a0559880bd1eb2b44a9a69a50fabef241da1faaa.tar.gz
rgw/rgw_metadata.h: init cur_shard in LogListCtx with 0
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>
-rw-r--r--src/rgw/rgw_metadata.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rgw/rgw_metadata.h b/src/rgw/rgw_metadata.h
index 2cc9110191a..3ff3b3317b8 100644
--- a/src/rgw/rgw_metadata.h
+++ b/src/rgw/rgw_metadata.h
@@ -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);