diff options
author | Sage Weil <sage@inktank.com> | 2013-02-12 21:20:20 -0800 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-02-12 21:20:20 -0800 |
commit | 9d6eccbff9fca901f1783aa3321c07118c3f8966 (patch) | |
tree | c70f89fcefd20cb618adb33bb68140cabe078eff | |
parent | 977ba79b21ee096e3ffbc294c26cbaf4c55ceb53 (diff) | |
download | ceph-9d6eccbff9fca901f1783aa3321c07118c3f8966.tar.gz |
osd/PG: initialize info_struct_v in ctor
Otherwise we randomly assert on the first write_info() for newly created
PGs. Introduced by 188f3ea6867eeb6e950f6efed18d53ff17522bbc.
Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r-- | src/osd/PG.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/osd/PG.cc b/src/osd/PG.cc index bf172d690f5..7fd4144983d 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -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), |