MCPcopy Create free account
hub / github.com/F-Stack/f-stack / evalGenericCommandWithDebugging

Function evalGenericCommandWithDebugging

app/redis-6.2.6/src/scripting.c:2059–2066  ·  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

2057/* Wrapper for EVAL / EVALSHA that enables debugging, and makes sure
2058 * that when EVAL returns, whatever happened, the session is ended. */
2059void evalGenericCommandWithDebugging(client *c, int evalsha) {
2060 if (ldbStartSession(c)) {
2061 evalGenericCommand(c,evalsha);
2062 ldbEndSession(c);
2063 } else {
2064 ldbDisable(c);
2065 }
2066}
2067
2068/* Return a pointer to ldb.src source code line, considering line to be
2069 * 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