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 4ABD030EA2 for ; Sat, 22 Jun 2019 17:17:47 -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 5AaU4hcSPLs8 for ; Sat, 22 Jun 2019 17:17:47 -0400 (EDT) Received: from smtp21.mail.ru (smtp21.mail.ru [94.100.179.250]) (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 8AFDA30E96 for ; Sat, 22 Jun 2019 17:17:46 -0400 (EDT) From: Vladislav Shpilevoy Subject: [tarantool-patches] [PATCH v2 0/2] SWIM generation Date: Sat, 22 Jun 2019 23:18:19 +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 Branch: http://github.com/tarantool/tarantool/tree/gerold103/gh-4280-swim-generation Issue: https://github.com/tarantool/tarantool/issues/4280 Changes in V2: - Rename age.incarnation -> age.version. - Rename struct swim_age -> struct swim_incarnation. - Keep incarnation is a monolithic object, even in Lua. V1: https://www.freelists.org/post/tarantool-patches/PATCH-02-SWIM-generation Vladislav Shpilevoy (2): swim: make incarnation struct swim: introduce incarnation.generation src/lib/swim/swim.c | 178 ++++++++++++++++++++++++---------- src/lib/swim/swim.h | 18 ++-- src/lib/swim/swim_constants.h | 40 ++++++++ src/lib/swim/swim_proto.c | 95 +++++++++++++----- src/lib/swim/swim_proto.h | 84 ++++++++++------ src/lua/swim.c | 3 +- src/lua/swim.lua | 58 +++++++++-- test/swim/swim.result | 144 +++++++++++++++++++++------ test/swim/swim.test.lua | 36 +++++++ test/unit/swim.c | 112 ++++++++++++++------- test/unit/swim.result | 34 ++++--- test/unit/swim_test_utils.c | 35 ++++--- test/unit/swim_test_utils.h | 8 +- 13 files changed, 634 insertions(+), 211 deletions(-) -- 2.20.1 (Apple Git-117)