From: Zhiqiang Wang Date: Tue, 28 Apr 2015 08:41:39 +0000 (+0800) Subject: os/NewStore: need to increase the wal op length when combining overlays X-Git-Tag: v9.1.0~242^2~36 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=65055a02077a66cba85d81c756697cac775a2012;p=ceph.git os/NewStore: need to increase the wal op length when combining overlays Need to add the length of the combining overlays to the length of the wal op. Signed-off-by: Zhiqiang Wang --- diff --git a/src/os/newstore/NewStore.cc b/src/os/newstore/NewStore.cc index e137e5f3d02..ca976d6714d 100644 --- a/src/os/newstore/NewStore.cc +++ b/src/os/newstore/NewStore.cc @@ -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;