Tarantool development patches archive
 help / color / mirror / Atom feed
From: "n.pettik" <korablev@tarantool.org>
To: tarantool-patches@freelists.org
Cc: Alex Khatskevich <avkhatskevich@tarantool.org>
Subject: [tarantool-patches] Re: [PATCH 2/2] sql: add test on changes/total_changes
Date: Thu, 4 Oct 2018 13:49:50 +0300	[thread overview]
Message-ID: <2DF5F7A1-C504-4B82-B394-0F16DF025D13@tarantool.org> (raw)
In-Reply-To: <881CB143-0DC2-468A-90CA-0459E9EE7B15@gmail.com>

Accidentally, I sent last mail from wrong address, so it didn’t arrive to mailing list.
Original letter below:

> On 2 Oct 2018, at 16:40, Никита Петтик <kitnerh@gmail.com> wrote:
> 
> 
>>>> I have expected the same thing.
>>>> However:
>>>> 1. sqlite works in the same way.
>>> It doesn’t mean anything. SQLite features a wide range of really strange things.
>>> 
>>>> 2. implementing this just need adding (nChanges) to savepoint
>>> Seems so, but it shouldn’t be complicated.
>> I suppose it is not complicated.
>>>> 3. I suppose that we should not implement this.
>>> Why? I guess it is matter of discussion.
>> I think that it is not important, because it is relatively useless counter.
>> 1. No one need to count exact number of changes.
> 
> Without proofs such statements worth nothing.
> 
>> 2. Changing the api require solid understanding of what total_changes is
>>    and why we need to change this.
>>    It strange for me that it do not do rollback on rollback, however, it meant to work this
>>    way and it also makes sense.
> 
> It only means that SQLite developers decided to do so, nothing else.
> 
>>> Anyway, I propose to decide what to do with TOTAL_CHANGES within this patch,
>>> since original issue sounds like:
>>> 
>>> "Fix if easy, remove otherwise.”
>>> 
>>> Adding initially wrong tests is likely to be huge mistake.
>> This thing works. Tests proof that.
> 
> ‘Works' and ‘works and gives wrong result' are sort of different things.
> In this regard, rollback doesn’t work, ergo this counter works well
> only in half cases.
> 
>> I believe that those tests are the artefact of this issue.
>> If you want change something, you need to file an issue and explain,
>> why this change is important.
> 
> I guess there is no matter of discussion: it is very likely to be obvious
> that rollback should return old total_change counter (i.e. value before rollback).
> If you strictly disagree, you are welcome to discuss it with other members.

  parent reply	other threads:[~2018-10-04 10:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-27 12:39 [tarantool-patches] [PATCH 0/2] Add test on changes && fix typo in MakeRecord AKhatskevich
2018-09-27 12:39 ` [tarantool-patches] [PATCH 1/2] sql: fix typo in MakeRecord memory hint AKhatskevich
2018-10-01  0:12   ` [tarantool-patches] " n.pettik
2018-09-27 12:39 ` [tarantool-patches] [PATCH 2/2] sql: add test on changes/total_changes AKhatskevich
2018-09-30 23:54   ` [tarantool-patches] " n.pettik
     [not found]     ` <c5639a4e-0b51-cbaa-112c-4f47d86bbe07@tarantool.org>
2018-10-01 15:20       ` n.pettik
2018-10-01 16:13         ` Alex Khatskevich
     [not found]           ` <881CB143-0DC2-468A-90CA-0459E9EE7B15@gmail.com>
2018-10-04 10:49             ` n.pettik [this message]
     [not found]               ` <75020feb-3d2a-2707-bfdb-fd3fd2229afa@tarantool.org>
2018-10-09 12:11                 ` n.pettik
2018-10-10 14:39                   ` Alex Khatskevich
2018-10-18 14:41                     ` n.pettik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2DF5F7A1-C504-4B82-B394-0F16DF025D13@tarantool.org \
    --to=korablev@tarantool.org \
    --cc=avkhatskevich@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='[tarantool-patches] Re: [PATCH 2/2] sql: add test on changes/total_changes' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox