#include <unistd.h>#include "../../dprint.h"#include "flat_pool.h"#include "flat_id.h"

Go to the source code of this file.
Functions | |
| struct flat_con * | flat_get_connection (char *dir, char *table) |
| void | flat_release_connection (struct flat_con *con) |
| int | flat_rotate_logs (void) |
Variables | |
| static struct flat_con * | pool = 0 |
| static int | pool_pid |
| struct flat_con* flat_get_connection | ( | char * | dir, | |
| char * | table | |||
| ) | [read] |
Definition at line 47 of file flat_pool.c.
References cmp_flat_id(), flat_new_connection(), free_flat_id(), flat_con::id, id, LM_DBG, LM_ERR, new_flat_id(), flat_con::next, pid, pool_pid, and flat_con::ref.
Referenced by flat_use_table().
| void flat_release_connection | ( | struct flat_con * | con | ) |
Definition at line 99 of file flat_pool.c.
References flat_free_connection(), LM_DBG, LM_ERR, flat_con::next, and flat_con::ref.
Referenced by flat_db_close().
| int flat_rotate_logs | ( | void | ) |
Definition at line 139 of file flat_pool.c.
References flat_reopen_connection(), and flat_con::next.
Referenced by flat_db_insert().
Definition at line 32 of file flat_pool.c.
Referenced by ServerDirectoryHandler(), and xmpp_component_child_process().
int pool_pid [static] |
1.5.6