uninit var fixes

git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1889 29311d96-e01e-0410-9327-a35deaab8ce9
This commit is contained in:
sageweil 2007-10-08 17:30:53 +00:00
parent ddb633bf50
commit 38f5a8f6e8
2 changed files with 3 additions and 1 deletions

View File

@ -40,6 +40,8 @@ public:
::_decode(pg_stat_updates, bl, off);
::_decode(osd_stat_updates, bl, off);
}
Incremental() : version(0) {}
};
void apply_incremental(Incremental& inc) {

View File

@ -245,7 +245,7 @@ struct pg_stat_t {
int64_t num_blocks; // in 4k blocks
int64_t num_objects;
pg_stat_t() : state(0), size(0), num_blocks(0), num_objects(0) {}
pg_stat_t() : reported(0), state(0), size(0), num_blocks(0), num_objects(0) {}
};