[PATCH 11/12] vinyl: force index rebuild if indexed field type is narrowed

Konstantin Osipov kostja at tarantool.org
Mon Apr 9 23:51:22 MSK 2018

* Vladimir Davydov <vdavydov.dev at gmail.com> [18/04/09 10:33]:
> If the type of an indexed field is narrowed (e.g. is_nullable flag is
> cleared or the type is changed from 'integer' to 'unsigned'), but the
> index structure remains the same (same fields, indexed in the same
> order), we won't rebuild the index, instead we will check that all
> tuples stored in the space conform to the new format (CheckSpaceFormat)
> and if so modify the index in-place (ModifyIndex). This is OK for memtx,
> but not for Vinyl, because even if the space contains no tuples
> conflicting with the new format, there may be overwritten or deleted
> statements, which can't be detected by CheckSpaceFormat.

OK to push.


Konstantin Osipov, Moscow, Russia, +7 903 626 22 32
http://tarantool.io - www.twitter.com/kostja_osipov

More information about the Tarantool-patches mailing list