• unknown's avatar
    In non-debug builds, the log handler failed to read any log · 59259dd1
    unknown authored
    record (for example in ma_test_loghandler-t). Reason was
    wrongly matched () in DBUG.
    
    
    storage/maria/ma_loghandler.c:
      Wrongly matched parenthesis:
      DBUG_PRINT(keyword, argslist) expands to roughly
      _db_doprnt arglist;
      So DBUG_PRINT("enter",(a);
      b;
      c);
      expands to roughly
      _db_doprnt(a);b;c;
      which is valid code. Except that in non-debug builds, DBUG_PRINT(
      expands to nothing so the wrongly "included" code is thrown away,
      leading to some members of "scanner" to not be initialized.
    59259dd1
ma_loghandler.c 220 KB