summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_lua_utils.cc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* rgw: fix spelling errorsJosh Soref2023-11-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * access * acquire * across * algorithm * alternatively * ambiguous * attributes * authenticated * automatically * based * between * beware * bootstrap * bucket * cache * character * check * cleanup * combinations * committed * comparison * compatibility * concurrent * conditions * conjunction * connections * considered * contains * correct * creates * crypto * dependencies * dequeued * dequeuing * derivative * described * determine * deterministic * detritus * discrepancy * display * either way * elements * entirely * entries * error * everything * expected * explicitly * extend * false * fclose * feature * following * foreign * format * forward * functionality * functions * generated * getting * gracefully * happened * hashicorp * healthcheck * hierarchy * however * http * identify * idleness * ignored * incremental * information * initialization * length * locally * macros * malformed * means * mechanism * multipart * multiple * must * namespace * necessary * nonexistent * notifications * occurred * official * outputs * outputted * overridden * ownership * parallelism * partition * passthrough * pause * penguin * perform * permission * populated * position * preferably * prefixes * presumably * previous * print * quadruple * reference * regardless * registry * renewed * request * requires * reshard * resource * result to * satisfy * secret * separate * separator * setting * shouldn't * skipping * some * somehow * something * specific * struct * succeeded * success * successful * successfully * syntax * testing * truncated * unambiguously * unittest * unmodified * unnecessary * valid_action * verifying * versioning * visible * whatever * whenever Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
* rgw/lua: add configurable memory limit for the lua stateYuval Lifshitz2023-08-061-7/+93
| | | | Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
* rgw/lua: destroy iterator when table iteration completesYuval Lifshitz2023-06-251-4/+21
| | | | | | | also, prevent from dtor being called twice by reusing the iterator and protect against nested loops Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
* rgw/lua: use an iterator to avoid infinite loops in case of multimapYuval Lifshitz2023-06-211-1/+2
| | | | | | | | | | | | also: * unification of the iteration function for different map types * it gived better performance that iteration via lookups * iterator invalidations is handled when deleting an entry during iterations Fixes: https://tracker.ceph.com/issues/59738 Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
* rgw/lua: add lib64 to the package search pathYuval Lifshitz2023-05-111-2/+2
| | | | | | Fixes: https://tracker.ceph.com/issues/59733 Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
* rgw/lua: allow read access to object dataYuval Lifshitz2022-08-211-1/+2
| | | | Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
* Revert "rgw/lua: allow read access to object data"Casey Bodley2022-08-151-2/+1
| | | | | | This reverts commit f4501f69701d74caa5c0da0b7247eed80c1f2a3f. Signed-off-by: Casey Bodley <cbodley@redhat.com>
* rgw/lua: allow read access to object dataYuval Lifshitz2022-08-041-1/+2
| | | | Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
* rgw/lua: use constants for upvalue indexesyuval Lifshitz2022-06-091-1/+1
| | | | Signed-off-by: yuval Lifshitz <ylifshit@redhat.com>
* rgw/lua: support packages via luarocksYuval Lifshitz2020-12-041-0/+32
| | | | Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
* rgw: avoid using lua_ namespace.Patrick Donnelly2020-10-141-5/+0
| | | | | | | | | | The Lua manual states this C namespace is reserved. Even if we're defining C++ procedures with obfuscated names, this should be avoided. Also: use std::string_view for pushstring to avoid intermediate string allocations when possible. Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
* rgw: simplify Lua stack dump procedurePatrick Donnelly2020-10-141-22/+5
| | | | | | Lua has methods which help with printing values as strings. Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
* rgw: simplify lua debug stack checkPatrick Donnelly2020-10-141-15/+4
| | | | | | The function should also return 0, i.e. no result. Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
* rgw/lua: run lua scripts in s3 requests contextYuval Lifshitz2020-10-121-0/+77
for more details on design and remaining work see: https://gist.github.com/yuvalif/60d5984c28af89ba17443ce947540c1f Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>