]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/Newstore: Allow gap in _do_write append mode
authorXiaoxi Chen <xiaoxi.chen@intel.com>
Mon, 13 Apr 2015 08:21:00 +0000 (16:21 +0800)
committerSage Weil <sage@redhat.com>
Tue, 1 Sep 2015 17:39:38 +0000 (13:39 -0400)
We can allow some gap so we only need to ensure
onode.size <= offset.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
src/os/newstore/NewStore.cc

index 078c33da6d2b75e8d4d3901807afea2642d1dbc7..6fee92d7d62831596ed2218c3d33d1b04b3928a8 100644 (file)
@@ -3022,7 +3022,7 @@ int NewStore::_do_write(TransContext *txc,
     goto out;
   }
 
-  if (o->onode.size == offset ||
+  if (o->onode.size <= offset ||
       o->onode.size == 0 ||
       o->onode.data_map.empty()) {
     _do_overlay_clear(txc, o);