Skip to content

Commit 2267d5b

Browse files
committed
[Issue #228] fix possible metadata corruption in merge retry
1 parent c8acde3 commit 2267d5b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/merge.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -1046,8 +1046,10 @@ merge_files(void *arg)
10461046
/*
10471047
* In-place merge means that file in FULL backup stays as it is,
10481048
* no additional actions are required.
1049+
* page header map cannot be trusted when retrying, so no
1050+
* in place merge for retry.
10491051
*/
1050-
if (in_place)
1052+
if (in_place && !arguments->is_retry)
10511053
{
10521054
pgFile **res_file = NULL;
10531055
pgFile *file = NULL;

0 commit comments

Comments
 (0)