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

cls_rgw: use more effective container operations in get_obj_vals #19272

Merged
merged 1 commit into from Dec 18, 2017

Conversation

cfanz
Copy link
Contributor

@cfanz cfanz commented Dec 1, 2017

Signed-off-by: Xinying Song songxinying@cloudin.cn

@cbodley
Copy link
Contributor

cbodley commented Dec 1, 2017

thanks, looks good! we should probably add some extra test coverage to test/cls_rgw/test_cls_rgw.cc though, to make sure we got both sides of the BI_PREFIX_CHAR right

Signed-off-by: Xinying Song <songxinying@cloudin.cn>
@cfanz
Copy link
Contributor Author

cfanz commented Dec 4, 2017

@cbodley I have added a test case. It writes 4 kinds utf8 object names: single byte, double byte, treble byte and quadruple byte, and one invalid object name belong to rgw's private namespace BI_PREFIX_CHAR. Except for BI_PREFIX_CHAR, other invalid utf8 characters will never occur in bucket index. So this test only examines whether BI_PREFIX_CHAR is filtered out.

@yuriw
Copy link
Contributor

yuriw commented Dec 12, 2017

1 similar comment
@yuriw
Copy link
Contributor

yuriw commented Dec 12, 2017

@yuriw yuriw merged commit 53f4728 into ceph:master Dec 18, 2017
@cfanz cfanz deleted the wip2-optimize-get_obj_vals branch December 19, 2017 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants