mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-02 12:57:14 -05:00
Protect rate limiter state updates with a mutex to prevent data races
This commit is contained in:
parent
b4a694bb10
commit
eebb3943e5
4 changed files with 34 additions and 1 deletions
|
|
@ -2147,6 +2147,8 @@ bail:
|
|||
free(buffer_alloc);
|
||||
free(buffer);
|
||||
|
||||
bw_done(&bw);
|
||||
|
||||
/* fail if some error are present after the run */
|
||||
if (fix) {
|
||||
if (state->opt.expect_unrecoverable) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue