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: optimize function abort_bucket_multiparts #19710

Merged
merged 1 commit into from Jan 8, 2018

Conversation

qrGitHub
Copy link

@qrGitHub qrGitHub commented Dec 28, 2017

  1. common_prefixes is useless, so drop it;
  2. RGWMPObj object is enough, so change RGWMultipartUploadEntry to RGWMPObj;

bool is_truncated;
string marker;

Choose a reason for hiding this comment

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

whystring marker place is changed?

if (ret < 0) {
return ret;
}
num_deleted++;
}
if (num_deleted) {
ldout(store->ctx(),0) << "WARNING : aborted " << num_deleted << " incomplete multipart uploads" << dendl;
ldout(store->ctx(), 0) << "WARNING: aborted " << num_deleted <<

Choose a reason for hiding this comment

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

no need to change this ldout

@qrGitHub
Copy link
Author

@amitkumar50 withdraw unnecessary changes

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.

@qrGitHub see my comment

bool is_truncated;

do {
ret = list_bucket_multiparts(store, bucket_info, prefix, marker, delim,
max, &objs, &common_prefixes, &is_truncated);
max, &objs, NULL, &is_truncated);
Copy link
Member

Choose a reason for hiding this comment

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

@qrGitHub use nullptr instead of NULL

* 1. common_prefixes is useless, so drop it;
* 2. RGWMPObj object is enough, so change RGWMultipartUploadEntry to RGWMPObj;

Signed-off-by: Bingyin Zhang <zhangbingyin@cloudin.cn>
@qrGitHub
Copy link
Author

qrGitHub commented Jan 2, 2018

change NULL to nullptr

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.

lgtm

@yuriw
Copy link
Contributor

yuriw commented Jan 5, 2018

@yuriw yuriw merged commit b712b75 into ceph:master Jan 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants