From e6a4ab1391846be1fb98e2cb9fe52893b922b073 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 9 Jan 2015 14:41:34 -0800 Subject: [PATCH] client: include ceph and git version in client metadata Fixes: #10504 Signed-off-by: Sage Weil --- src/client/Client.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/client/Client.cc b/src/client/Client.cc index 34b8a7be2d87..28c51f6e7d09 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -34,6 +34,8 @@ using namespace std; #include "common/config.h" +#include "common/version.h" + // ceph stuff #include "messages/MMonMap.h" @@ -1732,6 +1734,10 @@ void Client::populate_metadata() // Ceph entity id (the '0' in "client.0") metadata["entity_id"] = cct->_conf->name.get_id(); + + // Ceph version + metadata["ceph_version"] = pretty_version_to_str(); + metadata["ceph_sha1"] = git_version_to_str(); } /** -- 2.47.3