]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: fix split_collection to persist cnode
authorSage Weil <sage@redhat.com>
Mon, 11 Jan 2016 21:24:56 +0000 (16:24 -0500)
committerSage Weil <sage@redhat.com>
Mon, 11 Jan 2016 21:24:56 +0000 (16:24 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc

index 878bb39e0c084abd1a2bd5252f467681f8f4295e..ac602e513aecdf58df7a7353cebd325988a0f3bc 100644 (file)
@@ -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;