From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng2.m.smailru.net (smtpng2.m.smailru.net [94.100.179.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id BC140445327 for ; Wed, 8 Jul 2020 18:14:26 +0300 (MSK) From: Aleksandr Lyapunov Date: Wed, 8 Jul 2020 18:14:12 +0300 Message-Id: <1594221263-6228-6-git-send-email-alyapunov@tarantool.org> In-Reply-To: <1594221263-6228-1-git-send-email-alyapunov@tarantool.org> References: <1594221263-6228-1-git-send-email-alyapunov@tarantool.org> Subject: [Tarantool-patches] [PATCH 05/16] tx: save txn in txn_stmt List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org Cc: v.shpilevoy@tarantool.org --- src/box/txn.c | 1 + src/box/txn.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/box/txn.c b/src/box/txn.c index 765dbd2..22013cc 100644 --- a/src/box/txn.c +++ b/src/box/txn.c @@ -101,6 +101,7 @@ txn_stmt_new(struct region *region) } /* Initialize members explicitly to save time on memset() */ + stmt->txn = in_txn(); stmt->space = NULL; stmt->old_tuple = NULL; stmt->new_tuple = NULL; diff --git a/src/box/txn.h b/src/box/txn.h index 3f6d79d..5b264f0 100644 --- a/src/box/txn.h +++ b/src/box/txn.h @@ -85,6 +85,8 @@ struct txn_stmt { /** A linked list of all statements. */ struct stailq_entry next; + /** Owner of that statement. */ + struct txn *txn; /** Undo info. */ struct space *space; struct tuple *old_tuple; -- 2.7.4