diff options
| author | chrislu <chris.lu@gmail.com> | 2025-12-05 20:59:21 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-12-05 21:32:41 -0800 |
| commit | 4e5e8db431f86a873e3ba7940b77c469ef9fc6ed (patch) | |
| tree | 94a5cb278c034667e6742a9a22d8398cf4be71a6 /note | |
| parent | acd7f1a4d551108f296455a480356db17cec3a5b (diff) | |
| download | seaweedfs-4e5e8db431f86a873e3ba7940b77c469ef9fc6ed.tar.xz seaweedfs-4e5e8db431f86a873e3ba7940b77c469ef9fc6ed.zip | |
s3api: skip object lock check for buckets without object lockorigin/optimize-delete-lookups
Optimize DELETE and PUT operations by skipping the object lock
protection check for buckets that don't have object lock enabled.
Previously, enforceObjectLockProtections was always called, which
performed an expensive entry lookup even for buckets without object lock.
This optimization:
- Adds isObjectLockEnabled() helper that uses cached bucket config
- Skips enforceObjectLockProtections for buckets without object lock
- Applies to both versioned and non-versioned DELETE paths
- Applies to PUT operations on non-versioned buckets
Performance impact: For buckets without object lock (the common case),
this eliminates one filer lookup per DELETE/PUT operation.
Diffstat (limited to 'note')
0 files changed, 0 insertions, 0 deletions
