]> granicus.if.org Git - pgbouncer/commit
fix reconnects of auth_user dbs after online restart
authorCody Cutrer <cody@instructure.com>
Wed, 28 Aug 2013 02:47:44 +0000 (20:47 -0600)
committerCody Cutrer <cody@instructure.com>
Mon, 7 Oct 2013 21:34:51 +0000 (15:34 -0600)
commite21c127a8dbfeab21cacdb3647d8ae058deeb488
tree024525717c21cd606a66d7fe888ec425280f5788
parent635dacddc2656f69287b0459492505e88d9110cd
fix reconnects of auth_user dbs after online restart

if the user was a dynamic user, the only way the bouncer knows the
password was from a new client connection. if an existing client
starts a transaction before a new client connects, it will not know
the correct password. so pass that info along in the online restart
data.

note that this is backwards compatible - old bouncers just won't send
the password, and it's stuck until the client tries to connect
include/client.h
include/objects.h
src/admin.c
src/client.c
src/objects.c
src/takeover.c