Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0b6494b

Browse files
author
Andrei Krichinin
committed
get rid of pg_strtouint64 according to 3c6f8c011f85df7b35c32f4ccaac5c86c9064a4a
1 parent 88afbdb commit 0b6494b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/multimaster.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,7 +1548,11 @@ mtm_ping(PG_FUNCTION_ARGS)
15481548
"Failed to query mtm.cluster_status on '%s': %s",
15491549
peer_connstr, msg);
15501550
}
1551+
#if PG_VERSION_NUM < 150000
15511552
peer_gen_num = pg_strtouint64(PQgetvalue(res, 0, 0), NULL, 10);
1553+
#else
1554+
peer_gen_num = strtou64(PQgetvalue(res, 0, 0), NULL, 10);
1555+
#endif
15521556
PQclear(res);
15531557
PQfinish(conn);
15541558
if (curr_gen.num != peer_gen_num)

0 commit comments

Comments
 (0)