Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb0cbba8

Browse files
committed
[Issue#203] avoid backup stalling because of frequent metadata flushing
1 parent596d08b commitb0cbba8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/backup.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2072,15 +2072,15 @@ backup_files(void *arg)
20722072

20732073
if (arguments->thread_num==1)
20742074
{
2075-
/* update backup_content.control every10 seconds */
2076-
if ((difftime(time(NULL),prev_time))>10)
2075+
/* update backup_content.control every60 seconds */
2076+
if ((difftime(time(NULL),prev_time))>60)
20772077
{
2078-
prev_time=time(NULL);
2079-
20802078
write_backup_filelist(&current,arguments->files_list,arguments->from_root,
20812079
arguments->external_dirs);
20822080
/* update backup control file to update size info */
20832081
write_backup(&current, true);
2082+
2083+
prev_time=time(NULL);
20842084
}
20852085
}
20862086

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp