]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/ConfigMap: const * to Option, so we don't have to copy it
authorSage Weil <sage@redhat.com>
Fri, 5 Jan 2018 22:19:44 +0000 (16:19 -0600)
committerSage Weil <sage@redhat.com>
Tue, 6 Mar 2018 20:44:48 +0000 (14:44 -0600)
commit2a55463461d7ea43eb590cbcfca8dcb7ed3a5441
tree057c64438dcb307ab1984445b1c0ec97f02fdb25
parentcf68ce511f31d3746ca1cb13a9d3b39c25bb06a8
mon/ConfigMap: const * to Option, so we don't have to copy it

These are biggish structs (lots of strings), so it's expensive to make
copies of Option when it is an immutable struct.  However, we need to
handle arbitrary strings that we don't recognize, too.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/ConfigMap.cc
src/mon/ConfigMap.h
src/mon/ConfigMonitor.cc