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

Function ldbInit

app/redis-6.2.6/src/scripting.c:1843–1852  ·  view source on GitHub ↗

Initialize Lua debugger data structures. */

Source from the content-addressed store, hash-verified

1841
1842/* Initialize Lua debugger data structures. */
1843void ldbInit(void) {
1844 ldb.conn = NULL;
1845 ldb.active = 0;
1846 ldb.logs = listCreate();
1847 listSetFreeMethod(ldb.logs,(void (*)(void*))sdsfree);
1848 ldb.children = listCreate();
1849 ldb.src = NULL;
1850 ldb.lines = 0;
1851 ldb.cbuf = sdsempty();
1852}
1853
1854/* Remove all the pending messages in the specified list. */
1855void ldbFlushLog(list *log) {

Callers 1

scriptingInitFunction · 0.85

Calls 2

listCreateFunction · 0.85
sdsemptyFunction · 0.85

Tested by

no test coverage detected