Skip to content

Commit 23497fb

Browse files
ololobusgsmolk
authored andcommitted
Check for ptrack.map_size = -1 for ptrack >= 2.1
1 parent aa336b4 commit 23497fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ptrack.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@ pg_ptrack_enable(PGconn *backup_conn, int ptrack_version_num)
235235
else
236236
{
237237
res_db = pgut_execute(backup_conn, "SHOW ptrack.map_size", 0, NULL);
238-
result = strcmp(PQgetvalue(res_db, 0, 0), "0") != 0;
238+
result = strcmp(PQgetvalue(res_db, 0, 0), "0") != 0 &&
239+
strcmp(PQgetvalue(res_db, 0, 0), "-1") != 0;
239240
}
240241

241242
PQclear(res_db);

0 commit comments

Comments
 (0)