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 DB6D62B634 for ; Wed, 10 Apr 2019 07:00:09 -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 GnUrchGc9_pP for ; Wed, 10 Apr 2019 07:00:09 -0400 (EDT) Received: from smtpng1.m.smailru.net (smtpng1.m.smailru.net [94.100.181.251]) (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 8CD912B615 for ; Wed, 10 Apr 2019 07:00:09 -0400 (EDT) Subject: [tarantool-patches] Re: [PATCH 1/1] swim: keep encoded round message cached From: Vladislav Shpilevoy References: <573c97faff11b387566fd449c1d1dcbe3e644351.1554893660.git.v.shpilevoy@tarantool.org> Message-ID: <1dfbae6e-3078-eaa5-1bc3-bf436ae2d165@tarantool.org> Date: Wed, 10 Apr 2019 14:00:06 +0300 MIME-Version: 1.0 In-Reply-To: <573c97faff11b387566fd449c1d1dcbe3e644351.1554893660.git.v.shpilevoy@tarantool.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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 Sorry, forgot to attach one more hunk: diff --git a/src/lib/swim/swim.c b/src/lib/swim/swim.c index 8453295a5..2839f5681 100644 --- a/src/lib/swim/swim.c +++ b/src/lib/swim/swim.c @@ -713,6 +713,7 @@ swim_new_round(struct swim *swim) /* -1 for self. */ say_verbose("SWIM %d: start a new round with %d members", swim_fd(swim), size - 1); + cached_round_msg_invalidate(swim); swim_shuffle_members(swim); rlist_create(&swim->round_queue); for (int i = 0; i < size; ++i) {