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

Function db_comdb_physrep_tunables

lua/syssp.c:533–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531extern int gbl_physrep_max_candidates;
532
533static int db_comdb_physrep_tunables(Lua L)
534{
535 int tunables_count = 3;
536
537 lua_createtable(L, tunables_count, 0);
538
539 lua_pushstring(L, "physrep_fanout");
540 lua_pushinteger(L, gbl_physrep_fanout);
541 lua_settable(L, -3);
542
543 lua_pushstring(L, "physrep_max_candidates");
544 lua_pushinteger(L, gbl_physrep_max_candidates);
545 lua_settable(L, -3);
546
547 lua_pushstring(L, "physrep_max_pending_replicants");
548 lua_pushinteger(L, gbl_physrep_max_pending_replicants);
549 lua_settable(L, -3);
550
551 return 1;
552}
553
554static const luaL_Reg sys_funcs[] = {
555 { "cluster", db_cluster },

Callers

nothing calls this directly

Calls 4

lua_createtableFunction · 0.85
lua_pushstringFunction · 0.85
lua_pushintegerFunction · 0.85
lua_settableFunction · 0.85

Tested by

no test coverage detected