mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-09 00:27:08 +02:00
CLEANUP: peers: Indentation fixes.
May be backported as far as 1.5.
This commit is contained in:
parent
ce02557aad
commit
a8725ec372
@ -259,7 +259,6 @@ static inline void peer_set_update_msg_type(char *msg_type, int use_identifier,
|
|||||||
else
|
else
|
||||||
*msg_type = PEER_MSG_STKT_INCUPDATE;
|
*msg_type = PEER_MSG_STKT_INCUPDATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* This prepare the data update message on the stick session <ts>, <st> is the considered
|
* This prepare the data update message on the stick session <ts>, <st> is the considered
|
||||||
@ -1008,11 +1007,8 @@ static void peer_io_handler(struct appctx *appctx)
|
|||||||
|
|
||||||
/* flag to start to teach lesson */
|
/* flag to start to teach lesson */
|
||||||
curpeer->flags |= PEER_F_TEACH_PROCESS;
|
curpeer->flags |= PEER_F_TEACH_PROCESS;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (msg_head[1] == PEER_MSG_CTRL_RESYNCFINISHED) {
|
else if (msg_head[1] == PEER_MSG_CTRL_RESYNCFINISHED) {
|
||||||
|
|
||||||
if (curpeer->flags & PEER_F_LEARN_ASSIGN) {
|
if (curpeer->flags & PEER_F_LEARN_ASSIGN) {
|
||||||
curpeer->flags &= ~PEER_F_LEARN_ASSIGN;
|
curpeer->flags &= ~PEER_F_LEARN_ASSIGN;
|
||||||
curpeers->flags &= ~(PEERS_F_RESYNC_ASSIGN|PEERS_F_RESYNC_PROCESS);
|
curpeers->flags &= ~(PEERS_F_RESYNC_ASSIGN|PEERS_F_RESYNC_PROCESS);
|
||||||
@ -1021,7 +1017,6 @@ static void peer_io_handler(struct appctx *appctx)
|
|||||||
curpeer->confirm++;
|
curpeer->confirm++;
|
||||||
}
|
}
|
||||||
else if (msg_head[1] == PEER_MSG_CTRL_RESYNCPARTIAL) {
|
else if (msg_head[1] == PEER_MSG_CTRL_RESYNCPARTIAL) {
|
||||||
|
|
||||||
if (curpeer->flags & PEER_F_LEARN_ASSIGN) {
|
if (curpeer->flags & PEER_F_LEARN_ASSIGN) {
|
||||||
curpeer->flags &= ~PEER_F_LEARN_ASSIGN;
|
curpeer->flags &= ~PEER_F_LEARN_ASSIGN;
|
||||||
curpeers->flags &= ~(PEERS_F_RESYNC_ASSIGN|PEERS_F_RESYNC_PROCESS);
|
curpeers->flags &= ~(PEERS_F_RESYNC_ASSIGN|PEERS_F_RESYNC_PROCESS);
|
||||||
@ -1430,7 +1425,6 @@ static void peer_io_handler(struct appctx *appctx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Nothing to read, now we start to write */
|
/* Nothing to read, now we start to write */
|
||||||
|
|
||||||
if (curpeer->tables) {
|
if (curpeer->tables) {
|
||||||
struct shared_table *st;
|
struct shared_table *st;
|
||||||
struct shared_table *last_local_table;
|
struct shared_table *last_local_table;
|
||||||
|
Loading…
Reference in New Issue
Block a user