Skip to content

Commit

Permalink
fix the Segmentation fault (core dumped) at backup (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
huangfumingyue authored and MoonInsung committed May 17, 2021
1 parent 8376a58 commit da8ebcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1164,11 +1164,11 @@ confirm_block_size(const char *name, int blcksz)
else if (strcmp(name, "wal_block_size") == 0)
elog(DEBUG, "wal block size is %d", block_size);

PQclear(res);
if ((endp && *endp) || block_size != blcksz)
ereport(ERROR,
(errcode(ERROR_PG_INCOMPATIBLE),
errmsg("%s(%d) is not compatible(%d expected)", name, block_size, blcksz)));
PQclear(res);
}

/*
Expand Down

0 comments on commit da8ebcb

Please sign in to comment.