From: Patrick Donnelly Date: Thu, 6 Oct 2016 21:02:47 +0000 (-0400) Subject: client: add pid to metadata X-Git-Tag: v11.1.0~672^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F11359%2Fhead;p=ceph.git client: add pid to metadata This allows us to distinguish multiple clients on a machine. Fixes: http://tracker.ceph.com/issues/17276 Signed-off-by: Patrick Donnelly --- diff --git a/src/client/Client.cc b/src/client/Client.cc index 6c783d0a0012..5de2b22cbbc2 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -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();