MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / logCommands

Function logCommands

src/debug.c:26–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26static void logCommands(void) {
27 // #readers + #writers + Redis main thread
28 uint32_t n = ThreadPools_ThreadCount() + 1;
29 CommandCtx* commands[n];
30 Globals_GetCommandCtxs(commands, &n);
31
32 for(uint32_t i = 0; i < n; i++) {
33 CommandCtx *cmd = commands[i];
34 ASSERT(cmd != NULL);
35
36 RedisModule_Log(NULL, "warning", "%s %s", cmd->command_name,
37 cmd->query);
38
39 CommandCtx_Free(cmd);
40 }
41}
42
43void InfoFunc
44(

Callers 1

crashHandlerFunction · 0.85

Calls 3

ThreadPools_ThreadCountFunction · 0.85
Globals_GetCommandCtxsFunction · 0.85
CommandCtx_FreeFunction · 0.85

Tested by

no test coverage detected