mirror of
https://github.com/upa/mscp.git
synced 2026-02-13 16:44:43 +08:00
fix error handling when scan thread failed.
set chunk pool to fill to invoke copy threads when scan failed.
This commit is contained in:
@@ -427,16 +427,14 @@ void *mscp_scan_thread(void *arg)
|
||||
list_splice_tail(&tmp, m->path_list.prev);
|
||||
}
|
||||
|
||||
chunk_pool_set_filled(&m->cp);
|
||||
|
||||
mpr_info(m->msg_fp, "walk source path(s) done\n");
|
||||
|
||||
chunk_pool_set_filled(&m->cp);
|
||||
m->ret_scan = 0;
|
||||
return NULL;
|
||||
|
||||
err_out:
|
||||
chunk_pool_set_filled(&m->cp);
|
||||
m->ret_scan = -1;
|
||||
mscp_stop_copy_thread(m);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user