Content-Length: 256748 | pFad | http://github.com/postgrespro/postgres_cluster/commit/75acab93f786f7594891b428b74e2ecc993cd8ff

10 Use pg_getsockopt in arbiter.c · postgrespro/postgres_cluster@75acab9 · GitHub
Skip to content

Commit 75acab9

Browse files
za-arthurkelvich
authored andcommitted
Use pg_getsockopt in arbiter.c
1 parent 93badb6 commit 75acab9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arbiter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ static int MtmConnectSocket(int node, int port)
465465
socklen_t optlen = sizeof(int);
466466
int errcode;
467467

468-
if (getsockopt(sd, SOL_SOCKET, SO_ERROR, (void*)&errcode, &optlen) < 0) {
468+
if (pg_getsockopt(sd, SOL_SOCKET, SO_ERROR, (void*)&errcode, &optlen, MtmUseRDMA) < 0) {
469469
MTM_ELOG(WARNING, "Arbiter failed to getsockopt for %s:%d: %s", host, port, strerror(errcode));
470470
goto Error;
471471
}

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/75acab93f786f7594891b428b74e2ecc993cd8ff

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy