Tarantool development patches archive
 help / color / mirror / Atom feed
* [PATCH 0/2] Move info to src/ for SWIM
@ 2018-12-03 21:47 Vladislav Shpilevoy
  2018-12-03 21:47 ` [PATCH 1/2] box: move info_handler interface into src/info Vladislav Shpilevoy
  2018-12-03 21:47 ` [PATCH 2/2] info: remove false comments from src/info.h Vladislav Shpilevoy
  0 siblings, 2 replies; 8+ messages in thread
From: Vladislav Shpilevoy @ 2018-12-03 21:47 UTC (permalink / raw)
  To: tarantool-patches; +Cc: vdavydov.dev

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)

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-12-04 10:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-03 21:47 [PATCH 0/2] Move info to src/ for SWIM Vladislav Shpilevoy
2018-12-03 21:47 ` [PATCH 1/2] box: move info_handler interface into src/info Vladislav Shpilevoy
2018-12-04  8:59   ` Vladimir Davydov
2018-12-03 21:47 ` [PATCH 2/2] info: remove false comments from src/info.h Vladislav Shpilevoy
2018-12-04  9:02   ` Vladimir Davydov
2018-12-04  9:11     ` Vladislav Shpilevoy
2018-12-04  9:46       ` Vladimir Davydov
2018-12-04 10:17         ` Vladislav Shpilevoy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox