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: rgw_file skip policy read for virtual components #16034

Merged
merged 2 commits into from
Jul 11, 2017

Conversation

guihecheng
Copy link

virtual components that do not have backing objects:

  • virtual directory
  • parent directory("..")
    we should skip reading s3 policy for them.

Gui Hecheng added 2 commits June 29, 2017 16:30
Signed-off-by: Gui Hecheng <guihecheng@cmss.chinamobile.com>
We don't need to read read object policy for a ListBucket operation
(RGWReaddir, RGWRMdirCheck, RGWStatLeaf).
Also, there are "virtual" directories that do not have a corresponding
object, read object policy on them results in ENOENT for RGWStatLeaf.

Signed-off-by: Gui Hecheng <guihecheng@cmss.chinamobile.com>
@mattbenjamin
Copy link
Contributor

@guihecheng interesting, I need to read and experiment; I guess could be a big speedup

Copy link
Contributor

@mattbenjamin mattbenjamin left a comment

Choose a reason for hiding this comment

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

lgtm, verified

@mattbenjamin mattbenjamin merged commit 3613da5 into ceph:master Jul 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants