MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / estimate_available_rows

Function estimate_available_rows

db/db.c:89–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89int estimate_available_rows(int payload_size, int column_count)
90{
91 struct mem_info info;
92 memset(&info, 0, sizeof (struct mem_info));
93
94
95#ifdef pkg_info
96
97 pkg_info(&info);
98 return (int) (info.free / (payload_size + column_count * COLUMN_OVERHEAD));
99#else
100
101 return 0;
102#endif
103
104
105}
106
107int db_check_api(db_func_t* dbf, char *mname)
108{

Callers 15

load_infoFunction · 0.85
tcp_reload_pathsFunction · 0.85
db_restoreFunction · 0.85
lb_db_load_dataFunction · 0.85
restore_db_subsFunction · 0.85
pres_htable_restoreFunction · 0.85
pres_expose_eviFunction · 0.85
qr_reloadFunction · 0.85
b2b_entities_restore_dbFunction · 0.85
frd_load_dataFunction · 0.85
dp_load_dbFunction · 0.85
get_domain_db_ucontactsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected