Project

General

Profile

Actions

Cleanup #4541

closed

refactor RGWUser class

Added by caleb miles about 11 years ago. Updated about 8 years ago.

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 #1

Updated by caleb miles about 11 years ago

  • Description updated (diff)
Actions #2

Updated by Yehuda Sadeh about 8 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF