Skip to content

Commit 6178f1c

Browse files
author
Sokolov Yura
committed
cfs: increment generation in cfs_recover just to make probackup happier
1 parent db74d1b commit 6178f1c

File tree

1 file changed

+3
-0
lines changed
  • src/backend/storage/file

1 file changed

+3
-0
lines changed

src/backend/storage/file/cfs.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,10 @@ static bool cfs_recover(FileMap* map, int md,
603603
else if (pg_fsync(md) < 0)
604604
elog(WARNING, "CFS failed to sync map %s: %m", map_path);
605605
else
606+
{
606607
ok = true;
608+
map->generation += 1; /* it is here just for pg_probackup */
609+
}
607610
close(md2);
608611
}
609612
else

0 commit comments

Comments
 (0)