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

Function db_get_event_sequence

lua/sp.c:4858–4865  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4856}
4857
4858static int db_get_event_sequence(Lua L)
4859{
4860 luaL_checkudata(L, 1, dbtypes.db);
4861 if (lua_getmetatable(L, -1) == 0)
4862 return 0;
4863 lua_getfield(L, -1, "sequence");
4864 return luabb_type(L, -1) == DBTYPES_INTEGER ? 1 : 0;
4865}
4866
4867static int db_bootstrap(Lua L)
4868{

Callers

nothing calls this directly

Calls 4

luaL_checkudataFunction · 0.85
lua_getmetatableFunction · 0.85
lua_getfieldFunction · 0.85
luabb_typeFunction · 0.85

Tested by

no test coverage detected