Tarantool development patches archive
 help / color / mirror / Atom feed
From: "Ilya Kosarev" <i.kosarev@tarantool.org>
To: "Nikita Pettik" <korablev@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH v2 0/2] Make tree hint optional
Date: Wed, 21 Oct 2020 19:38:36 +0300	[thread overview]
Message-ID: <1603298316.737230626@f389.i.mail.ru> (raw)
In-Reply-To: <20201021152848.GA28675@tarantool.org>

[-- Attachment #1: Type: text/plain, Size: 2425 bytes --]


LGTM

  
>Среда, 21 октября 2020, 18:28 +03:00 от Nikita Pettik <korablev@tarantool.org>:
> 
>On 21 Oct 13:23, Aleksandr Lyapunov wrote:
>> Add an option that disables hints in tree indexes.
>>
>>  https://github.com/tarantool/tarantool/issues/4927
>>  https://github.com/tarantool/tarantool/tree/alyapunov/gh-4927-optional-hints
>
>LGTM
> 
>> v2 changes:
>> * int template parameter was replaced by bool.
>> * fix compilation error, just a couple of casts added:
>>
>> @@ -542,7 +542,7 @@ tree_iterator_start(struct iterator *iterator, struct tuple **ret)
>> struct txn *txn = in_txn();
>> struct space *space = space_by_id(iterator->space_id);
>> bool is_rw = txn != NULL;
>> - uint32_t mk_index = is_multikey ? res->hint : 0;
>> + uint32_t mk_index = is_multikey ? (uint32_t)res->hint : 0;
>> *ret = memtx_tx_tuple_clarify(txn, space, *ret, iid, mk_index, is_rw);
>> if (*ret == NULL) {
>> return iterator->next(iterator, ret);
>> @@ -734,13 +734,14 @@ memtx_tree_index_get(struct index *base, const char *key,
>> struct txn *txn = in_txn();
>> struct space *space = space_by_id(base->def->space_id);
>> bool is_rw = txn != NULL;
>> - uint32_t mk_index = base->def->key_def->is_multikey ? res->hint : 0;
>> + bool is_multikey = base->def->key_def->is_multikey;
>> + uint32_t mk_index = is_multikey ? (uint32_t)res->hint : 0;
>> *result = memtx_tx_tuple_clarify(txn, space, res->tuple, base->def->iid,
>> mk_index, is_rw);
>> return 0;
>> }
>>
>>
>>
>> Aleksandr Lyapunov (1):
>> memtx: make tuple compare hints optional
>>
>> Ilya Kosarev (1):
>> memtx: move memtx_tree.c to memtx_tree.cc
>>
>> src/box/CMakeLists.txt | 2 +-
>> src/box/index_def.c | 2 +
>> src/box/index_def.h | 6 +
>> src/box/lua/schema.lua | 53 ++
>> src/box/lua/space.cc | 7 +
>> src/box/memtx_engine.c | 2 +
>> src/box/memtx_tree.c | 1523 -------------------------------
>> src/box/memtx_tree.cc | 1726 +++++++++++++++++++++++++++++++++++
>> src/lib/salad/bps_tree.h | 19 +
>> test/box/alter.result | 103 ++-
>> test/box/alter.test.lua | 34 +
>> test/box/errinj.result | 3 +-
>> test/box/tree_pk.result | 314 +++++++
>> test/box/tree_pk.test.lua | 115 +++
>> test/box/tree_pk_multipart.result | 153 ++++
>> test/box/tree_pk_multipart.test.lua | 64 ++
>> 16 files changed, 2598 insertions(+), 1528 deletions(-)
>> delete mode 100644 src/box/memtx_tree.c
>> create mode 100644 src/box/memtx_tree.cc
>>
>> --
>> 2.7.4
>>
--
Ilya Kosarev

[-- Attachment #2: Type: text/html, Size: 3349 bytes --]

      reply	other threads:[~2020-10-21 16:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-21 10:23 Aleksandr Lyapunov
2020-10-21 10:23 ` [Tarantool-patches] [PATCH v2 1/2] memtx: move memtx_tree.c to memtx_tree.cc Aleksandr Lyapunov
2020-10-21 16:12   ` Cyrill Gorcunov
2020-10-21 10:23 ` [Tarantool-patches] [PATCH v2 2/2] memtx: make tuple compare hints optional Aleksandr Lyapunov
2020-10-21 15:28 ` [Tarantool-patches] [PATCH v2 0/2] Make tree hint optional Nikita Pettik
2020-10-21 16:38   ` Ilya Kosarev [this message]

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=1603298316.737230626@f389.i.mail.ru \
    --to=i.kosarev@tarantool.org \
    --cc=korablev@tarantool.org \
    --cc=tarantool-patches@dev.tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH v2 0/2] Make tree hint optional' \
    /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