-
Notifications
You must be signed in to change notification settings - Fork 990
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
feat(server): add eval_ro and evalsha_ro #4091
Conversation
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.
Thanks for the contribution Andy, very clean and elegant! :)
Please see my small comments below
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.
Clean and concise 👍🏻
@@ -176,7 +176,8 @@ void Transaction::Shutdown() { | |||
Transaction::Transaction(const CommandId* cid) : cid_{cid} { | |||
InitTxTime(); | |||
string_view cmd_name(cid_->name()); | |||
if (cmd_name == "EXEC" || cmd_name == "EVAL" || cmd_name == "EVALSHA") { | |||
if (cmd_name == "EXEC" || cmd_name == "EVAL" || cmd_name == "EVAL_RO" || cmd_name == "EVALSHA" || |
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.
I hope you checked all places with "EVAL" 🙂 We use some more in main_service.cc, we use abs::StartsWith to be more compact.
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.
I'll fix
dragonfly/src/server/main_service.cc
Line 1705 in 8e3b8cc
auto* eval_cid = registry_.Find("EVAL"); |
this week
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.
I hope you checked all places with "EVAL" 🙂 We use some more in main_service.cc, we use abs::StartsWith to be more compact.
I think so yeah - the StartsWith
ones are ok as will match EVAL_RO
? Or do you mean some shouldn't match
6bfdacd
to
e15e752
Compare
Thanks Andy! |
Fixes #3880 and #3879