From fdde18e18c9e395ab5c93ccfe0477d0c4e625c5f Mon Sep 17 00:00:00 2001
From: Serge Petrenko <sergepetrenko@tarantool.org>
Date: Fri, 9 Dec 2022 15:28:59 +0300
Subject: [PATCH] box: make box.iproto available before box.cfg

box.iproto table with iproto features and constants was exported to Lua
in commit fe89aabe8f85 ("box: export IPROTO constants and features to
Lua").

Add the table to the whitelist of what's available even before box.cfg.

Prerequisite #5272
Closes #8053

NO_DOC=intermediate state wasn't released, no changes necessary
NO_CHANGELOG=see NO_DOC
NO_TEST=used in next commit's tests
---
 src/box/lua/load_cfg.lua | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/box/lua/load_cfg.lua b/src/box/lua/load_cfg.lua
index 5c7aad4b1a..6a78e2e786 100644
--- a/src/box/lua/load_cfg.lua
+++ b/src/box/lua/load_cfg.lua
@@ -861,6 +861,7 @@ local box_cfg_guard_whitelist = {
     txn_isolation_level = true;
     NULL = true;
     info = true;
+    iproto = true;
 };
 
 -- List of box members that requires full box loading.
-- 
GitLab