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

radosgw-admin: translate reshard status codes (trivial) #24638

Merged
merged 1 commit into from
Nov 8, 2018

Conversation

mattbenjamin
Copy link
Contributor

Fixes: http://tracker.ceph.com/issues/36486

Signed-off-by: Matt Benjamin mbenjamin@redhat.com

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Fixes: http://tracker.ceph.com/issues/36486

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
@mattbenjamin
Copy link
Contributor Author

have a request for something like this downstream; advice on better codes, or to move to_string function to rgw_admin?

@@ -612,6 +615,24 @@ enum cls_rgw_reshard_status {
CLS_RGW_RESHARD_DONE = 2,
};

static inline std::string to_string(const enum cls_rgw_reshard_status status)
Copy link
Contributor

Choose a reason for hiding this comment

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

i like this very much, because it acts as an overload of std::to_string() (which is defined only for integral types) 👍

@cbodley
Copy link
Contributor

cbodley commented Nov 8, 2018

@cbodley cbodley merged commit 750ffef into ceph:master Nov 8, 2018
@mattbenjamin
Copy link
Contributor Author

@cbodley thanks casey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants