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 E5F4E2EAEF for ; Fri, 31 May 2019 15:44:01 -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 8Iin3gq4I_lN for ; Fri, 31 May 2019 15:44:01 -0400 (EDT) Received: from smtp46.i.mail.ru (smtp46.i.mail.ru [94.100.177.106]) (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 A53EF2E9F0 for ; Fri, 31 May 2019 15:44:01 -0400 (EDT) Date: Fri, 31 May 2019 22:43:57 +0300 From: Konstantin Osipov Subject: [tarantool-patches] Re: [PATCH v2 8/8] Introduce asynchronous txn commit Message-ID: <20190531194357.GG6141@atlas> References: <42f0c89b62a99f2a4109aa43a59d4db472e6c59c.1558598679.git.georgy@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42f0c89b62a99f2a4109aa43a59d4db472e6c59c.1558598679.git.georgy@tarantool.org> 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: Georgy Kirichenko * Georgy Kirichenko [19/05/23 11:48]: > Allow asynchronous transaction commit. This adds two functions: > * txn_async_commit that sends a transaction to a journal > * txn_async_wait that waits until the transaction processing was done > The same comment applies as to journal api: the async api becomes the standard one, can we use txn_write/txn_wait for names, and txn_commit would do a pair of write/wait? We don't have to stress that much in the name that the write is async since there is no sync write at all. In other words: txn_async_commit -> txn_write() txn_journal_async_write -> txn_write_to_wal() (same as before). -- Konstantin Osipov, Moscow, Russia