| 4818 | } |
| 4819 | |
| 4820 | static 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 | |
| 4833 | static int db_trigger(Lua L) |
| 4834 | { |
nothing calls this directly
no test coverage detected