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 DC80F2C69D for ; Thu, 25 Apr 2019 06:31:58 -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 2peurfAPWx4O for ; Thu, 25 Apr 2019 06:31:58 -0400 (EDT) Received: from smtp34.i.mail.ru (smtp34.i.mail.ru [94.100.177.94]) (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 9C1952C69C for ; Thu, 25 Apr 2019 06:31:58 -0400 (EDT) Date: Thu, 25 Apr 2019 13:31:56 +0300 From: Konstantin Osipov Subject: [tarantool-patches] Re: [PATCH v2 1/3] swim: store sender UUID in swim io tasks Message-ID: <20190425103156.GC29257@atlas> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: Vladislav Shpilevoy Cc: tarantool-patches@freelists.org * Vladislav Shpilevoy [19/04/25 00:46]: > Struct swim_task is an asynchronous task generated by the SWIM > core and scheduled to be sent when a next EV_WRITE event appears. > > It has a callback 'complete' called when the task finally sent > its packet into the network. In this callback a next SWIM round > step can be scheduled, or set a deadline for a ping. Usually it > requires to know to which member the packet was sent. for this > UUID is required, but swim_task operates by inet addresses only. > > At this moment UUID necessity can be bypassed via container_of > or via some queues, but it is not so once suspicion component is > introduced. > > The patch adds sender's UUID to struct swim_task. OK to push. -- Konstantin Osipov, Moscow, Russia, +7 903 626 22 32 http://tarantool.io - www.twitter.com/kostja_osipov