Actions
Cleanup #4541
closedrefactor RGWUser class
Status:
Resolved
Priority:
Low
Assignee:
-
Target version:
-
% Done:
0%
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:
Description
Per Yehuda's suggestion:
Make RGWUser class look like librados::ObjectOperation, and librados::IoCtx::operate().
RGWUser will hold a list of RGWUserOperation *, that modify the object. Extend RGWUserOperation for each different user mutation type:
- add S3 key
- generate S3 key
- add Swift key
- remove user
- add user
In the end call RGWUser::operate(), which in turn will go through these operations and will execute them one by one, modifying the in-memory object representation. Once it finished it'll write up the result to the backend.
made in
[[https://github.com/ceph/ceph/commit/eabd088a8a43dc50f45394a0ff5cea96ba4a805f]]
Actions