Tarantool development patches archive
 help / color / mirror / Atom feed
From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
To: tarantool-patches@freelists.org,
	Kirill Shcherbatov <kshcherbatov@tarantool.org>,
	Vladimir Davydov <vdavydov.dev@gmail.com>
Subject: [tarantool-patches] Re: [PATCH v1 1/1] box: fix assert with multikey hybrid index
Date: Tue, 21 May 2019 20:04:10 +0300	[thread overview]
Message-ID: <d8fa59f9-7c67-adf9-a331-325585e903b0@tarantool.org> (raw)
In-Reply-To: <e5edb1d3-5c6e-9dbc-7599-2240247ebd91@tarantool.org>



On 21/05/2019 19:59, Kirill Shcherbatov wrote:
> Thank you for your feedback! Done.
> ====================================================
> 
> Tarantool used to assume that offset_slot has an extension
> iff field_map_get_offset is called with multikey_idx >= 0.
> In fact, when some part of the index contains a multikey index
> placeholder, tuple_compare_* routines pass a tuple_hint in
> meaning of multikey index for each tuple_field_raw_by_part call,
> even for regular key_part that doesn't have array index
> placeholder (and, correspondingly, field_map extension).
> Thus this assumption is invalid.
> 
> This patch uses the fact that field_map slots that have extensoin

Typo "extensoin". 

> store negative offset to distinguish multikey and normal usage
> of the field_map_get_offset routine.
> 
> Closes #4234
> ---

  reply	other threads:[~2019-05-21 17:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-21 15:39 Kirill Shcherbatov
2019-05-21 16:49 ` Vladimir Davydov
2019-05-21 16:59   ` [tarantool-patches] " Kirill Shcherbatov
2019-05-21 17:04     ` Vladislav Shpilevoy [this message]
2019-05-22 10:21     ` Vladimir Davydov

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=d8fa59f9-7c67-adf9-a331-325585e903b0@tarantool.org \
    --to=v.shpilevoy@tarantool.org \
    --cc=kshcherbatov@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --cc=vdavydov.dev@gmail.com \
    --subject='[tarantool-patches] Re: [PATCH v1 1/1] box: fix assert with multikey hybrid index' \
    /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