MCPcopy Create free account
hub / github.com/apache/trafficserver / ts_lua_stat_set_value

Function ts_lua_stat_set_value

plugins/lua/ts_lua_stat.cc:234–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234static int
235ts_lua_stat_set_value(lua_State *L)
236{
237 int value;
238 int idp;
239 value = luaL_checkinteger(L, 2);
240
241 luaL_checktype(L, 1, LUA_TTABLE);
242 lua_getfield(L, -2, "id");
243 idp = luaL_checknumber(L, -1);
244 lua_pop(L, 1);
245
246 TSStatIntSet(idp, value);
247
248 return 0;
249}

Callers

nothing calls this directly

Calls 1

TSStatIntSetFunction · 0.85

Tested by

no test coverage detected