]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Revert "common/config: return const reference instead of a copy" 18934/head
authorKefu Chai <kchai@redhat.com>
Wed, 15 Nov 2017 05:02:44 +0000 (13:02 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 15 Nov 2017 06:40:03 +0000 (14:40 +0800)
commit81249ab9d9e810bc94f12e073033448dd3cf5517
tree57ee2374b258141486764bd9f24c2db525e30d23
parent8ce46e4aef0098fc34449f2e69eeea272002dad0
Revert "common/config: return const reference instead of a copy"

This reverts commit b248f8903b09f61f0bda1ead6c1ffb242dadd14e.

it's dangerous to return a reference of a variable which could be
changed by another thread.

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