BUG/MAJOR: peers: fix current table pointer not re-initialized on session release.

This bug causes malfunctions after re-connect. For instance the re-sync fails.
This commit is contained in:
Emeric Brun 2015-08-21 12:00:30 +02:00 committed by Willy Tarreau
parent e1ab808ff8
commit b157d73beb

View File

@ -457,6 +457,8 @@ static void peer_session_release(struct appctx *appctx)
/* peer session identified */
if (peer) {
if (peer->stream == s) {
/* Re-init current table pointers to force announcement on re-connect */
peer->remote_table = peer->last_local_table = NULL;
peer->stream = NULL;
peer->appctx = NULL;
if (peer->flags & PEER_F_LEARN_ASSIGN) {