Skip to content

Commit 1cf233d

Browse files
committed
[Issue #281] Non-exclusive locking mode for read-only tasks, such as restore and validate
1 parent bd29752 commit 1cf233d

File tree

16 files changed

+521
-183
lines changed

16 files changed

+521
-183
lines changed

src/backup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ do_backup(time_t start_time, pgSetBackupParams *set_backup_params,
765765
/* Create backup directory and BACKUP_CONTROL_FILE */
766766
if (pgBackupCreateDir(&current))
767767
elog(ERROR, "Cannot create backup directory");
768-
if (!lock_backup(&current, true))
768+
if (!lock_backup(&current, true, true))
769769
elog(ERROR, "Cannot lock backup %s directory",
770770
base36enc(current.start_time));
771771
write_backup(&current, true);

0 commit comments

Comments
 (0)