1. 03 Nov, 2006 1 commit
    • unknown's avatar
      Bug#16228/Bug#20697 - related. · 5a7bbcd5
      unknown authored
      Bug#23831  deadlock not noticed
      
      RBR bug in that when replicated msta (multi-statement-trans-action) deadlocks
      with a local at write row event or gets timed-out, the event handler did not return
      the correct error code.
      Wrong error code stops slave sql thread instead of to proceed with
      rollback and replay.
      
      The correct code is typed in error log and stored for error handling rotine
      to conduct rollback and replay of the transaction. The handling for the rbr
      remains the same as for the sbr events.
      Particularly, timed-out transaction still is rolled back - look at the related bugs.
      
      
      mysql-test/extra/rpl_tests/rpl_deadlock.test:
        fixing deadlock stimulation, commented on potential race condition and left todo.
      mysql-test/r/rpl_deadlock_innodb.result:
        changed
      sql/log_event.cc:
        returning the correct errors for write row event type;
        storing DL, TO error codes to check at grand-caller in step with sbr.
      5a7bbcd5
  2. 30 Oct, 2006 2 commits
  3. 25 Oct, 2006 1 commit
  4. 23 Oct, 2006 3 commits
  5. 20 Oct, 2006 6 commits
  6. 19 Oct, 2006 19 commits
  7. 18 Oct, 2006 3 commits
    • unknown's avatar
      Merge mysql.com:/data0/bk/mysql-5.0 · ea39ca34
      unknown authored
      into  mysql.com:/data0/bk/mysql-5.0-kt
      
      
      ea39ca34
    • unknown's avatar
      BUG#23175 - MYISAM crash/repair failed during repair · 48cf65c0
      unknown authored
      Repair table could crash a server if there is not sufficient
      memory (myisam_sort_buffer_size) to operate. Affects not only
      repair, but also all statements that use create index by sort:
      repair by sort, parallel repair, bulk insert.
      
      Return an error if there is not sufficient memory to store at
      least one key per BUFFPEK.
      
      Also fixed memory leak if thr_find_all_keys returns an error.
      
      
      myisam/sort.c:
        maxbuffer is number of BUFFPEK-s for repair. It is calculated
        as records / keys. keys is number of keys that can be stored
        in memory (myisam_sort_buffer_size). There must be sufficient
        memory to store both BUFFPEK-s and keys. It was checked
        correctly before this patch. However there is another
        requirement that wasn't checked: there must be sufficient
        memory for at least one key per BUFFPEK, otherwise repair
        by sort/parallel repair cannot operate.
        
        Return an error if there is not sufficient memory to store at
        least one key per BUFFPEK.
        
        Also fixed memory leak if thr_find_all_keys returns an error.
      mysql-test/r/repair.result:
        A test case for BUG#23175.
      mysql-test/t/repair.test:
        A test case for BUG#23175.
      48cf65c0
    • unknown's avatar
      Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-5.1-kt · ddee02ec
      unknown authored
      into  mysql.com:/home/hf/mysql-5.1.mrg
      
      
      ddee02ec
  8. 17 Oct, 2006 5 commits