| 1344 | } |
| 1345 | |
| 1346 | static void cache_init_load(int sender, void *param) |
| 1347 | { |
| 1348 | db_handlers_t *db_hdls; |
| 1349 | |
| 1350 | for (db_hdls = db_hdls_list; db_hdls; db_hdls = db_hdls->next) { |
| 1351 | |
| 1352 | if (init_rld_vers_key(db_hdls->c_entry, db_hdls) < 0) { |
| 1353 | LM_ERR("Failed to set up reload version counter in cahchedb for " |
| 1354 | "entry: %.*s\n", db_hdls->c_entry->id.len, db_hdls->c_entry->id.s); |
| 1355 | return; |
| 1356 | } |
| 1357 | |
| 1358 | /* cache the entire table in full caching mode */ |
| 1359 | if (!db_hdls->c_entry->on_demand && |
| 1360 | load_entire_table(db_hdls->c_entry, db_hdls, 0) < 0) { |
| 1361 | LM_ERR("Failed to cache the entire table: %s\n", db_hdls->c_entry->table.s); |
| 1362 | continue; |
| 1363 | } else |
| 1364 | LM_DBG("Cached table: %.*s\n", db_hdls->c_entry->table.len, |
| 1365 | db_hdls->c_entry->table.s); |
| 1366 | |
| 1367 | } |
| 1368 | } |
| 1369 | |
| 1370 | static int mod_init(void) |
| 1371 | { |
nothing calls this directly
no test coverage detected