Skip to content

Commit

Permalink
feat(cmd, config): support REPLICAOF command and replicaof config option
Browse files Browse the repository at this point in the history
  • Loading branch information
PragmaTwice committed Nov 23, 2024
1 parent f98cb0c commit 4f75216
Show file tree
Hide file tree
Showing 2 changed files with 305 additions and 301 deletions.
1 change: 1 addition & 0 deletions src/commands/cmd_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1362,6 +1362,7 @@ REDIS_REGISTER_COMMANDS(Server, MakeCmdAttr<CommandAuth>("auth", 2, "read-only o
MakeCmdAttr<CommandLastSave>("lastsave", 1, "read-only", NO_KEY),
MakeCmdAttr<CommandFlushBackup>("flushbackup", 1, "read-only no-script", NO_KEY),
MakeCmdAttr<CommandSlaveOf>("slaveof", 3, "read-only exclusive no-script", NO_KEY),
MakeCmdAttr<CommandSlaveOf>("replicaof", 3, "read-only exclusive no-script", NO_KEY),
MakeCmdAttr<CommandStats>("stats", 1, "read-only", NO_KEY),
MakeCmdAttr<CommandRdb>("rdb", -3, "write exclusive", NO_KEY),
MakeCmdAttr<CommandReset>("reset", 1, "ok-loading bypass-multi no-script", NO_KEY),
Expand Down
Loading

0 comments on commit 4f75216

Please sign in to comment.