Skip to content

Commit 282abba

Browse files
ranshidzuiderkwast
andauthored
Documentation of BGSAVE CANCEL (#182)
Document bgsave cancel option added in valkey-io/valkey#757 --------- Signed-off-by: Ran Shidlansik <[email protected]> Signed-off-by: ranshid <[email protected]> Signed-off-by: Viktor Söderqvist <[email protected]> Co-authored-by: Viktor Söderqvist <[email protected]>
1 parent e48583b commit 282abba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

commands/bgsave.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ If `BGSAVE SCHEDULE` is used, the command will immediately return `OK` when an
1212
AOF rewrite is in progress and schedule the background save to run at the next
1313
opportunity.
1414

15+
If `BGSAVE CANCEL` is used, it will immediately terminate any in-progress RDB save or replication full sync process.
16+
In case a background save is scheduled to run (e.g. using `BGSAVE SCHEDULE` command) the scheduled execution will be
17+
cancelled as well.
18+
1519
A client may be able to check if the operation succeeded using the `LASTSAVE`
1620
command.
1721

0 commit comments

Comments
 (0)