]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/common: use string_view when appropriate 41234/head
authorKefu Chai <kchai@redhat.com>
Sat, 8 May 2021 08:43:55 +0000 (16:43 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 8 May 2021 08:46:00 +0000 (16:46 +0800)
commitf3be0d8d81155332e5fbaf0daadb0d682fa1f560
tree2ed4036164067f890808e8a530522b9484410f4b
parenta46db0c127dd2ffc4f39a8dbf13764e4f2682abd
crimson/common: use string_view when appropriate

the typical use case of get_val() passes a literal string as the key,
in that case, there is no need to create a std::string. as
md_config_t::get_val() always accepts a string_view as the option name.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/common/config_proxy.h