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 90B2C284F0 for ; Wed, 6 Mar 2019 15:16:22 -0500 (EST) 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 FnguDA5JMPk0 for ; Wed, 6 Mar 2019 15:16:22 -0500 (EST) 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 D5DE628267 for ; Wed, 6 Mar 2019 15:16:21 -0500 (EST) From: Georgy Kirichenko Subject: [tarantool-patches] [PATCH v2 0/3] Transaction boundaries for applier Date: Wed, 6 Mar 2019 23:16:14 +0300 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: Georgy Kirichenko This patchset consists of three patches. * The first one removes xstream dependency from applier. * The second one creates a separate journal transaction for all local effects in case of replication what is needed to be able to replicate such effects back. * The third one turns applier into transaction mode - an applier first fetches the whole transaction and then applies all rows within transaction boundaries. Changes in v2: * Get rid of apply_initial_journal_row and apply_row from box.cc and purge box dependency from applier. * txn.cc and txn.h changes moved into a separate commit. * applier_read_tx uses stailq to form a list of rows in a transaction. * use exceptions for applier routines. * slight changes according to review. Georgy Kirichenko (3): Applier gets rid of a xstream Put all new rows to the end of journal request Transaction support for applier src/box/applier.cc | 276 ++++++++++++++++++++------ src/box/applier.h | 9 +- src/box/box.cc | 68 +------ src/box/txn.c | 36 +++- src/box/txn.h | 4 + test/replication/transaction.result | 240 ++++++++++++++++++++++ test/replication/transaction.test.lua | 86 ++++++++ 7 files changed, 581 insertions(+), 138 deletions(-) create mode 100644 test/replication/transaction.result create mode 100644 test/replication/transaction.test.lua -- 2.21.0