From: Sage Weil Date: Mon, 11 Jan 2016 21:24:56 +0000 (-0500) Subject: os/bluestore: fix split_collection to persist cnode X-Git-Tag: v10.0.3~43^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=00ec7249090b8f0a9a2b5d43eba9bdcbed42ddbf;p=ceph.git os/bluestore: fix split_collection to persist cnode Signed-off-by: Sage Weil --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 878bb39e0c08..ac602e513aec 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -6159,6 +6159,10 @@ int BlueStore::_split_collection(TransContext *txc, assert(d->cnode.bits == bits); r = 0; + bufferlist bl; + ::encode(c->cnode, bl); + txc->t->set(PREFIX_COLL, stringify(c->cid), bl); + dout(10) << __func__ << " " << c->cid << " to " << d->cid << " " << " bits " << bits << " = " << r << dendl; return r;