MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / evalGenericCommandWithDebugging

Function evalGenericCommandWithDebugging

src/scripting.cpp:2081–2088  ·  view source on GitHub ↗

Wrapper for EVAL / EVALSHA that enables debugging, and makes sure * that when EVAL returns, whatever happened, the session is ended. */

Source from the content-addressed store, hash-verified

2079/* Wrapper for EVAL / EVALSHA that enables debugging, and makes sure
2080 * that when EVAL returns, whatever happened, the session is ended. */
2081void evalGenericCommandWithDebugging(client *c, int evalsha) {
2082 if (ldbStartSession(c)) {
2083 evalGenericCommand(c,evalsha);
2084 ldbEndSession(c);
2085 } else {
2086 ldbDisable(c);
2087 }
2088}
2089
2090/* Return a pointer to ldb.src source code line, considering line to be
2091 * one-based, and returning a special string for out of range lines. */

Callers 1

evalCommandFunction · 0.85

Calls 4

ldbStartSessionFunction · 0.85
evalGenericCommandFunction · 0.85
ldbEndSessionFunction · 0.85
ldbDisableFunction · 0.85

Tested by

no test coverage detected