]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: avoid using lua_ namespace.
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 13 Oct 2020 18:20:39 +0000 (11:20 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 14 Oct 2020 13:50:53 +0000 (06:50 -0700)
commit463b388d2ea03e8341292c55ac544df88c953688
tree414525f9da825809155f4083b90af742f9639caa
parent4ceb4e0f064598aac79944bd11d23c5f888f09ce
rgw: avoid using lua_ namespace.

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>
src/rgw/rgw_lua_request.cc
src/rgw/rgw_lua_utils.cc
src/rgw/rgw_lua_utils.h