]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/lua: destroy iterator when table iteration completes 51472/head
authorYuval Lifshitz <ylifshit@redhat.com>
Thu, 15 Jun 2023 10:51:47 +0000 (10:51 +0000)
committerYuval Lifshitz <ylifshit@redhat.com>
Sun, 25 Jun 2023 12:36:55 +0000 (12:36 +0000)
commit45d233535ad585f72fb5218e452131d225206afd
tree627bc882189f336771ac81c20bf2d76222f6759d
parentc9661d58f1f9a1dcbbbec56998251afb1fb2363a
rgw/lua: destroy iterator when table iteration completes

also, prevent from dtor being called twice by reusing the iterator
and protect against nested loops

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
src/rgw/rgw_lua_utils.cc
src/rgw/rgw_lua_utils.h
src/test/rgw/test_rgw_lua.cc