Skip to content

Commit dafbd50

Browse files
committed
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.
1 parent 8d834cd commit dafbd50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unittest/sql/mf_iocache-t.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ void mdev17133()
326326
MY_MIN(sizeof(buf_o),
327327
info.end_of_file + eof_block_size +
328328
// plus 25% of block for randomization to the average
329-
(eof_block_size/4 - rand() % (eof_block_size/2)));
329+
eof_block_size/4 - rand() % (eof_block_size/2));
330330

331331
// read a chunk by blocks of variable size read_iter times
332332
// the last block completes the current chunk

0 commit comments

Comments
 (0)