• unknown's avatar
    In non-debug builds, the log handler failed to read any log · c22b1cd7
    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.
    c22b1cd7
ma_loghandler.c 220 KB