-
Notifications
You must be signed in to change notification settings - Fork 636
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
Fix module / script call CLUSTER SLOTS / SHARDS fake client check crash #1063
Fix module / script call CLUSTER SLOTS / SHARDS fake client check crash #1063
Conversation
The reason is VM_Call will use a fake client without connection, so we also need to check if c->conn is NULL. Fixes valkey-io#1054. Signed-off-by: Binbin <[email protected]>
Signed-off-by: Binbin <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## unstable #1063 +/- ##
============================================
+ Coverage 70.46% 70.62% +0.15%
============================================
Files 114 114
Lines 61688 61694 +6
============================================
+ Hits 43467 43569 +102
+ Misses 18221 18125 -96
|
Signed-off-by: Binbin <[email protected]>
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 @enjoy-binbin!
Signed-off-by: Binbin <[email protected]>
Signed-off-by: Binbin <[email protected]>
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 @enjoy-binbin!
Signed-off-by: Binbin <[email protected]>
Signed-off-by: Binbin <[email protected]>
…sh (valkey-io#1063) The reason is VM_Call will use a fake client without connection, so we also need to check if c->conn is NULL. This also affects scripts. If they are called in the script, the server will crash. Injecting commands into AOF will also cause startup failure. Fixes valkey-io#1054. Signed-off-by: Binbin <[email protected]>
…sh (valkey-io#1063) The reason is VM_Call will use a fake client without connection, so we also need to check if c->conn is NULL. This also affects scripts. If they are called in the script, the server will crash. Injecting commands into AOF will also cause startup failure. Fixes valkey-io#1054. Signed-off-by: Binbin <[email protected]> Signed-off-by: naglera <[email protected]>
The fake client flag was introduced in valkey-io#1063, we want this to replace all !conn fake client checks. Signed-off-by: Binbin <[email protected]>
The reason is VM_Call will use a fake client without connection,
so we also need to check if c->conn is NULL.
This also affects scripts. If they are called in the script, the
server will crash. Injecting commands into AOF will also cause
startup failure.
Fixes #1054.