BGREWRITEAOFStart an append-only-file rewrite in the background.
| Syntax | BGREWRITEAOF |
| Group | server |
| Arity | 1 |
| Since | 1.0.0 |
| Flags | write, admin |
| Complexity | O(S) fan-out; each shard freezes a copy-on-write view and hands serialise plus fsync to its own worker |
| Redis compatibility | differs: replies +OK rather than Redis's status line, rewrites one AOF per shard, and replies +OK even when AOF is disabled |