]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/mon: add get_fsid() to mon::Client
authorKefu Chai <kchai@redhat.com>
Wed, 30 Jan 2019 13:03:20 +0000 (21:03 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 2 Feb 2019 05:20:00 +0000 (13:20 +0800)
we need it for creating some messages. `MOSDPing`, for instance.

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

index fe15b341614406afdfab48def6c50bb7dfe388b7..ef9bcb690561eb32925facc22874fae4356735ae 100644 (file)
@@ -71,6 +71,9 @@ public:
   seastar::future<> start();
   seastar::future<> stop();
 
+  const uuid_d& get_fsid() const {
+    return monmap.fsid;
+  }
   get_version_t get_version(const std::string& map);
   command_result_t run_command(const std::vector<std::string>& cmd,
                               const bufferlist& bl);