]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: initialize info_struct_v in ctor
authorSage Weil <sage@inktank.com>
Wed, 13 Feb 2013 05:20:20 +0000 (21:20 -0800)
committerSage Weil <sage@inktank.com>
Wed, 13 Feb 2013 05:20:20 +0000 (21:20 -0800)
Otherwise we randomly assert on the first write_info() for newly created
PGs.  Introduced by 188f3ea6867eeb6e950f6efed18d53ff17522bbc.

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

index bf172d690f5642ec010037128e26a5e88f36a2cf..7fd4144983dd2419635d99aff9b3873125f42326 100644 (file)
@@ -64,7 +64,9 @@ PG::PG(OSDService *o, OSDMapRef curmap,
   osd(o), osdmap_ref(curmap), pool(_pool),
   _lock("PG::_lock"),
   ref(0), deleting(false), dirty_info(false), dirty_big_info(false), dirty_log(false),
-  info(p), coll(p), log_oid(loid), biginfo_oid(ioid),
+  info(p),
+  info_struct_v(0),
+  coll(p), log_oid(loid), biginfo_oid(ioid),
   recovery_item(this), scrub_item(this), scrub_finalize_item(this), snap_trim_item(this), stat_queue_item(this),
   recovery_ops_active(0),
   waiting_on_backfill(0),