Project

General

Profile

Actions

Feature #1872

closed

rgw: only use shadow objects for large objects

Added by Yehuda Sadeh over 12 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Currently we use shadow objects for every write that overwrites an object. We can avoid that by assuming that objects that are smaller or equal to the read chunk size are inherently atomic.
Things to keep in mind:
- read of object data might be atomic, but we currently first read object xattrs, and only then do we read the data which is not atomic. We should either still use barriers and handle this case, or we should read everything atomically in the first place as a single compound op.
- maybe doing the latter, but adding a method to cls_rgw that verifies ACLs, so that we only read the object if ACLs are ok?

Actions

Also available in: Atom PDF