]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: pass string_view to ctor of Allocator 41573/head
authorKefu Chai <kchai@redhat.com>
Thu, 27 May 2021 14:26:05 +0000 (22:26 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 27 May 2021 15:37:08 +0000 (23:37 +0800)
commit258ffd289a70a04a36c063959daebf84c83ba980
tree7150fabc66dda24900f4cae21604085a646eb3c4
parent367cf496901e7623e0fe1d5901b30a189d62b3fe
os/bluestore: pass string_view to ctor of Allocator

just for the sake of correctness, as they don't need a full-blown
std::string, what they need is but a string like object. and they always
create a std::string instance as a member variable if they want to have
a copy of it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
14 files changed:
src/os/bluestore/Allocator.cc
src/os/bluestore/Allocator.h
src/os/bluestore/AvlAllocator.cc
src/os/bluestore/AvlAllocator.h
src/os/bluestore/BitmapAllocator.cc
src/os/bluestore/BitmapAllocator.h
src/os/bluestore/HybridAllocator.h
src/os/bluestore/StupidAllocator.cc
src/os/bluestore/StupidAllocator.h
src/os/bluestore/ZonedAllocator.cc
src/os/bluestore/ZonedAllocator.h
src/test/objectstore/Allocator_bench.cc
src/test/objectstore/Allocator_test.cc
src/test/objectstore/allocator_replay_test.cc