• Narayanan V's avatar
    Bug#42790 Test 'main.innodb' fails from "InnoDB: Error: in ALTER TABLE" · 31443a6f
    Narayanan V authored
          
    The problem here seem to be that when mysql
    is redirecting stderr to a file, stderr becomes 
    buffered, whereas it is unbuffered by definition.
    
    The solution is to unbuffer it by setting buffer
    to null.
    
    sql/log.cc:
      use setbuf(stderr, NULL) to set the buffer to null.
    sql/mysqld.cc:
      use setbuf(stderr, NULL) to set the buffer to null.
    31443a6f
mysqld.cc 314 KB