[PATCH 00/11] SWIM preparation
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Fri Nov 30 18:39:30 MSK 2018
SWIM is going to use evio to bind to an address, specified by a
user. Evio encapsulates bind/rebind, diagnostics, socket family.
But evio is C++ and SWIM is C. The patchset converts evio to C
alongside with sio, which is used in evio.
During conversion several not critical bugs were found and fixed
in separate commits.
Branch: http://github.com/tarantool/tarantool/tree/gerold103/gh-3234-swim-preparation
Issue: https://github.com/tarantool/tarantool/issues/3234
Vladislav Shpilevoy (11):
box: move info_handler interface into src/info
sio: remove unused functions, restyle code
sio: remove exceptions
sio: fix passing negative size_t to sio_add_to_iov
sio: turn into C
evio: make on_accept be nothrow
coio: fix file descriptor leak on accept
coio: fix double close of a file descriptor
evio: refactoring
evio: remove exceptions
evio: turn into C
src/CMakeLists.txt | 5 +-
src/box/iproto.cc | 89 ++++---
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/coio.cc | 88 ++++---
src/{evio.cc => evio.c} | 307 ++++++++++-------------
src/evio.h | 77 +++---
src/exception.h | 2 +-
src/{box => }/info.h | 84 ++++---
src/lua/info.c | 118 +++++++++
src/lua/info.h | 49 ++++
src/sio.c | 356 +++++++++++++++++++++++++++
src/sio.cc | 529 ----------------------------------------
src/sio.h | 194 ++++++++++-----
17 files changed, 984 insertions(+), 1006 deletions(-)
rename src/{evio.cc => evio.c} (55%)
rename src/{box => }/info.h (72%)
create mode 100644 src/lua/info.c
create mode 100644 src/lua/info.h
create mode 100644 src/sio.c
delete mode 100644 src/sio.cc
--
2.17.2 (Apple Git-113)
More information about the Tarantool-patches
mailing list