Merge pull request #11359 from batrick/i17276

client: add pid to metadata

Reviewed-by: John Spray <john.spray@redhat.com>
This commit is contained in:
John Spray 2016-10-11 12:23:50 +02:00 committed by GitHub
commit 8ce51e5db5

View 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();