]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: init my_stat
authorSage Weil <sage@newdream.net>
Thu, 3 Apr 2008 19:47:34 +0000 (12:47 -0700)
committerSage Weil <sage@newdream.net>
Thu, 3 Apr 2008 19:47:34 +0000 (12:47 -0700)
src/osd/OSD.cc

index 05203eace70308799cdce7c92effca07293efcc8..bbbb92b10a3a906e5c7653044f66a521ca2c5b56 100644 (file)
@@ -222,6 +222,8 @@ OSD::OSD(int id, Messenger *m, MonMap *mm, const char *dev) :
 
   state = STATE_BOOTING;
 
+  memset(&my_stat, 0, sizeof(my_stat));
+
   stat_ops = 0;
   stat_qlen = 0;
   stat_rd_ops = stat_rd_ops_shed_in = stat_rd_ops_shed_out = 0;