mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Fixes again the parity size computation when reading.
This commit is contained in:
parent
235a9cbbf1
commit
d87f371a1d
1 changed files with 1 additions and 1 deletions
2
state.c
2
state.c
|
|
@ -981,7 +981,7 @@ void state_read(struct snapraid_state* state)
|
|||
hash = oathash32(hash, v_pos);
|
||||
|
||||
/* keep track of the max block number used in parity */
|
||||
if (v_pos > blockmax)
|
||||
if (v_pos + 1 > blockmax)
|
||||
blockmax = v_pos + 1;
|
||||
|
||||
/* read the hash only for 'blk/chg', and not for 'new' */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue