From: Jianpeng Ma Date: Mon, 21 Mar 2016 12:19:52 +0000 (+0800) Subject: os/bluestore/BlueStore.cc: when do omapclear, it should clear omap_head. X-Git-Tag: v10.1.1~96^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F8230%2Fhead;p=ceph.git os/bluestore/BlueStore.cc: when do omapclear, it should clear omap_head. Signed-off-by: Jianpeng Ma --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 52f9055083ce..ef63b9488e3c 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -6057,6 +6057,8 @@ int BlueStore::_omap_clear(TransContext *txc, int r = 0; if (o->onode.omap_head != 0) { _do_omap_clear(txc, o->onode.omap_head); + o->onode.omap_head = 0; + txc->write_onode(o); } dout(10) << __func__ << " " << c->cid << " " << o->oid << " = " << r << dendl; return r;