Wrapper for EVAL / EVALSHA that enables debugging, and makes sure * that when EVAL returns, whatever happened, the session is ended. */
| 2079 | /* Wrapper for EVAL / EVALSHA that enables debugging, and makes sure |
| 2080 | * that when EVAL returns, whatever happened, the session is ended. */ |
| 2081 | void 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. */ |
no test coverage detected