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

rgw: reshard cancel command should clear bucket resharding flag #21120

Merged
merged 3 commits into from Apr 10, 2018

Conversation

oritwas
Copy link
Member

@oritwas oritwas commented Mar 29, 2018

Copy link
Member

@yehudasa yehudasa left a comment

Choose a reason for hiding this comment

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

@oritwas looks good

if (ret < 0 && ret != -ENOENT) {
cerr << "Error in getting bucket " << bucket_name << ": " << cpp_strerror(-ret) << std::endl;
return ret;
} else if (ret != -ENOENT) {
Copy link
Member

Choose a reason for hiding this comment

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

@oritwas shouldn't we try to remove it even if it's -ENOENT?

Copy link
Member Author

Choose a reason for hiding this comment

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

If get returned -ENOENT than it is not in the reshard log.
It is just how the code was written, there is no reason not to try to remove it and if we get -ENOENT ignore it.

@yehudasa yehudasa changed the title reshard cancel command should clear bucket resharding flag rgw: reshard cancel command should clear bucket resharding flag Apr 10, 2018
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Copy link
Member

@yehudasa yehudasa left a comment

Choose a reason for hiding this comment

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

@oritwas lgtm

@yehudasa yehudasa merged commit 776e547 into ceph:master Apr 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants