• unknown's avatar
    This patch is a part of work on bug #5731 "key_buffer_size not properly restricted to 4GB". · 76c19c74
    unknown authored
      
    The patch limits read_buffer_size and read_rnd_buffer_size by 2 GB on all platforms for the following reasons:
      
    - I/O code in mysys, code in mf_iocache.c and in some storage engines do not currently work with sizes > 2 GB for those buffers
    - even if the above had been fixed, Windows POSIX read() and write() calls are not 2GB-safe, so setting those buffer to sizes > 2GB would not work correctly on 64-bit Windows.
    
    
    include/my_global.h:
      Removed SSIZE_MAX definition because it's not neeeded anymore.
    sql/mysqld.cc:
      Limit read_buffer_size and read_rnd_buffer_size by 2 GB on all platforms.
    76c19c74
bdb_notembedded.result 1.21 KB