[Tarantool-patches] [PATCH 4/5] vclock: ignore 0th component in comparisons.

Konstantin Osipov kostja.osipov at gmail.com
Thu Dec 26 08:02:59 MSK 2019


* Konstantin Osipov <kostja.osipov at gmail.com> [19/12/26 07:43]:
> * sergepetrenko <sergepetrenko at tarantool.org> [19/12/16 09:47]:
> > 0th vclock component will be used to count replica-local rows of an
> > anonymous replica. These rows won't be replicated and different
> > instances will have different values in vclock[0]. So ignore 0th
> > component in comparisons.
> 
> I don't know how this is going to work going forward.
> 
> vclock id 0 is already reserved for snapshots/the changes
> of expelled replicas.

 A much safer bet would be to use a new special id number, like
 UINT64_MAX, and not change meaning of  an existing id.

-- 
Konstantin Osipov, Moscow, Russia


More information about the Tarantool-patches mailing list