Skip to content

Commit

Permalink
fix(cmd): add exclusive flag to FLUSHDB/FLUSHALL (apache#2624)
Browse files Browse the repository at this point in the history
  • Loading branch information
PragmaTwice authored Oct 26, 2024
1 parent c4664b1 commit c7b6b22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/cmd_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1337,8 +1337,8 @@ REDIS_REGISTER_COMMANDS(Server, MakeCmdAttr<CommandAuth>("auth", 2, "read-only o
MakeCmdAttr<CommandConfig>("config", -2, "read-only", NO_KEY, GenerateConfigFlag),
MakeCmdAttr<CommandNamespace>("namespace", -3, "read-only", NO_KEY),
MakeCmdAttr<CommandKeys>("keys", 2, "read-only slow", NO_KEY),
MakeCmdAttr<CommandFlushDB>("flushdb", 1, "write no-dbsize-check", NO_KEY),
MakeCmdAttr<CommandFlushAll>("flushall", 1, "write no-dbsize-check", NO_KEY),
MakeCmdAttr<CommandFlushDB>("flushdb", 1, "write no-dbsize-check exclusive", NO_KEY),
MakeCmdAttr<CommandFlushAll>("flushall", 1, "write no-dbsize-check exclusive", NO_KEY),
MakeCmdAttr<CommandDBSize>("dbsize", -1, "read-only", NO_KEY),
MakeCmdAttr<CommandSlowlog>("slowlog", -2, "read-only", NO_KEY),
MakeCmdAttr<CommandPerfLog>("perflog", -2, "read-only", NO_KEY),
Expand Down

0 comments on commit c7b6b22

Please sign in to comment.