]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osdc/Journaler: make try_read_entry store data in contiguous memory 25519/head
authorYan, Zheng <zyan@redhat.com>
Tue, 27 Nov 2018 08:15:21 +0000 (16:15 +0800)
committerNathan Cutler <ncutler@suse.com>
Wed, 12 Dec 2018 21:24:17 +0000 (22:24 +0100)
commit8c54a193f42ccd4e1495016bad4ffc8254154ae4
tree6ab80c379c0646a61d698bace053668457439f2e
parent1ba35ea151186e00c0feaba6f61ddab714ff2b7b
osdc/Journaler: make try_read_entry store data in contiguous memory

If bufferlist consists of discontiguous memory, decoding types whose
denc_traits needs contiguous memory is inefficient. The bufferlist may
get copied to temporary memory multiple times. (copy_shallow() in
src/include/denc.h actually does deep copy)

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Fixes: http://tracker.ceph.com/issues/37399
(cherry picked from commit 39d044be3c8c29941443afd7daaf61603efec2c9)
src/osdc/Journaler.cc