]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: init test_ops_hook
authorSage Weil <sage@inktank.com>
Thu, 9 May 2013 16:44:20 +0000 (09:44 -0700)
committerSage Weil <sage@inktank.com>
Thu, 9 May 2013 17:49:00 +0000 (10:49 -0700)
CID 1019628 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
2. uninit_member: Non-static class member "test_ops_hook" is not initialized in this constructor nor in any functions that it calls.

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/OSD.cc

index d27a3b51a3c36328ba755b61402b68b8bd3ed90d..e97dec21f44c5a1b4ea83d3bcc52a41b9b9ef840 100644 (file)
@@ -905,6 +905,7 @@ OSD::OSD(int id, Messenger *internal_messenger, Messenger *external_messenger,
   heartbeat_dispatcher(this),
   stat_lock("OSD::stat_lock"),
   finished_lock("OSD::finished_lock"),
+  test_ops_hook(NULL),
   op_wq(this, g_conf->osd_op_thread_timeout, &op_tp),
   peering_wq(this, g_conf->osd_op_thread_timeout, &op_tp, 200),
   map_lock("OSD::map_lock"),