| 531 | extern int gbl_physrep_max_candidates; |
| 532 | |
| 533 | static 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 | |
| 554 | static const luaL_Reg sys_funcs[] = { |
| 555 | { "cluster", db_cluster }, |
nothing calls this directly
no test coverage detected