mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-03-19 21:38:02 +02:00
[Issue #203] avoid backup stalling because of frequent metadata flushing
This commit is contained in:
parent
596d08b9e2
commit
b0cbba8417
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user