fix: reply NOSCRIPT for a sha that only has SCRIPT FLAGS set - #8108
Conversation
PR Summary by QodoReturn NOSCRIPT for SHA entries containing only SCRIPT FLAGS
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
🤖 Augment PR SummarySummary: Prevents
🤖 Was this summary useful? React with 👍 or 👎 |
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can keep summaries lean with Finding overflow, which tucks the rest behind 'View more' Powered by Qodo |
Code Review by Qodo
🔴 High 1. Preload flags drop defaults
|
d61bda5 to
2511df0
Compare
SCRIPT FLAGS <sha>default-inserts a body-less entry intoScriptMgr::db_and publishes its params to every thread's cache. That cache isEVALSHA's only existence guard, whileScriptMgr::Findrequires a non-null body - soEVALSHApassed the guard and aborted inLoadScript(LOG(DFATAL); in release it falls through toCHECK(result == RUN_OK)and aborts too). Reachable from two clients commands, and replicated, so it also killed replicas.Fixes #8103