From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (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 6AAEC469719 for ; Wed, 23 Sep 2020 14:09:26 +0300 (MSK) References: <1599560532-27089-1-git-send-email-alyapunov@tarantool.org> <1599560532-27089-8-git-send-email-alyapunov@tarantool.org> <20200915143357.GB23208@tarantool.org> <6c7eb860-781c-78b4-3fca-49199de2aa64@tarantool.org> <20200923102536.GA21612@tarantool.org> From: Aleksandr Lyapunov Message-ID: <1fb351d1-42a8-8927-160a-c46e82def985@tarantool.org> Date: Wed, 23 Sep 2020 14:09:25 +0300 MIME-Version: 1.0 In-Reply-To: <20200923102536.GA21612@tarantool.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Subject: Re: [Tarantool-patches] [PATCH v4 07/12] txm: introduce memtx_story List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nikita Pettik Cc: tarantool-patches@dev.tarantool.org You should enable the transaction manager by default for that. On 23.09.2020 13:25, Nikita Pettik wrote: > On 22 Sep 20:51, Aleksandr Lyapunov wrote: >> Thank for the review. >> Most is fixed, see my replies below. >> >> On 15.09.2020 17:33, Nikita Pettik wrote: >> >>>> +int >>>> +memtx_tx_track_read(struct txn *txn, struct space *space, struct tuple *tuple) >>>> +{ >>>> + if (tuple == NULL) >>>> + return 0; >>>> + if (txn == NULL) >>>> + return 0; >>>> + if (space == NULL) >>>> + return 0; >>> Space seems to be always != NULL. If so, let's replace it with an assertion. >> I found out that in iterators the space can be NULL. I'm not sure >> why, but I happens without my patch set. I just accepted it. >> > Hm, sounds strange. I've replaced this check with an assertion and all tests > seem to pass.. >