]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: add pid to metadata 11359/head
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 6 Oct 2016 21:02:47 +0000 (17:02 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 7 Oct 2016 13:52:54 +0000 (09:52 -0400)
This allows us to distinguish multiple clients on a machine.

Fixes: http://tracker.ceph.com/issues/17276
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/client/Client.cc

index 6c783d0a00123aefaec56f7c91c1a5f01bd13680..5de2b22cbbc2b35d9176addf47c624077b648a89 100644 (file)
@@ -1941,6 +1941,8 @@ void Client::populate_metadata()
     ldout(cct, 1) << __func__ << " failed to read hostname (" << cpp_strerror(r) << ")" << dendl;
   }
 
+  metadata["pid"] = stringify(getpid());
+
   // Ceph entity id (the '0' in "client.0")
   metadata["entity_id"] = cct->_conf->name.get_id();