-
Notifications
You must be signed in to change notification settings - Fork 981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug(server): emulate readonly command #1004
Conversation
src/server/server_family.cc
Outdated
@@ -1262,6 +1264,9 @@ void ServerFamily::Cluster(CmdArgList args, ConnectionContext* cntx) { | |||
std::string msg = BuildClusterNodeReply(cntx); | |||
(*cntx)->SendBulkString(msg); | |||
return; | |||
} else if (sub_cmd == "READONLY") { | |||
(*cntx)->SendOk(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you have not checked with https://github.com/mediocregopher/radix that it works, have not you? :)
it does not fix the issue because this is not a subcommand. it's a separate command that exists only in cluster mode. so you need to register it conditionally only if we run in emulated mode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct, have not tested with radix.
72fe27f
to
2a78350
Compare
For cluster mode. Simply retun OK. Signed-off-by: ashotland <ari@dragonflydb.io>
2a78350
to
db72ac2
Compare
src/server/server_family.cc
Outdated
@@ -42,6 +42,7 @@ extern "C" { | |||
#include "server/tiered_storage.h" | |||
#include "server/transaction.h" | |||
#include "server/version.h" | |||
#include "server_family.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need
Signed-off-by: ashotland <ari@dragonflydb.io>
For cluster mode.
Simply return OK.
Fixes #1003