Allow PCP[attach/detach/promote] commands during failover.
authorMuhammad Usama <m.usama@gmail.com>
Tue, 30 Oct 2018 11:35:10 +0000 (16:35 +0500)
committerMuhammad Usama <m.usama@gmail.com>
Tue, 30 Oct 2018 12:44:53 +0000 (17:44 +0500)
We have made the Pgpool-II to handle the multiple failover/failback/promote
node requests by adding the request queue a long time ago. But somehow we were
still not accepting the pcp_[attach/detach/promote] requests during the failover.

This commit removes this unwanted restriction and allow queuing of node operation
requests from PCP client during the failover.

src/pcp_con/pcp_worker.c

index aa1a503c0a39e0bddb53484e582f62417fc658ca..3b7e8db189a42e8df961e11f751242bd01a6c298 100644 (file)
@@ -216,8 +216,7 @@ static void
 pcp_process_command(char tos, char *buf, int buf_len)
 {
 
-       if (tos == 'C' || tos == 'd' || tos == 'D' || tos == 'j' ||
-               tos == 'J' || tos == 'O' || tos == 'T')
+       if (tos == 'O' || tos == 'T')
        {
                if (Req_info->switching)
                {