1
0
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:
Grigory Smolkin 2020-05-08 20:24:13 +03:00
parent 596d08b9e2
commit b0cbba8417

View File

@ -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(&current, arguments->files_list, arguments->from_root,
arguments->external_dirs);
/* update backup control file to update size info */
write_backup(&current, true);
prev_time = time(NULL);
}
}