Skip to content

Commit

Permalink
feat(cmd, config): support REPLICAOF command and replicaof config opt…
Browse files Browse the repository at this point in the history
…ion (apache#2678)
  • Loading branch information
PragmaTwice authored Nov 24, 2024
1 parent fcf3b7b commit 00dfc7c
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 00dfc7c

Please sign in to comment.