]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
kstore: flush before we really start a clone
authorxie xingguo <xie.xingguo@zte.com.cn>
Fri, 29 Jan 2016 10:42:19 +0000 (18:42 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Fri, 29 Jan 2016 11:35:48 +0000 (19:35 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/kstore/KStore.cc

index fbf72da2574ae17b892ed8b2cbf3814706b5b76a..283db4d03b8b53fa0c4460a911fab05a9aa71be1 100644 (file)
@@ -3540,6 +3540,8 @@ int KStore::_clone(TransContext *txc,
     _assign_nid(txc, newo);
   }
 
+  oldo->flush();
+
   r = _do_read(oldo, 0, oldo->onode.size, bl, 0);
   if (r < 0)
     goto out;