Module tarantool::vclock

source ·
Expand description

Vector clock.

This module provides two concepts:

Their meaning is explained below.

To ensure data persistence, Tarantool records updates to the database in the so-called write-ahead log (WAL) files. Each record in the WAL represents a single Tarantool data-change request such as INSERT, UPDATE, or DELETE, and is assigned a monotonically growing log sequence number (LSN).

Enabling replication makes all replicas in a replica set to exchange their records, each with it’s own LSN. Together, LSNs from different replicas form a vector clock (vclock). Vclock defines the database state of an instance.

The zero vclock component is special, it’s used for tracking local

Structs

Type Aliases

  • Tarantool log sequence number.