From: xie xingguo Date: Fri, 29 Jan 2016 10:42:19 +0000 (+0800) Subject: kstore: flush before we really start a clone X-Git-Tag: v10.0.4~110^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a19aa226175e78802d9eaaf65e7da782f068d133;p=ceph.git kstore: flush before we really start a clone Signed-off-by: xie xingguo --- diff --git a/src/os/kstore/KStore.cc b/src/os/kstore/KStore.cc index fbf72da2574a..283db4d03b8b 100644 --- a/src/os/kstore/KStore.cc +++ b/src/os/kstore/KStore.cc @@ -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;