[PATCH 1/6] vclock: allow to use const vclock as search key

Konstantin Osipov kostja.osipov at gmail.com
Mon Nov 26 20:38:30 MSK 2018


* Vladimir Davydov <vdavydov.dev at gmail.com> [18/11/26 10:27]:
> vclockset_psearch() and friends never modify the vclock used as a search
> key, but the compiler will not allow to pass const struct vclock to any
> of those functions. Fix this.

Hi, 

Please change rb_gen() signature if possible instead.

> ---
>  src/box/vclock.c | 4 +++-
>  src/box/vclock.h | 5 +++--
>  2 files changed, 6 insertions(+), 3 deletions(-)

-- 
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