[RFC PATCH 07/23] vinyl: refactor unique check
Konstantin Osipov
kostja at tarantool.org
Tue Jul 31 23:28:52 MSK 2018
* Vladimir Davydov <vdavydov.dev at gmail.com> [18/07/08 22:52]:
> For the sake of further patches, let's do some refactoring:
> - Rename vy_check_is_unique to vy_check_is_unique_primary and use it
> only for checking the unique constraint of primary indexes. Also,
> make it return immediately if the primary index doesn't need
> uniqueness check, like vy_check_is_unique_secondary does.
> - Open-code uniqueness check in vy_check_is_unique_secondary instead of
> using vy_check_is_unique.
> - Reduce indentation level of vy_check_is_unique_secondary by inverting
> the if statement.
Pushed.
--
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