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

Function evalCommand

src/scripting.cpp:1745–1753  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1743}
1744
1745void evalCommand(client *c) {
1746 /* Explicitly feed monitor here so that lua commands appear after their
1747 * script command. */
1748 replicationFeedMonitors(c,g_pserver->monitors,c->db->id,c->argv,c->argc);
1749 if (!(c->flags & CLIENT_LUA_DEBUG))
1750 evalGenericCommand(c,0);
1751 else
1752 evalGenericCommandWithDebugging(c,0);
1753}
1754
1755void evalShaCommand(client *c) {
1756 /* Explicitly feed monitor here so that lua commands appear after their

Callers 1

executeCronJobExpireHookFunction · 0.85

Calls 3

replicationFeedMonitorsFunction · 0.85
evalGenericCommandFunction · 0.85

Tested by

no test coverage detected