]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: assign nid for newly created onode
authorxie xingguo <xie.xingguo@zte.com.cn>
Fri, 5 Feb 2016 04:06:10 +0000 (12:06 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Fri, 5 Feb 2016 04:06:10 +0000 (12:06 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.cc

index 82c2e5a6ffb6c5b197baf3110c43c76d767a8c6e..ab4c7d96b93ef26380de8adc508b4c642b751d16 100644 (file)
@@ -6317,6 +6317,7 @@ int BlueStore::_clone_range(TransContext *txc,
   newo = c->get_onode(new_oid, true);
   assert(newo);
   newo->exists = true;
+  _assign_nid(txc, newo);
 
   r = _do_read(oldo, srcoff, length, bl, 0);
   if (r < 0)