Commit 3aaa0f60 authored by unknown's avatar unknown

Comparison between signed and unsigned fixed.


storage/maria/ma_loghandler.c:
  Fixed comparison of signed and unsigned.
parent 17b90389
......@@ -2608,9 +2608,9 @@ translog_check_sector_protection(uchar *page, TRANSLOG_FILE *file)
only if it is old value, i.e. the sector was not written.
*/
if (((test < current) &&
(0xFFL - current + test > DISK_DRIVE_SECTOR_SIZE / 3)) ||
((uint)(0xFFL - current + test) > DISK_DRIVE_SECTOR_SIZE / 3)) ||
((test >= current) &&
(test - current > DISK_DRIVE_SECTOR_SIZE / 3)))
((uint)(test - current) > DISK_DRIVE_SECTOR_SIZE / 3)))
{
if (translog_recover_page_up_to_sector(page, offset))
DBUG_RETURN(1);
......
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