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

index cba793f3ca8c177b9191a43c389e3a9fd6dbd0fc..50af01eaabbbc8a1e5e9ba860048b30a8f3f1578 100644 (file)
@@ -3595,6 +3595,7 @@ int KStore::_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)