From 03c8fe3af2051dedf4c44c415b9ade4811cd0202 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Thu, 6 Oct 2016 17:02:47 -0400 Subject: [PATCH] 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 --- src/client/Client.cc | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 2.47.3