]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: manage vector from ExtentList
authorSage Weil <sage@redhat.com>
Tue, 17 Jan 2017 15:56:13 +0000 (10:56 -0500)
committerSage Weil <sage@redhat.com>
Tue, 17 Jan 2017 20:55:56 +0000 (15:55 -0500)
commit97f977359515da31720eb7e01d3ca4ff775967fb
tree9438fc76d5b832bde96fa111db463d73db033d3b
parent3b4b6fb36bcc45bd428797dd5e241465ccebc9ac
os/bluestore: manage vector from ExtentList

ExtentList was previous relying the caller to preallocate/size the
vector to be large enough for the worst case allocation of extents,
and keeping it's own manual count of the extent list size.  Instead,
manage that from ExtentList, and remove the preallocation from the
callers.

Fixes: http://tracker.ceph.com/issues/18573
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 65502891dd66569c8d99384e63b68decdab1c8e2)
src/os/bluestore/BlueFS.cc
src/os/bluestore/BlueStore.cc
src/os/bluestore/bluestore_types.cc
src/os/bluestore/bluestore_types.h