fix bug: modifying system time(to the past) will cause the flushing-dirty-page thread to suspend

This commit is contained in:
wuyuechuan
2021-03-03 20:14:20 +08:00
parent 84c66025fe
commit c90e0dcf0f
2 changed files with 2 additions and 1 deletions

View File

@ -748,7 +748,7 @@ static int64 get_bgwriter_sleep_time()
} else {
time_diff = 0;
}
time_diff = MIN(time_diff, u_sess->attr.attr_storage.BgWriterDelay);
return time_diff;
}

View File

@ -688,6 +688,7 @@ static int64 get_pagewriter_sleep_time()
} else {
time_diff = 0;
}
time_diff = MIN(time_diff, u_sess->attr.attr_storage.pageWriterSleep);
return time_diff;
}