Displaying 1 result from an estimated 1 matches for "n_pgcs".
Did you mean:
n_pages
2010 Apr 14
4
PostgreSQL driver supporting [round-robin] load balancing and redundancy [LONG]
...+
+static void start_new_query_on_pgc(struct multi_pgsql_query *qry,
+ struct multi_pgsql_pgc *pgc)
+{
+ dprintf(("%s: %p -> %p", __func__, qry, pgc));
+
+ pgc->qry = qry;
+ start_query_on_pgc(pgc);
+}
+
+/** pgdb */
+struct multi_pgsql_db {
+ struct sql_db api;
+
+ unsigned n_pgcs;
+ struct multi_pgsql_pgc *pgcs;
+
+ struct {
+ struct multi_pgsql_pgc *first, **link_to;
+ } pgc_q;
+
+ struct {
+ struct timeout *timeout;
+ struct multi_pgsql_query *first, **link_to;
+ } query_q;
+
+ pool_t pool;
+};
+
+static struct multi_pgsql_query *dequeue_query_from_pgdb(struct multi_pg...