You've already forked pg_probackup
mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-07-13 06:50:16 +02:00
[Issue #203] avoid backup stalling because of frequent metadata flushing
This commit is contained in:
@ -2072,15 +2072,15 @@ backup_files(void *arg)
|
||||
|
||||
if (arguments->thread_num == 1)
|
||||
{
|
||||
/* update backup_content.control every 10 seconds */
|
||||
if ((difftime(time(NULL), prev_time)) > 10)
|
||||
/* update backup_content.control every 60 seconds */
|
||||
if ((difftime(time(NULL), prev_time)) > 60)
|
||||
{
|
||||
prev_time = time(NULL);
|
||||
|
||||
write_backup_filelist(¤t, arguments->files_list, arguments->from_root,
|
||||
arguments->external_dirs);
|
||||
/* update backup control file to update size info */
|
||||
write_backup(¤t, true);
|
||||
|
||||
prev_time = time(NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user