]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osdc/Journaler: make try_read_entry store data in contiguous memory 25275/head
authorYan, Zheng <zyan@redhat.com>
Tue, 27 Nov 2018 08:15:21 +0000 (16:15 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 27 Nov 2018 08:24:46 +0000 (16:24 +0800)
commit39d044be3c8c29941443afd7daaf61603efec2c9
treef7f1f0b9eecdeb6343090d0561b04742ac3cf572
parent232a89069beb611c54947925b6d84ffa15936e8b
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
src/osdc/Journaler.cc