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 committed May 17, 2021
1 parent 0882db4 commit c755d25
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 @@ -1089,11 +1089,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 c755d25

Please sign in to comment.