]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common: Add with_val to md_config_t
authorAdam C. Emerson <aemerson@redhat.com>
Mon, 20 Nov 2017 21:06:28 +0000 (16:06 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Thu, 7 Dec 2017 20:46:07 +0000 (15:46 -0500)
commit472491b9bdac4858de0c9b9677d2a345a65f1644
tree08f9e18dae607321e316923576ecda791548864f
parentf14d90254b219bea7364c0bf5851540567040f09
common: Add with_val to md_config_t

Since passing back references that persist after we drop a lock is
unsafe, allow functions to be called on a reference under the lock.

This way we can compare strings or otherwise examine them without
needing to make a copy.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/common/config.h