From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Vladislav Shpilevoy Subject: [PATCH 0/2] Move info to src/ for SWIM Date: Tue, 4 Dec 2018 00:47:04 +0300 Message-Id: To: tarantool-patches@freelists.org Cc: vdavydov.dev@gmail.com List-ID: First commit has enough explanation of this patchset but nonetheless it is formally required so there it is. SWIM is a forthcoming independent module which is going to live in src/lib. And it will have a method swim.info() which dumps SWIM state to Lua. But SWIM will be written on C and should not depend on Lua. To resolve the problem the patchset moves src/box/info to src/info to make it usable in SWIM. src/box/info is an interface which allows to dump something to Lua without getting in touch with Lua API. Second commit in the patchset removes some false comments about info interface stating that it throws C++ exceptions. Branch: http://github.com/tarantool/tarantool/tree/gerold103/swim-preparation-info Issue: https://github.com/tarantool/tarantool/issues/3234 Vladislav Shpilevoy (2): box: move info_handler interface into src/info info: remove false comments from src/info.h src/CMakeLists.txt | 1 + src/box/lua/index.c | 4 +- src/box/lua/info.c | 78 +------------------------------ src/box/lua/sql.c | 4 +- src/box/lua/stat.c | 4 +- src/box/sql.c | 2 +- src/{box => }/info.h | 13 ++---- src/lua/info.c | 107 +++++++++++++++++++++++++++++++++++++++++++ src/lua/info.h | 49 ++++++++++++++++++++ 9 files changed, 169 insertions(+), 93 deletions(-) rename src/{box => }/info.h (91%) create mode 100644 src/lua/info.c create mode 100644 src/lua/info.h -- 2.17.2 (Apple Git-113)