Skip to content

Commit

Permalink
Clear ->tuning bit on connection close.
Browse files Browse the repository at this point in the history
If tuning query fails, the bit can stay set,
thus creating always-failing connection slot.

Report and analyze by Jonah Harris.
  • Loading branch information
markokr committed Dec 17, 2008
1 parent 5ef0db9 commit c3b4d5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/execute.c
Expand Up @@ -281,6 +281,7 @@ prepare_conn(ProxyFunction *func, ProxyConnection *conn)
PQfinish(conn->db);
conn->db = NULL;
conn->state = C_NONE;
conn->tuning = 0;
case C_NONE:
break;
}
Expand Down

0 comments on commit c3b4d5f

Please sign in to comment.