]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client: init readdir fields
authorSage Weil <sage@inktank.com>
Mon, 15 Oct 2012 21:19:10 +0000 (14:19 -0700)
committerSage Weil <sage@inktank.com>
Mon, 15 Oct 2012 21:19:10 +0000 (14:19 -0700)
At (2): Non-static class member "readdir_offset" is not initialized in this constructor nor in any functions that it calls.
At (4): Non-static class member "readdir_end" is not initialized in this constructor nor in any functions that it calls.
At (6): Non-static class member "readdir_num" is not initialized in this constructor nor in any functions that it calls.
CID 717207 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
At (8): Non-static class member "tid" is not initialized in this constructor nor in any functions that it calls.

Signed-off-by: Sage Weil <sage@inktank.com>
src/client/MetaRequest.h

index f52512e77420d452414620c6eafd9f5257ac5ed7..03fe8886cbaed07b5bbf0c4d71df297992710df4 100644 (file)
@@ -80,7 +80,9 @@ struct MetaRequest {
     mds(-1), resend_mds(-1), send_to_auth(false), sent_on_mseq(0),
     num_fwd(0), retry_attempt(0),
     ref(1), reply(0), 
-    kick(false), got_safe(false), got_unsafe(false), item(this), unsafe_item(this),
+    kick(false),
+    readdir_offset(0), readdir_end(false), readdir_num(0),
+    got_safe(false), got_unsafe(false), item(this), unsafe_item(this),
     lock("MetaRequest lock"),
     caller_cond(0), dispatch_cond(0),
     target(0) {