]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client: include ceph and git version in client metadata 3341/head
authorSage Weil <sage@redhat.com>
Fri, 9 Jan 2015 22:41:34 +0000 (14:41 -0800)
committerSage Weil <sage@redhat.com>
Fri, 9 Jan 2015 22:41:34 +0000 (14:41 -0800)
Fixes: #10504
Signed-off-by: Sage Weil <sage@redhat.com>
src/client/Client.cc

index 34b8a7be2d874fb4c42e0c96e143f8479ee325be..28c51f6e7d09e3e17b36e1109f9f701a81e78d80 100644 (file)
@@ -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();
 }
 
 /**