mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
Correct when we log interrupted synchronization.
MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
This commit is contained in:
parent
eba09893fd
commit
b9cf0cf5fa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=211897
@ -1507,18 +1507,16 @@ sync_thread(void *arg __unused)
|
|||||||
|
|
||||||
ncomps = HAST_NCOMPONENTS;
|
ncomps = HAST_NCOMPONENTS;
|
||||||
dorewind = true;
|
dorewind = true;
|
||||||
synced = -1;
|
synced = 0;
|
||||||
|
offset = -1;
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
mtx_lock(&sync_lock);
|
mtx_lock(&sync_lock);
|
||||||
if (synced == -1)
|
if (offset >= 0 && !sync_inprogress) {
|
||||||
synced = 0;
|
|
||||||
else if (!sync_inprogress) {
|
|
||||||
pjdlog_info("Synchronization interrupted. "
|
pjdlog_info("Synchronization interrupted. "
|
||||||
"%jd bytes synchronized so far.",
|
"%jd bytes synchronized so far.",
|
||||||
(intmax_t)synced);
|
(intmax_t)synced);
|
||||||
hook_exec(res->hr_exec, "syncintr",
|
hook_exec(res->hr_exec, "syncintr", res->hr_name, NULL);
|
||||||
res->hr_name, NULL);
|
|
||||||
}
|
}
|
||||||
while (!sync_inprogress) {
|
while (!sync_inprogress) {
|
||||||
dorewind = true;
|
dorewind = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user