We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bce9fa4 commit d63aa27Copy full SHA for d63aa27
arbiter.c
@@ -468,7 +468,7 @@ static int MtmConnectSocket(int node, int port)
468
MTM_ELOG(LOG, "Arbiter failed to create socket: %s", strerror(errno));
469
goto Error;
470
}
471
- if (pg_set_noblock(sd, MtmUseRDMA)) {
+ if (!pg_set_noblock(sd, MtmUseRDMA)) {
472
MTM_ELOG(LOG, "Arbiter failed to switch socket to non-blocking mode: %s", strerror(errno));
473
474
@@ -637,7 +637,7 @@ static void MtmAcceptOneConnection()
637
MtmHandshakeMessage req;
638
MtmArbiterMessage resp;
639
int rc;
640
- if (pg_set_noblock(fd,MtmUseRDMA)) {
+ if (!pg_set_noblock(fd,MtmUseRDMA)) {
641
MTM_ELOG(ERROR, "Arbiter failed to switch socket to non-blocking mode: %s", strerror(errno));
642
643
rc = MtmReadSocket(fd, &req, sizeof req);
0 commit comments