• unknown's avatar
    BUG#23196 - MySQL server does not exit / shutdown when · d472978b
    unknown authored
                storage engine returns errno 12
    
    If there is not enough memory to store or update blob record
    (while allocating record buffer), myisam marks table as crashed.
    
    With this fix myisam attempts to roll an index back and return
    an error, not marking a table as crashed.
    
    Affects myisam tables with blobs only. No test case for this fix.
    
    
    myisam/mi_dynrec.c:
      If there is not enough memory to store or update blob record
      (while allocating record buffer), return HA_ERR_OUT_OF_MEM
      instead of ENOMEM. In this case storage engine can simply
      roll an index back and return an error, not marking table
      as crashed.
    myisam/mi_update.c:
      In some cases do not mark a table as crashed if we run out of
      memory. Instead roll an index back and return an error. These
      cases are signalled with my_errno set to HA_ERR_OUT_OF_MEM.
    myisam/mi_write.c:
      In some cases do not mark a table as crashed if we run out of
      memory. Instead roll an index back and return an error. These
      cases are signalled with my_errno set to HA_ERR_OUT_OF_MEM.
    d472978b
mi_update.c 6.92 KB