• unknown's avatar
    Fix for bug in log handler observed when running maria-big · d783c011
    unknown authored
    and then maria-connect under Windows 32-bit Visual Studio 2003.
    Build of all Maria unit tests under Windows.
    
    
    storage/maria/ma_loghandler.c:
      Assertion contributed by Sanja. Working around my_stat() bug on Windows
      (st_size is long i.e. 32-bit signed, the file was slightly bigger than
      2GB, so st_size was negative, TRANSLOG_PAGE_SIZE was int, so the
      comparison was done using long, so st_size was still negative in
      the comparison, which was incorrect). Two fixes: cast st_size to uint32
      (belt) and make TRANSLOG_PAGE_SIZE unsigned (suspenders).
      Of course 'long' is not enough for files >=4GB, but all log files of
      Maria are <4GB. The general problem of my_stat() has been passed on to
      our Windows team.
    storage/maria/ma_loghandler.h:
      use unsigned ints for constants which represent sizes of pages, files...
    storage/maria/unittest/CMakeLists.txt:
      a few unit tests were not built under Windows
    d783c011
ma_loghandler.h 15 KB