Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client: add pid to metadata #11359

Merged
merged 1 commit into from Oct 11, 2016
Merged

client: add pid to metadata #11359

merged 1 commit into from Oct 11, 2016

Conversation

batrick
Copy link
Member

@batrick batrick commented Oct 6, 2016

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

{
std::stringstream ss;
ss << getpid();
metadata["pid"] = ss.str();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI you can also do stringify(getpid()) (which does the stringstream thing for you).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the tip. I made the change.

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>
@jcsp jcsp merged commit 8ce51e5 into ceph:master Oct 11, 2016
@batrick batrick deleted the i17276 branch October 12, 2016 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants