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 D319029940 for ; Wed, 10 Apr 2019 03:22:30 -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 0MCLK3JAKzV6 for ; Wed, 10 Apr 2019 03:22:30 -0400 (EDT) Received: from smtp58.i.mail.ru (smtp58.i.mail.ru [217.69.128.38]) (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 7841929838 for ; Wed, 10 Apr 2019 03:22:30 -0400 (EDT) From: Georgy Kirichenko Subject: [tarantool-patches] [PATCH 0/2] Transaction refactoring Date: Wed, 10 Apr 2019 10:22:24 +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 bring two txn refactorings required for detachable (and autonomous) transactions and parallel applier as well. - The first of them adds a separate region to each `struct txn` and puts all finished transaction in a cache to save region allocations. - The second one removes auto commit flag from struct twn and requires txn_begin/txn_commit to start and finish a transaction. Autocommit behavior moved to box level now. Branch: https://github.com/tarantool/tarantool/tree/g.kirichenko/gh-1254-txn-memory-refactoring Issue: https://github.com/tarantool/tarantool/issues/1254 Georgy Kirichenko (2): Introduce a txn memory region Get rid of aurocommit from a txn structure src/box/applier.cc | 27 +++++++++++-- src/box/box.cc | 73 ++++++++++++++++++++++++--------- src/box/errcode.h | 1 + src/box/memtx_engine.c | 10 ++++- src/box/txn.c | 91 ++++++++++++++++++++++++++++-------------- src/box/txn.h | 9 ++--- src/box/vinyl.c | 12 ++---- test/box/misc.result | 1 + 8 files changed, 155 insertions(+), 69 deletions(-) -- 2.21.0