Skip to main content

WAIT

Note

Official reference: WAIT.

Wait for a number of replicas to acknowledge preceding writes.

Syntax

WAIT replicas timeout

replicas is the required acknowledgment count; timeout is in milliseconds, with zero waiting indefinitely. The returned count can fall short on timeout; preceding writes are not rolled back.

Results

ReturnRowsContent
ResultSet1REPLICAS field, LONG type

Example

SET demo:message hello
WAIT 1 1000