1. 27 Oct, 2010 3 commits
  2. 24 Oct, 2010 1 commit
    • Igor Babaev's avatar
      Fixed LP bug #664508. · 0c53cd1e
      Igor Babaev authored
      When join buffers are employed no index scan for the first
      table with grouping columns can be used.
      
      
      
      mysql-test/r/join_cache.result:
        Added a test case for bug #664508.
        Sorted results for some other test cases.
      mysql-test/t/join_cache.test:
        Added a test case for bug #664508.
        Sorted results for some other test cases.
      0c53cd1e
  3. 22 Oct, 2010 2 commits
    • Igor Babaev's avatar
      Fixed LP bug #663818. · de69dbae
      Igor Babaev authored
      After the patch for bug 663840 had been applied the test case for
      bug 663818 triggered the assert introduced by this patch.
      It happened because the the patch turned out to be incomplete:
      the space needed for a key entry must be taken into account
      for the record written into the buffer, and, for the next record
      as well, when figuring out whether the record being written is
      the last for the buffer or not. 
      de69dbae
    • Igor Babaev's avatar
      Fixed LP bug #663840. · ca862231
      Igor Babaev authored
      When adding a new record into the join buffer that is employed by
      BNLH join algorithm the writing procedure JOIN_CACHE::write_record_data 
      checks whether there is enough space for the record in the buffer.
      When doing this it must take into account a possible new key entry
      added to the buffer. It might happen, as it has been demonstrated by
      the bug test case, that there is enough remaining space in the buffer
      for the record, but not for the additional key entry for this record.
      In this case the key entry overwrites the end of the record that might
      cause a crash or wrong results.
      Fixed by taking into account a possible addition of new key entry when
      estimating the remaining free space in the buffer.
      ca862231
  4. 18 Oct, 2010 5 commits
  5. 17 Oct, 2010 1 commit
    • Sergey Petrunya's avatar
      MariaDB 5.2 -> 5.2 post-merge fixes: · f75fd03e
      Sergey Petrunya authored
      - When building multiple-equalities for HAVING, don't set JOIN::cond_equal, set
        join_having_equal instead. Setting JOIN::cond_equal based on HAVING makes 
        equality propagation data self-inconsistent
      f75fd03e
  6. 14 Oct, 2010 4 commits
  7. 13 Oct, 2010 5 commits
    • Sergey Petrunya's avatar
      Merge-in Sanja's post-merge fix · aad8a298
      Sergey Petrunya authored
      aad8a298
    • Sergey Petrunya's avatar
      Merge MariaDB 5.2 -> MariaDB 5.3 · 508e75c2
      Sergey Petrunya authored
      - post-merge fixes
      508e75c2
    • Michael Widenius's avatar
      Fixes for bugs found by running test case for LP#608369 "Page: 1 Found wrong... · 01672cc0
      Michael Widenius authored
      Fixes for bugs found by running test case for LP#608369 "Page: 1 Found wrong page type 0' on CHECK TABLE EXTENDED"
      Fixed overflow when using long --debug=xxxxxx line.
      Fixed that "mysqld --disable-debug --debug" works.
      Ensure that MariaDB doesn't start if the Aria engine didn't start and we are using Aria for temporary tables.
      More DBUG_ASSERT() and more info in debug log.
      
      
      dbug/dbug.c:
        Fixed crash in mysqld caused by an overflow when using long --debug=xxxxxx line
      sql/mysqld.cc:
        Fixed that "mysqld --disable-debug --debug" works.
        Documented myisam-recover=OFF option
      storage/maria/ha_maria.cc:
        Ensure that MariaDB doesn't start if the Aria engine didn't start and we are using Aria for temporary tables.
      storage/maria/ma_delete.c:
        Added missing write of changed key on node page.
        This could fix LP#608369 "Page: 1 Found wrong page type 0' on CHECK TABLE EXTENDED"
        Changed so that we log page numbers (not positions)
        Added KEY_OP_DEBUG_2 log entry to get more debug information into the log
      storage/maria/ma_key_recover.c:
        Changed so that we log page numbers (not positions)
        In case of wrong page information after index_redo, dump pages to debug log
      storage/maria/ma_loghandler.h:
        Added KEY_OP_DEBUG_2
      storage/maria/ma_search.c:
        Changed so that we log page numbers (not positions)
      storage/maria/ma_write.c:
        Changed so that we log page numbers (not positions)
      01672cc0
    • Sergey Petrunya's avatar
      More post-merge test result updates (2). · 49ae85af
      Sergey Petrunya authored
      49ae85af
    • unknown's avatar
      version of mysqld changed. · 23de53f5
      unknown authored
      23de53f5
  8. 12 Oct, 2010 3 commits
  9. 10 Oct, 2010 3 commits
  10. 08 Oct, 2010 1 commit
  11. 07 Oct, 2010 2 commits
    • Michael Widenius's avatar
      Fixes some bug in Aria recovery: · 2f85f78d
      Michael Widenius authored
      - _ma_apply_redo_index: Assertion `page_offset != 0 && page_offset + length <= page_length' failed
      Fixes one bug and one log assert when inserting rows:
      - _ma_log_split: Assertion `org_length <= info->s->max_index_block_size' failed
      - write_block_record:  Assertion '(data_length < MAX_TAIL_SIZE(block_size)' failed
      Mark in recovery log where _ma_log_add() calls was done (for better debugging).
      
      storage/maria/ma_bitmap.c:
        Don't write a head part on a tail page. (Caused an assert in write_block_record())
      storage/maria/ma_delete.c:
        Mark in recovery log where _ma_log_add() calls was done
      storage/maria/ma_key_recover.c:
        Mark in recovery log where _ma_log_add() calls was done
        Fixed not handled logging case for overfull index pages.
      storage/maria/ma_key_recover.h:
        Mark in recovery log where _ma_log_add() calls was done
      storage/maria/ma_loghandler.h:
        Mark in recovery log where _ma_log_add() calls was done
      storage/maria/ma_rt_key.c:
        Mark in recovery log where _ma_log_add() calls was done
      storage/maria/ma_write.c:
        Mark in recovery log where _ma_log_add() calls was done.
        Fixed wrong call to _ma_split_page() for overfull pages
      2f85f78d
    • Igor Babaev's avatar
  12. 06 Oct, 2010 4 commits
  13. 04 Oct, 2010 1 commit
    • Igor Babaev's avatar
      Applied the fix for bug #54235 taken from one of the mysql trees. · f1d42ec9
      Igor Babaev authored
      The fix aligns join_null_complements() with join_matching_records()
      making both call generate_full_extensions().
      There should not be any difference between how the WHERE clause
      is applied to NULL-complemented records from a partial join and how
      it is applied to other partially joined records:the latter happens in
      join_matching_records(), precisely in generate_full_extensions().
      f1d42ec9
  14. 03 Oct, 2010 1 commit
  15. 02 Oct, 2010 1 commit
  16. 01 Oct, 2010 3 commits
    • Igor Babaev's avatar
      Merge · 7599ebeb
      Igor Babaev authored
      7599ebeb
    • Igor Babaev's avatar
      Fixed bug #54539. · 4bc234f3
      Igor Babaev authored
      Added a possibility not to factor out the condition pushed to
      the access index out of the condition pushed to a joined table.
      This is useful for the condition pushed to the index when a hashed
      join buffer for BKA is employed. In this case the index condition
      may be false for some, but for all records with the same key.
      So the condition must be checked not only after index lookup,
      but after fetching row data as well, and it makes sense not to 
      factor out the condition from the condition checked after reading
      row data,
      The bug happened because the condition pushed to an index always
      was factor out from the condition pushed to the accessed table. 
      
      ******
      Fixed bug #54539.
      Added a possibility not to factor out the condition pushed to
      the access index out of the condition pushed to a joined table.
      This is useful for the condition pushed to the index when a hashed
      join buffer for BKA is employed. In this case the index condition
      may be false for some, but for all records with the same key.
      So the condition must be checked not only after index lookup,
      but after fetching row data as well, and it makes sense not to 
      factor out the condition from the condition checked after reading
      row data,
      The bug happened because the condition pushed to an index always
      was factor out from the condition pushed to the accessed table. 
      4bc234f3
    • Igor Babaev's avatar
      Fixed bug #54539. · 1320f607
      Igor Babaev authored
      Added a possibility not to factor out the condition pushed to
      the access index out of the condition pushed to a joined table.
      This is useful for the condition pushed to the index when a hashed
      join buffer for BKA is employed. In this case the index condition
      may be false for some, but for all records with the same key.
      So the condition must be checked not only after index lookup,
      but after fetching row data as well, and it makes sense not to 
      factor out the condition from the condition checked after reading
      row data,
      The bug happened because the condition pushed to an index always
      was factor out from the condition pushed to the accessed table. 
      1320f607