MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / db_consumer

Function db_consumer

lua/sp.c:4820–4831  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4818}
4819
4820static int db_consumer(Lua L)
4821{
4822 int args = lua_gettop(L);
4823 if (args == 2) {
4824 luaL_checktype(L, 2, LUA_TTABLE);
4825 } else if (args > 2) {
4826 return luaL_argerror(L, 3, "bad number of arguments");
4827 }
4828 luaL_checkudata(L, 1, dbtypes.db);
4829 lua_remove(L, 1);
4830 return register_queue_with_berkdb_and_master(L, "consumer");
4831}
4832
4833static int db_trigger(Lua L)
4834{

Callers

nothing calls this directly

Calls 6

lua_gettopFunction · 0.85
luaL_checktypeFunction · 0.85
luaL_argerrorFunction · 0.85
luaL_checkudataFunction · 0.85
lua_removeFunction · 0.85

Tested by

no test coverage detected