From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp34.i.mail.ru (smtp34.i.mail.ru [94.100.177.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 220F1430D56 for ; Thu, 7 Nov 2019 17:03:27 +0300 (MSK) From: Olga Arkhangelskaia Date: Thu, 7 Nov 2019 17:03:12 +0300 Message-Id: <20191107140314.92871-1-arkholga@tarantool.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH rfc 0/2] Lua 5.2 compatibility List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org We add support of Lua 5.2, this means we can use __pair, __ipairs, etc. However, the interface of some functions has changed (os.execute, file:read, etc), so we need to be careful. The support of this feature gives as good way to protect box.cfg from raw modification. Olga Arkhangelskaia (2): lua: turn on lua 5.2 compatibility box: raise on raw modifications of box.cfg values cmake/luajit.cmake | 1 + extra/dist/tarantoolctl.in | 2 +- src/box/lua/load_cfg.lua | 18 +- test/app-tap/debug.test.lua | 4 +- test/app-tap/tarantoolctl.test.lua | 80 ++--- test/box-tap/cfg.test.lua | 60 ++-- test/box/cfg.result | 55 ++++ test/box/cfg.test.lua | 3 + test/wal_off/rtree_benchmark.result | 255 +++++++++------- test/wal_off/rtree_benchmark.test.lua | 20 +- test/wal_off/snapshot_stress.result | 415 ++++++++++++++------------ test/wal_off/snapshot_stress.test.lua | 4 +- 12 files changed, 537 insertions(+), 380 deletions(-) -- 2.20.1 (Apple Git-117)