[Tarantool-patches] [PATCH v5 1/4] vclock: add an ability to reset individual clock components

Konstantin Osipov kostja.osipov at gmail.com
Mon Mar 30 15:56:18 MSK 2020


* Serge Petrenko <sergepetrenko at tarantool.org> [20/03/30 14:08]:
> +/**
> + * A shortcut for vclock_copy() + vclock_reset() for 0th clock
> + * component.
> + */
> +static inline void
> +vclock_copy_ignore0(struct vclock *dst, const struct vclock *src)
> +{
> +	vclock_copy(dst, src);
> +	vclock_reset(dst, 0, 0);
> +}
> +

This can be made a tad faster by merging copy + reset and removing
unnecessary branching, but is lgtm.


-- 
Konstantin Osipov, Moscow, Russia
https://scylladb.com


More information about the Tarantool-patches mailing list