1. 24 Nov, 2008 3 commits
    • Guilhem Bichot's avatar
      Under Windows one can get \ instead of / in file names in error messages (fix... · 1889e8b0
      Guilhem Bichot authored
      Under Windows one can get \ instead of / in file names in error messages (fix for pushbuild warning)
      
      mysql-test/lib/mtr_report.pl:
        Under Windows one can get \ instead of / in file names in error messages
      1889e8b0
    • unknown's avatar
      merge · ef5d4983
      unknown authored
      ef5d4983
    • unknown's avatar
      Prevent reenabling logging by thread which tries to lock table used by bulk insert. · 094d92e2
      unknown authored
            Scenario of the BUG#40731 ("Maria: hang (probably in page cache) under concurrency"):
            T1: Disable logging for the table
            T1: Start inserting into the table
            T2: Tries to lock the table so waits.
            T2: Tries unlock and relock during the process see that the table has disabled logging and reenables it
            T1: Got DBUG_ASSERT because suddenly start use table with transaction switched on which is not expected during bulk insert
      
      storage/maria/ma_pagecache.c:
        Page type print added for debugging purposes.
      storage/maria/ma_recovery.c:
        Check that it was this thred which switched off logging (transactional mode).
      storage/maria/maria_def.h:
        Flag for controling which thread switched off transactiona mode for the table added.
      094d92e2
  2. 22 Nov, 2008 1 commit
  3. 21 Nov, 2008 1 commit
  4. 20 Nov, 2008 1 commit
    • Guilhem Bichot's avatar
      During Maria's checkpoint, use the proper mutex to read transaction's short_id · 8d96bcda
      Guilhem Bichot authored
      storage/maria/trnman.c:
        During Maria's checkpoint, we walk the list of active transactions; in this list we may find a transaction with a short_id of 0 which means "uninitialized" (is being created right now) and want to ignore this transaction. Such short_id is set under trn->state_lock, so use this mutex to reliably read short_id during checkpoint.
      8d96bcda
  5. 12 Nov, 2008 2 commits
  6. 11 Nov, 2008 1 commit
  7. 10 Nov, 2008 3 commits
  8. 07 Nov, 2008 4 commits
  9. 06 Nov, 2008 17 commits
  10. 05 Nov, 2008 7 commits
    • Mattias Jonsson's avatar
      f8588915
    • Michael Widenius's avatar
      Fix for bug: Bug #40391 Maria deadlock in trnman_get_min_trid , trnman_end_trn · 4150dfda
      Michael Widenius authored
      storage/maria/trnman.c:
        Store min used trid in a global variable and change trnman_get_min_trid() to return this variable without using a mutex.
        This is safe as trnman_get_min_trid() is used for trid optimization and all algoritms will work even if it returns a slightly older trid.
        
        Also ensure that LOCK_trn_list is unlocked in trnman_new_trn() in the very unlikely case that lf_hash_get_pins() fails
      4150dfda
    • Evgeny Potemkin's avatar
      Merged fix for the bug#37870. · 8d75510e
      Evgeny Potemkin authored
      8d75510e
    • Mattias Jonsson's avatar
      merge · 8a544f2a
      Mattias Jonsson authored
      8a544f2a
    • Mattias Jonsson's avatar
      merge · 7c5d066b
      Mattias Jonsson authored
      7c5d066b
    • Evgeny Potemkin's avatar
      Bug#37870: Usage of uninitialized value caused failed assertion. · 3c49cb07
      Evgeny Potemkin authored
      The convert_constant_item function converts a constant to integer using
      field for condition like 'field = a_constant'. In some cases the
      convert_constant_item is called for a subquery when outer select is already
      being executed, so convert_constant_item saves field's value to prevent its
      corruption. For EXPLAIN and at the prepare phase field's value isn't
      initialized yet, thus when convert_constant_item tries to restore saved
      value it fails assertion.
      
      Now the convert_constant_item doesn't save/restore field's value if it's
      haven't been read yet. Outer constant values are always saved.
      
      mysql-test/r/explain.result:
        Added a test case for the bug#37870.
      mysql-test/t/explain.test:
        Added a test case for the bug#37870.
      sql/item_cmpfunc.cc:
        Bug#37870: Usage of uninitialized value caused failed assertion.
        Now the convert_constant_item doesn't save/restore field's value if it's
        haven't been read yet. Outer constant values are always saved.
      3c49cb07
    • Mattias Jonsson's avatar
      merge · 74f678d8
      Mattias Jonsson authored
      74f678d8