Skip to content

box.ctl.wal_sync can be used in lua to wait write flush #4498

Open
@TarantoolBot

Description

@TarantoolBot

Now one can use box.ctl.wal_sync() to wait until all submitted
writes are successfully flushed to the disk. If write fails it
throws an error. After the function is executed one may reliably
use box.info.vclock for comparisons when choosing a new master

Fixes #10142
Requested by @LevKats in tarantool/tarantool@ea847e1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    server[area] Task relates to Tarantool's server (core) functionalitywal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions