Skip to content

Commit 8663f15

Browse files
authored
Clarify meaning of numlocal param in WAITAOF command (#2446)
1 parent 77e0025 commit 8663f15

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

commands/waitaof.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
This command blocks the current client until all previous write commands by that client are acknowledged as having been fsynced to the AOF of the local Redis and/or at least the specified number of replicas.
2+
3+
`numlocal` represents the number of local fsyncs required to be confirmed before proceeding.
4+
When `numlocal` is set to 1, the command blocks until the data written to the Redis instance is confirmed to be persisted to the local AOF file.
5+
The value 0 disables this check.
6+
27
If the timeout, specified in milliseconds, is reached, the command returns even if the specified number of acknowledgments has not been met.
38

49
The command **will always return** the number of masters and replicas that have fsynced all write commands sent by the current client before the `WAITAOF` command, both in the case where the specified thresholds were met, and when the timeout is reached.

0 commit comments

Comments
 (0)