• unknown's avatar
    BUG#21675 - engine=archive 2GB file limit, when reached mysqld restarts on any query · 9e6eaaf0
    unknown authored
    If mysqld is linked against system installed zlib (which is likely compiled w/o
    LFS) and archive table exceedes 2G, mysqld will likely be terminated with SIGXFSZ.
    
    Prior to actual write perform a check if there is space in data file. This fixes
    abnormal process termination with SIGXFSZ.
    
    No test case for this bugfix.
    
    
    sql/ha_archive.cc:
      Prior to actual write perform a check if there is space in data file. This fixes
      abnormal process termination with SIGXFSZ.
    sql/ha_archive.h:
      Added approximate archive data file size to archive share.
    9e6eaaf0
ha_archive.h 4.05 KB