Commit dafbd50e authored by Andrei Elkin's avatar Andrei Elkin

MDEV-17133 follow-up patch to fix mf_iocache-t unittest

 which did not always correctly simulated io-cache::end_of_file.
The error was caused by implicit cast to unsigned of an intemediate term
in a formula.
parent 8d834cd0
......@@ -326,7 +326,7 @@ void mdev17133()
MY_MIN(sizeof(buf_o),
info.end_of_file + eof_block_size +
// plus 25% of block for randomization to the average
(eof_block_size/4 - rand() % (eof_block_size/2)));
eof_block_size/4 - rand() % (eof_block_size/2));
// read a chunk by blocks of variable size read_iter times
// the last block completes the current chunk
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment