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 597542FBB7 for ; Sat, 8 Jun 2019 06:31:21 -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 nD0gYOFuYvbn for ; Sat, 8 Jun 2019 06:31:21 -0400 (EDT) Received: from smtp57.i.mail.ru (smtp57.i.mail.ru [217.69.128.37]) (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 7EB0B2FAFD for ; Sat, 8 Jun 2019 06:31:20 -0400 (EDT) From: Vladislav Shpilevoy Subject: [tarantool-patches] [PATCH v2 0/5] SWIM on_member_update Date: Sat, 8 Jun 2019 12:31: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. V1: https://www.freelists.org/post/tarantool-patches/PATCH-05-SWIM-on-member-update Changes in V2: - Renames. - swim:delete() now waits for worker fiber join. 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 set triggers on member updates swim: call swim:new/delete via Lua C, not via FFI swim: expose Lua triggers on member events extra/exports | 2 - src/CMakeLists.txt | 3 +- src/lib/swim/swim.c | 232 ++++++++++++++++++++++++---- src/lib/swim/swim.h | 47 +++++- src/lib/swim/swim_ev.c | 6 + src/lib/swim/swim_ev.h | 18 +++ 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 | 146 +++++++++++++++++- test/unit/swim.result | 28 +++- test/unit/swim_test_ev.c | 16 ++ test/unit/swim_test_transport.c | 1 + test/unit/swim_test_utils.c | 46 +++++- test/unit/swim_test_utils.h | 12 ++ 19 files changed, 1107 insertions(+), 56 deletions(-) create mode 100644 src/lua/swim.c create mode 100644 src/lua/swim.h -- 2.20.1 (Apple Git-117)