]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
buffer: implement list::get_contiguous 2849/head
authorSage Weil <sage@redhat.com>
Sat, 1 Nov 2014 04:29:42 +0000 (21:29 -0700)
committerSage Weil <sage@redhat.com>
Sat, 1 Nov 2014 04:29:42 +0000 (21:29 -0700)
commita554766338a5ad7e4ba4f57aa2744eb65e4251ef
tree961167e800251d88d4fc6cf017d5697caced3797
parent4a9ad7dc2da6f4fa6a64235776a3f1d2799aef60
buffer: implement list::get_contiguous

Return a pointer to a contiguous range of the bufferlist, rebuilding
into a contiguous region as needed.  For now, if we need to rebuild,
we just do the whole thing.  We can obviously optimize this later to
rebuild on the necessary region, but this is good enough for the
(presumably) common case where the needed region is already in fact
contiguous.

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/buffer.cc
src/include/buffer.h
src/test/bufferlist.cc