]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/NewStore: need to increase the wal op length when combining overlays
authorZhiqiang Wang <zhiqiang.wang@intel.com>
Tue, 28 Apr 2015 08:41:39 +0000 (16:41 +0800)
committerSage Weil <sage@redhat.com>
Tue, 1 Sep 2015 17:39:41 +0000 (13:39 -0400)
Need to add the length of the combining overlays to the length of the
wal op.

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
src/os/newstore/NewStore.cc

index e137e5f3d022d2bb9e10e44223154653e1170ba3..ca976d6714d1f629413b6146818fa002b407483d 100644 (file)
@@ -3188,6 +3188,7 @@ int NewStore::_do_write_all_overlays(TransContext *txc,
         bl_next_data.substr_of(bl_next, next->second.value_offset,
                                next->second.length);
         bl.claim_append(bl_next_data);
+        op->length += next->second.length;
         txc->t->rmkey(PREFIX_OVERLAY, key_next);
 
        ++prev;