Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+1-1
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)