]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: use append(bufferlist &) to avoid unnecessary copy 12272/head
authorYunchuan Wen <yunchuan.wen@kylin-cloud.com>
Fri, 2 Dec 2016 07:04:37 +0000 (15:04 +0800)
committerYunchuan Wen <yunchuan.wen@kylin-cloud.com>
Tue, 18 Apr 2017 06:28:34 +0000 (06:28 +0000)
commit87ff240bed9f6371fa39fc19b782d7a7f4a9aa66
tree251d657f5d233c1da1d6b45e80c84a90f5c4e207
parent48074a96ec24a8ef1a0ecab499ac5d99febe49c5
osd: use append(bufferlist &) to avoid unnecessary copy

buffer::list::c_str() will rebuild itself if it isn't
contiguous, and append(char *) will do copy from the ptr.

Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
src/osd/PrimaryLogPG.cc