main: fix livelock at end of sync

Only observed on very fast hardware.
Leaving the loop may unnecessarily take a long time.
This commit is contained in:
Thomas Schoebel-Theuer 2016-03-07 15:10:33 +01:00
parent 04b2f2120e
commit e7f41563f2

View File

@ -4501,7 +4501,7 @@ static int make_sync(void *buf, struct mars_dent *dent)
do_start ? switch_path : "",
copy_path, dent->d_parent->d_path, argv, find_key(rot->msgs, "inf-sync"),
start_pos, end_pos,
rot->sync_finish_stamp.tv_sec != 0,
true,
mars_fast_fullsync > 0,
true, false, &copy);
if (copy) {