Displaying 1 result from an estimated 1 matches for "semi_count".
2010 Apr 14
4
PostgreSQL driver supporting [round-robin] load balancing and redundancy [LONG]
...y *first, **link_to;
+ } query_q;
+
+ pool_t pool;
+};
+
+static struct multi_pgsql_query *dequeue_query_from_pgdb(struct multi_pgsql_db *);
+
+/*** pgc support code */
+static void do_init_pgcs(struct multi_pgsql_db *pgdb, char const *s, unsigned ofs)
+{
+ char const *r, *lws_start;
+ unsigned c, semi_count;
+
+ while ((c = *s) && isspace(c)) ++s;
+
+ if (!c) {
+ if (!ofs) i_fatal("%s: empty connect string", __func__);
+
+ dprintf(("%s: end of connect_string, %u pgcs",
+ __func__, ofs));
+
+ pgdb->n_pgcs = ofs;
+ pgdb->pgcs = p_new(pgdb->pool, struct mult...