Feature #73328
closedlua: when doing multi_object_delete there is no array of objects available in postrequest context
0%
Description
If we do delete_object, object is accessible in Request.Object.
Something similar (like Request.Objects[x].) should be available when we do multi_object_delete also.
JI Updated by J. Eric Ivancich about 1 year ago
- Tracker changed from Bug to Feature
- Assignee set to Yuval Lifshitz
- Regression deleted (
No) - Severity deleted (
3 - minor)
YL Updated by Yuval Lifshitz about 1 year ago
- Tags set to lua
YL Updated by Yuval Lifshitz 6 months ago
can think of 2 binding options:
(1) expose the objects as an array
Request.Objects[x]
should give access to the "Object" similar to:
Request.Object
in regular delete request.
not that iterating through "Objects", as well as getting the number of objects via the "#" operator should also eb supported
(2) do not run the lua vm against the request in "rgw_process.cc", instead, run it inside the loop that iterated through the objects in multi-delete in:"rgw_op.cc", and execute a vm per object, with syntax similar to the existing one.
this would allow the same lua code to be used in delete and multi-delete without a change, but would hide the fact that we use multi-delete.
this will also require not running lua in "rgw_process.cc" for multi-delete requests. note that there is already a mechanism to avoid running lua based on the op type
YL Updated by Yuval Lifshitz 6 months ago
@rokj would appriciate your feedback o nthe 2 options.
YL Updated by Yuval Lifshitz 3 months ago
- Status changed from New to Fix Under Review
- Pull request ID set to 69792
UB Updated by Upkeep Bot 2 months ago
- Status changed from Fix Under Review to Resolved
- Merge Commit set to de0445de1cd8e21851c02dd835d888a65d605232
- Fixed In set to v21.3.0-3557-gde0445de1c
- Upkeep Timestamp set to 2026-09-23T09:35:20+00:00