]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/monc: set name using a setter
authorKefu Chai <kchai@redhat.com>
Wed, 28 Nov 2018 13:00:33 +0000 (21:00 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 17 Jan 2019 12:23:13 +0000 (20:23 +0800)
commita37d19dc9b06d9bc7a8f6443fe99c9bb3631b23b
tree806fb0d0a96420909c24cd9484d9f5cfef81290e
parent6621f799972ffed31d1c0e1199ef88d7c38273e7
crimson/monc: set name using a setter

* set entity_name using a setter not pass it to constructor, because
  the entity_name is retrieved in seastar's app.run() by ConfigProxy,
  while it'd be simpler if we can instantiate mon::Client in main()
  as a local variable, instead of managing it on heap using a smart
  pointer. so we cannot pass the entity_name as a parameter of ctor.
* also cleanup the #include's, as they are included already in the
  header.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/mon/MonClient.cc
src/crimson/mon/MonClient.h
src/test/crimson/test_monc.cc