From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 648E03059B for ; Sat, 1 Jun 2019 20:00:27 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id riXAn5gewhMB for ; Sat, 1 Jun 2019 20:00:27 -0400 (EDT) Received: from smtp51.i.mail.ru (smtp51.i.mail.ru [94.100.177.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 8E2A930598 for ; Sat, 1 Jun 2019 20:00:26 -0400 (EDT) From: Vladislav Shpilevoy Subject: [tarantool-patches] [PATCH 0/5] SWIM on_member_update Date: Sun, 2 Jun 2019 02:00:16 +0200 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: tarantool-patches@freelists.org Cc: kostja@tarantool.org This patchset introduces API to set triggers on SWIM member updates, what makes Lua SWIM asynchronous. Branch: http://github.com/tarantool/tarantool/tree/gerold103/gh-4250-swim-triggers Issue: https://github.com/tarantool/tarantool/issues/4250 Vladislav Shpilevoy (5): test: create isolated ev_loop for swim unit tests swim: fix a 'use after free' in SWIM tests swim: allow to hang triggers on member updates swim: call swim:new/delete via Lua C, not via FFI swim: expose Lua triggers on member update extra/exports | 2 - src/CMakeLists.txt | 3 +- src/lib/swim/swim.c | 220 +++++++++++++++++++++----- src/lib/swim/swim.h | 47 +++++- src/lib/swim/swim_ev.c | 6 + src/lib/swim/swim_ev.h | 3 + src/lib/swim/swim_io.c | 15 +- src/lua/init.c | 2 + src/lua/swim.c | 106 +++++++++++++ src/lua/swim.h | 34 +++++ src/lua/swim.lua | 101 +++++++++++- test/swim/swim.result | 263 ++++++++++++++++++++++++++++++++ test/swim/swim.test.lua | 85 +++++++++++ test/unit/swim.c | 135 +++++++++++++++- test/unit/swim.result | 28 +++- test/unit/swim_test_ev.c | 24 +++ test/unit/swim_test_transport.c | 1 + test/unit/swim_test_utils.c | 46 +++++- test/unit/swim_test_utils.h | 12 ++ 19 files changed, 1075 insertions(+), 58 deletions(-) create mode 100644 src/lua/swim.c create mode 100644 src/lua/swim.h -- 2.20.1 (Apple Git-117)