[patches] [PATCH 1/1] vinyl: forbid vinyl index key definition alter

Vladimir Davydov vdavydov.dev at gmail.com
Mon Feb 19 20:32:38 MSK 2018


On Mon, Feb 19, 2018 at 01:50:15PM +0300, Vladislav Shpilevoy wrote:
> Vinyl index key definition is stored in vylog even if an index is
> empty, and we while do not have a method to update it. So vinyl
> index key definition alter is forbidden even on an empty space.
> 
> Closes #3169

>  space.index.primary:alter({parts = {1, 'unsigned', 2, 'unsigned'}})
>  ---
> +- error: Vinyl does not support changing the definition of an index
>  ...

IMHO this isn't particularly user-friendly. I think we should force
index rebuild instead of forbidding space alter altogether.



More information about the Tarantool-patches mailing list