| 87 | } |
| 88 | |
| 89 | int 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 | |
| 107 | int db_check_api(db_func_t* dbf, char *mname) |
| 108 | { |
no outgoing calls
no test coverage detected