]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common,librbd: use string_view for keys of config
authorKefu Chai <kchai@redhat.com>
Thu, 21 Mar 2019 12:09:11 +0000 (20:09 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 22 Mar 2019 05:03:38 +0000 (13:03 +0800)
commit81c5d20ad6b8382224992635877b7c15f5b36b30
treeb322f8529cb66b8356296a738edc31dbb4f350b9
parent2ea299b640be4fdde7e52cbb3534308e8f50a51f
common,librbd: use string_view for keys of config

the contained char sequences are either static char strings or strings
in `Option` instances. so no need to keep another copy of string around.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/config.cc
src/common/config.h
src/librbd/api/Config.cc