• Tor Didriksen's avatar
    Bug #36022 please log more information about "Sort aborted" queries · 207e5321
    Tor Didriksen authored
    Write an additional warning message to the server log, 
    explaining why a sort operation is aborted.
    
    The output in mysqld.err will look something like:
    110127 15:07:54 [ERROR] mysqld: Sort aborted: Out of memory (Needed 24 bytes)
    110127 15:07:54 [ERROR] mysqld: Out of sort memory, consider increasing server sort buffer size
    110127 15:07:54 [ERROR] mysqld: Sort aborted: Out of sort memory, consider increasing server sort buffer size
    110127 15:07:54 [ERROR] mysqld: Sort aborted: Incorrect number of arguments for FUNCTION test.f1; expected 0, got 1
    
    If --log-warn=2 is enabled, we output information about host/user/query as well.
    207e5321
filesort_debug.result 658 Bytes