[PATCH 0/2] Move info to src/ for SWIM

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Tue Dec 4 00:47:04 MSK 2018


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)




More information about the Tarantool-patches mailing list