1. 06 Feb, 2008 4 commits
    • unknown's avatar
      ma_control_file.c: · 3e9e629c
      unknown authored
        SCCS merged
      
      
      storage/maria/ma_control_file.c:
        SCCS merged
      3e9e629c
    • unknown's avatar
      Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-maria · 20bbcc35
      unknown authored
      into  mysqlwin32.:C:/mysql-maria
      
      
      mysql-test/include/wait_until_connected_again.inc:
        Auto merged
      storage/maria/ha_maria.cc:
        Auto merged
      storage/maria/ma_blockrec.c:
        Auto merged
      storage/maria/ma_check.c:
        Auto merged
      storage/maria/ma_loghandler.c:
        Auto merged
      20bbcc35
    • unknown's avatar
      Fixes for running maria-recovery*.test and maria-purge.test under · 7300af84
      unknown authored
      Windows.
      
      
      include/my_dbug.h:
        a DBUG expression to force a flush of the trace file then an abort of the process
      mysql-test/include/wait_until_connected_again.inc:
        mysqladmin waits for pid file to be gone only under Unix; so
        maria_empty_logs.inc cannot wait for mysqld to be gone, so
        wait_until_connected_again.inc may send its "show status" to a 
        not-yet-dead server hence the 1053 error ("server shutdown in progress")
      mysys/my_thr_init.c:
        overload abort() under Windows, to not have an annoying CRT popup
        ("ignore/abort/retry" buttons) each time a test intentionally
        crashes mysqld
      sql/handler.cc:
        use new expression
      sql/log.cc:
        use new expression
      sql/mysql_priv.h:
        use new expression
      storage/maria/ha_maria.cc:
        use new expression
      storage/maria/ma_blockrec.c:
        use new expression
      storage/maria/ma_check.c:
        use new expression
      storage/maria/ma_checkpoint.c:
        use new expression
      storage/maria/ma_control_file.c:
        Can't yet lock control file under Windows (test suite problems,
        plus concerns about stray lock preventing a fast restart after crash).
      storage/maria/ma_loghandler.c:
        A file which should be closed, otherwise translog_purge() (the caller)
        cannot delete logs.
      7300af84
    • unknown's avatar
      Lock control file also when we have created it in this run. Assertions. · 7223b4ed
      unknown authored
      
      storage/maria/ma_control_file.c:
        Even if the file is just created we have to lock it, otherwise some
        other Maria instance may write to it.
      storage/maria/ma_pagecache.c:
        catch too big page numbers when they enter the pagecache; this helps
        debugging BUG#34250.
      7223b4ed
  2. 04 Feb, 2008 2 commits
    • unknown's avatar
      Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-maria · 99b3d018
      unknown authored
      into  mysqlwin32.:C:/mysql-maria
      
      
      storage/maria/unittest/ma_test_recovery.pl:
        Auto merged
      99b3d018
    • unknown's avatar
      Minor test fixes · 0543c5f0
      unknown authored
      
      mysql-test/include/wait_until_connected_again.inc:
        On Windows, mysqladmin does not wait on pid file when it has shut down
        mysqld. Thus, in maria_empty_logs.inc, wait_until_connected_again.inc
        can run while mysqld is shutting down (has not finished) and so
        get "shutdown in progress" instead of "can't connect".
      mysql-test/t/maria-recovery-big.test:
        it is a big test
      storage/maria/unittest/ma_test_recovery.pl:
        We want to see the result of 'cmp', like in the shell version
      0543c5f0
  3. 02 Feb, 2008 1 commit
  4. 01 Feb, 2008 4 commits
    • unknown's avatar
      fix for recovery unit test under Unix · 6483b845
      unknown authored
      
      storage/maria/unittest/ma_test_recovery.pl:
        Perl magic does something unexpected with $suffix is ""
      6483b845
    • unknown's avatar
      Fix for Windows-specific bugs: · 4a1763e4
      unknown authored
      - one which led REDO_INSERT_ROW_BLOBS to fail to apply
      - one excess close ("-1 file left open")
      Don't need maria-path option / environment variable.
      Fixes for ma_test_all-t to run under Windows.
      Port of ma_test_recovery to Perl, written by Jani.
      
      
      storage/maria/unittest/ma_test_recovery.expected:
        Rename: storage/maria/ma_test_recovery.expected -> storage/maria/unittest/ma_test_recovery.expected
      mysys/my_pread.c:
        Fix for Windows-specific bug (maria_read_log -a failed during
        ma_test_all-t): Windows does not have pread() so the branch setting
        HA_ERR_FILE_TOO_SHORT was not compiled in, broke applying of
        REDO_INSERT_ROW_BLOBS. After fixing that, it appeared that in my
        Windows machine, errno is not changed in case of EOF; as we read it
        we have to reset it at start.
        The changed to readbytes!=-1 is to detect EOF
      mysys/my_read.c:
        The change to readbytes!=-1 is to detect EOF
      storage/maria/ma_loghandler.c:
        Fix for Windows-specific bug: as we don't open the directory
        we should not close it.
      storage/maria/ma_page.c:
        This is C, cannot declare variable after instruction.
      storage/maria/ma_test_recovery:
        ma_test_recovery.expected moved
      storage/maria/unittest/ma_test_all-t:
        Can now safely guess maria_path so don't need the command-line option
        or environment variable. Port to Windows (.exe, different locations
        of executables); can guess suffix, don't need --suffix.
      storage/maria/unittest/ma_test_recovery.pl:
        Perl version of ma_test_recovery, written by Jani. Will deprecate the
        shell version.
      4a1763e4
    • unknown's avatar
      Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-maria · 16f92309
      unknown authored
      into  a88-113-38-195.elisa-laajakaista.fi:/home/my/bk/mysql-maria
      
      
      16f92309
    • unknown's avatar
      Very minor changes in ma_test_recovery test suite. · d9b10805
      unknown authored
      
      storage/maria/ma_test_recovery.expected:
        Removed a white space from a list of tests.
        
        This was originally unintentional and change makes it easier to
        port ma_test_recovery to Perl.
      storage/maria/ma_test_recovery:
        Removed a white space from a list of tests.
      d9b10805
  5. 31 Jan, 2008 6 commits
    • unknown's avatar
      Minor changes. New description in SHOW ENGINES for Maria. · 7323df78
      unknown authored
      Test for BUG#34106 "auto_increment is reset to 1 when table is recovered from crash"
      (fixed by Monty yesterday)
      
      
      mysql-test/r/maria-recovery.result:
        result, which is correct (before pulling Monty's fix for BUG#34106,
        we got a warning about auto_increment in CHECK TABLE (done in
        maria-verify-recovery.inc), no AUTO_INCREMENT clause in
        SHOW CREATE TABLE, and a failure of the last INSERT.
      mysql-test/r/maria.result:
        result
      mysql-test/t/maria-recovery.test:
        Test for BUG#34106
      mysql-test/t/maria.test:
        look at what is reported in SHOW ENGINES
      mysys/my_pread.c:
        changed my mind: if Count argument is >4GB, we'll surely see a segfault
        in the pread() call when it tries to read 4GB from memory, so no need
        to print it in ulonglong format (saves a function call).
      mysys/my_read.c:
        changed my mind: if Count argument is >4GB, we'll surely see a segfault
        in the pread() call when it tries to read 4GB from memory, so no need
        to print it in ulonglong format (saves a function call).
      mysys/my_write.c:
        changed my mind: if Count argument is >4GB, we'll surely see a segfault
        in the pread() call when it tries to read 4GB from memory, so no need
        to print it in ulonglong format (saves a function call).
      storage/maria/ha_maria.cc:
        Description representing the current reality. This can be changed later
      storage/maria/ma_page.c:
        When reading the new key_del from a page on disk, if there is a bug
        (like BUG#34062) this key_del could be wrong, we try to catch if it's
        out of the key file.
      storage/maria/ma_pagecache.c:
        - no truncation of page's number in DBUG_PRINT (useful for BUG#34062)
        - page_korr instead of uint5korr
      storage/maria/ma_recovery.c:
        page_korr instead of uint5korr
      storage/maria/plug.in:
        Description representing the current reality. This can be changed later.
      7323df78
    • unknown's avatar
      Merge abelkin@bk-internal.mysql.com:/home/bk/mysql-maria · 8c5cd4f8
      unknown authored
      into  desktop.sanja.is.com.ua:/home/bell/tmp/work-maria-assert
      
      
      storage/maria/ma_loghandler.c:
        Auto merged
      8c5cd4f8
    • unknown's avatar
      Small changes for unit tests. · d2f47638
      unknown authored
      
      storage/maria/unittest/Makefile.am:
        fixed names of tests.
      storage/maria/unittest/ma_pagecache_consist.c:
        Some of pagecache multi-thread tests are not big.
        Fixed reporting of tests end (now under mutex protection).
      storage/maria/unittest/ma_test_loghandler-t.c:
        fixed layout to make blocks nof parameters more visible.
      d2f47638
    • unknown's avatar
      Fixed portability issue with comparing thread id · 4d1cb991
      unknown authored
      Fixed bug where return value 'error' was not set in case of error in pagecache
      Documented the open LOAD INDEX bug
      
      
      KNOWN_BUGS.txt:
        Added the problem with LOAD INDEX as a known bugs. Will fix this bug later this week
      storage/maria/ma_pagecache.c:
        Fixed portability issue with comparing thread id
        Fixed bug where return value 'error' was not set in case of error
      4d1cb991
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-maria · 0857a693
      unknown authored
      into  mysql.com:/home/my/mysql-maria
      
      
      mysys/my_pread.c:
        Auto merged
      mysys/my_read.c:
        Auto merged
      storage/maria/ha_maria.cc:
        Auto merged
      storage/maria/ma_blockrec.c:
        Auto merged
      storage/maria/ma_check.c:
        Auto merged
      storage/maria/ma_loghandler.c:
        Auto merged
      storage/maria/ma_page.c:
        Auto merged
      storage/maria/ma_write.c:
        Auto merged
      storage/maria/maria_chk.c:
        Auto merged
      storage/maria/maria_def.h:
        Auto merged
      0857a693
    • unknown's avatar
      Fixed bug in restoring auto-increment value in case of duplicate key with insert or update · ab0fa111
      unknown authored
      Fixed bug when calculating max_key_length that caused some ALTER TABLE to fail if MAX_ROWS was used.
      Use maria_block_size instead of MARIA_MIN_KEY_BLOCK_LENGTH
      Fixed bug when scanning table with BLOCK format for repair; If table was > bitmap coverage one page block was read twice which caused a lot of duplicate key errors
      Could not repeat Bug#34106 "auto_increment is reset to 1 when table is recovered from crash" after this patch.
      
      NOTE: This is an incompatible change, so one must do maria_chk -r on ones old Maria tables!
      Sorry, but this was needed to fix the bug with max_key_length and to be able to handle bigger key files with smaller key references
      
      
      cmd-line-utils/readline/readline.c:
        Fixed compiler warnings
      mysql-test/r/maria.result:
        Added more test of auto-increment handling
      mysql-test/t/maria.test:
        Added more test of auto-increment handling
      mysys/my_pread.c:
        Fixed wrong test
        Removed not needed tests (error is always 1 if readbytes != Count)
      mysys/my_read.c:
        Fixed wrong test
      storage/maria/ha_maria.cc:
        Disable LOAD INDEX until I got Sanja's extension to pagecache interface
      storage/maria/ma_blockrec.c:
        Ensure that info->last_auto_increment is reset properly
      storage/maria/ma_check.c:
        Fixed wrong printing of row number in case of duplicate key for --safe-repair
        Safety fix in recreate table so that Column numbers are given to maria_create() in original order
        Added missing HA_OPEN_FOR_REPAIR to maria_open()
        Fixed bug when scanning table with BLOCK format for repair; If table was > bitmap coverage one page block was read twice which caused a lot of duplicate key errors
      storage/maria/ma_create.c:
        Use correct value for how much free space there is on a key page
        Remember some missing table option when doing re-create.
        Removed optimization where last packed fields is unpacked; Caused problems for re-create.
      storage/maria/ma_delete.c:
        Ensure that info->last_auto_increment is reset properly
        Fix for update to restore autoincrement value on duplicate key
      storage/maria/ma_key_recover.c:
        Moved handling of restoring value of auto-increment in case of duplicate key from clr to undo
        This ensures the restoring works both for insert and update and also that this is symetrical to how the auto_increment value is stored
      storage/maria/ma_key_recover.h:
        Added new prototype
      storage/maria/ma_loghandler.c:
        Added hook to write_hook_for_undo_key_delete()
      storage/maria/ma_open.c:
        Fixed wrong calculation of max_key_file_length
      storage/maria/ma_page.c:
        Use maria_block_size instead of MARIA_MIN_KEY_BLOCK_LENGTH
        Increase internal buffer (safety fix)
      storage/maria/ma_search.c:
        Use maria_block_size instead of MARIA_MIN_KEY_BLOCK_LENGTH
        Note that this is an incompatible change, so one must do maria_chk -r on ones old Maria tables (sorry)
      storage/maria/ma_update.c:
        Ensure that info->last_auto_increment is reset properly
      storage/maria/ma_write.c:
        Ensure that info->last_auto_increment is reset properly
        Fix for update to restore autoincrement value on duplicate key
      storage/maria/maria_chk.c:
        Allow small page_buffer_size
        Fixed printing for --describe to better fit into 80 characters
      storage/maria/maria_def.h:
        Added comments
      ab0fa111
  6. 30 Jan, 2008 7 commits
    • unknown's avatar
      Merge abelkin@bk-internal.mysql.com:/home/bk/mysql-maria · caa0e9b1
      unknown authored
      into  desktop.sanja.is.com.ua:/home/bell/mysql/bk/work-maria-assert
      
      
      caa0e9b1
    • unknown's avatar
      The compiler warning fixed. · b51c819c
      unknown authored
      b51c819c
    • unknown's avatar
      Merge desktop.sanja.is.com.ua:/home/bell/mysql/bk/mysql-maria · 5bfcd9b7
      unknown authored
      into  desktop.sanja.is.com.ua:/home/bell/mysql/bk/work-maria-write
      
      
      storage/maria/ma_pagecache.c:
        Auto merged
      5bfcd9b7
    • unknown's avatar
      Fixed false assert which conrol sequental writing to disk in · 25bccab9
      unknown authored
       case of opening and closing loghandler without writing
       sometrhing in it.
      Fixed comment (sent_to_file was renamed to sent_to disk)
      Write log during shutdown in natural order.
      
      
      25bccab9
    • unknown's avatar
      Fixed thread specific ID. · 069178d7
      unknown authored
      Added support for delete by link.
      Aded level ("hits") management functions.
      
      
      storage/maria/ma_pagecache.h:
        Added support for delete by link.
        Aded level ("hits") management functions.
      storage/maria/unittest/ma_pagecache_single.c:
        Test of delete by link.
      069178d7
    • unknown's avatar
      Merge abelkin@bk-internal.mysql.com:/home/bk/mysql-maria · 211a9e72
      unknown authored
      into  desktop.sanja.is.com.ua:/home/bell/mysql/bk/mysql-maria
      
      
      storage/maria/ma_loghandler.c:
        Auto merged
      211a9e72
    • unknown's avatar
      Compiler warnings fixed. · dc365245
      unknown authored
      
      storage/maria/ma_loghandler.c:
        Compiler warning fixed.
      storage/maria/ma_test1.c:
        Compiler warning fixed.
      storage/maria/ma_test2.c:
        Compiler warning fixed.
      storage/maria/maria_chk.c:
        Compiler warning fixed.
      storage/maria/unittest/ma_control_file-t.c:
        Compiler warning fixed.
      storage/maria/unittest/ma_test_loghandler-t.c:
        Compiler warning fixed.
      storage/maria/unittest/ma_test_loghandler_first_lsn-t.c:
        Compiler warning fixed.
      storage/maria/unittest/ma_test_loghandler_max_lsn-t.c:
        Compiler warning fixed.
      storage/maria/unittest/ma_test_loghandler_multigroup-t.c:
        Compiler warning fixed.
      storage/maria/unittest/ma_test_loghandler_multithread-t.c:
        Compiler warning fixed.
      storage/maria/unittest/ma_test_loghandler_noflush-t.c:
        Compiler warning fixed.
      storage/maria/unittest/ma_test_loghandler_nologs-t.c:
        Compiler warning fixed.
      storage/maria/unittest/ma_test_loghandler_pagecache-t.c:
        Compiler warning fixed.
      storage/maria/unittest/ma_test_loghandler_purge-t.c:
        Compiler warning fixed.
      dc365245
  7. 29 Jan, 2008 8 commits
    • unknown's avatar
      Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-maria · 3563311b
      unknown authored
      into  gbichot4.local:/home/mysql_src/mysql-maria-monty
      
      
      mysql-test/t/maria-recovery.test:
        Auto merged
      storage/maria/ha_maria.cc:
        Auto merged
      storage/maria/ma_loghandler.c:
        Auto merged
      storage/maria/ma_pagecache.c:
        Auto merged
      3563311b
    • unknown's avatar
      Fix for BUG#34114 "maria_chk reports false error when several tables on · 2fcff898
      unknown authored
      command-line" and BUG#34062 "Maria table corruption on master".
      Use 5 bytes (instead of 4) to store page's number in the checkpoint
      record, to allow bigger table (1PB with maria-block-size=1kB).
      Help pushbuild not run out of memory by moving the portion of
      maria-recovery.test which generates lots of data into a -big.test.
      
      
      mysql-test/r/maria-recovery.result:
        result moved
      mysql-test/t/maria-recovery.test:
        piece which generates much data moved to maria-recovery-big.test
      mysys/my_pread.c:
        To fix BUG#34062, where a 1.1TB file was generated due to a wrong
        pwrite offset, it was useful to not lose precision on 'offset' in
        DBUG_PRINT, so that the crazy value is visible.
      mysys/my_read.c:
        To fix BUG#34062, where a 1.1TB file was generated due to a wrong
        pwrite offset, it was useful to not lose precision on 'offset' in
        DBUG_PRINT, so that the crazy value is visible.
      mysys/my_write.c:
        To fix BUG#34062, where a 1.1TB file was generated due to a wrong
        pwrite offset, it was useful to not lose precision on 'offset' in
        DBUG_PRINT, so that the crazy value is visible.
      storage/maria/ha_maria.cc:
        When starting a bulk insert, we throw away dirty index pages from the
        cache. Unique (non disabled) key insertions thus read out-of-date
        pages from the disk leading to BUG#34062 "Maria table corruption on
        master": a DELETE in procedure viewer_sp() had deleted all rows of
        viewer_tbl2 one by one, putting index page 1 into key_del; that page
        was thrown away at start of INSERT SELECT, then the INSERT SELECT
        needed a page to insert keys, looked at key_del, found 1, read page 1
        from disk, and its out-of-date content was used to set the new value of
        key_del (crazy value of 1TB), then a later insertion needed another
        index page, tried to read page at this crazy offset and failed, leading
        to corruption mark.
        The fix is to destroy out-of-date pages and make the state consistent
        with that, i.e. call maria_delete_all_rows().
      storage/maria/ma_blockrec.c:
        Special hook for UNDO_BULK_INSERT
      storage/maria/ma_blockrec.h:
        special hook for UNDO_BULK_INSERT
      storage/maria/ma_check.c:
        Fix for BUG#34114 "maria_chk reports false error when several tables on
        command-line": if the Nth (on the command line) table was BLOCK_RECORD
        it would start checks by using the param->record_checksum computed by
        checks of table N-1.
      storage/maria/ma_delete_all.c:
        comment
      storage/maria/ma_loghandler.c:
        special hook for UNDO_BULK_INSERT
      storage/maria/ma_page.c:
        comment
      storage/maria/ma_pagecache.c:
        page number is 5 bytes in checkpoint record now (allows bigger tables)
      storage/maria/ma_recovery.c:
        page number is 5 bytes in checkpoint record now
      storage/maria/ma_recovery_util.c:
        page number is 5 bytes now
      storage/maria/ma_write.c:
        typo
      mysql-test/r/maria-recovery-big.result:
        result is correct
      mysql-test/t/maria-recovery-big-master.opt:
        usual options for recovery tests
      mysql-test/t/maria-recovery-big.test:
        Moving out the big blob test to a -big test (it exhausts memory when
        using /dev/shm on certain machines)
      2fcff898
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-maria · e89cc606
      unknown authored
      into  janus.mylan:/usr/home/serg/Abk/mysql-maria
      
      
      e89cc606
    • unknown's avatar
      ma_test_recovery is not big · b9bab099
      unknown authored
      
      storage/maria/unittest/ma_test_all-t:
        Size doesn't matter or ma_test_recovery is not big
      b9bab099
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-maria · 57b7bdab
      unknown authored
      into  janus.mylan:/usr/home/serg/Abk/mysql-maria
      
      
      57b7bdab
    • unknown's avatar
      changes for big unit tests · db58a137
      unknown authored
      
      Makefile.am:
        make test-unit-big
      storage/maria/unittest/Makefile.am:
        support big unit tests
      storage/maria/unittest/ma_pagecache_consist.c:
        support big unit tests and other changes
      storage/maria/unittest/ma_pagecache_single.c:
        support big unit tests
      storage/maria/unittest/ma_test_all-t:
        support big unit tests and sub skip()
      storage/maria/unittest/ma_test_loghandler-t.c:
        support big unit tests
      unittest/unit.pl:
        don't ignore existing $MYTAP_CONFIG
      db58a137
    • unknown's avatar
      storage/maria/unittest/ma_test_all-t · 71eb292f
      unknown authored
          1. reasonable defaults for maria_path
          2. reasonable TAP-compatible output in non-verbose mode
      unittest/Makefile.am
          remove maria_path hack
      BitKeeper/etc/ignore@1.269
          added maria_log.00000* ma_test_recovery.output test?.MA?
      
      
      BitKeeper/etc/ignore:
        added maria_log.00000* ma_test_recovery.output test?.MA?
      storage/maria/unittest/ma_test_all-t:
        1. reasonable defaults for maria_path
        2. reasonable TAP-compatible output in non-verbose mode
      unittest/Makefile.am:
        remove maria_path hack
      71eb292f
    • unknown's avatar
      Fixed unused branch of page write call. · e13538dc
      unknown authored
      e13538dc
  8. 26 Jan, 2008 2 commits
    • unknown's avatar
      Merge desktop.sanja.is.com.ua:/home/bell/mysql/bk/mysql-maria · 1824f47a
      unknown authored
      into  desktop.sanja.is.com.ua:/home/bell/mysql/bk/work-maria-logdir
      
      
      1824f47a
    • unknown's avatar
      Support of moving logs in other directory then data root. · a1255fc2
      unknown authored
      Fixed typo in maria_read_log "help" output.
      Compilation warning on Mac OS fixed.
      
      
      mysql-test/include/maria_empty_logs.inc:
        Added support of moving maria log relatively
          to master data directory.
      mysql-test/include/maria_make_snapshot_for_feeding_recovery.inc:
        Added support of moving maria log relatively
          to master data directory.
      mysql-test/include/maria_verify_recovery.inc:
        Added support of moving maria log relatively
          to master data directory.
      mysql-test/t/maria-recovery-master.opt:
        Check of recovery with logs in other place.
      mysql-test/t/maria-recovery.test:
        Check of recovery with logs in other place.
      storage/maria/ha_maria.cc:
        Support of moving logs in other directory then data root.
      storage/maria/ma_loghandler.c:
        Compilation warning on Mac OS fixed.
      storage/maria/ma_static.c:
        Support of moving logs in other directory then data root.
      storage/maria/ma_test1.c:
        Support of moving logs in other directory then data root.
      storage/maria/maria_def.h:
        Support of moving logs in other directory then data root.
      storage/maria/maria_read_log.c:
        Support of moving logs in other directory then data root.
        Fixed typo in maria_read_log "help" output.
      a1255fc2
  9. 25 Jan, 2008 1 commit
  10. 23 Jan, 2008 1 commit
    • unknown's avatar
      Fixed bug when using maria_chk --safe-recover with packed tables · b40a6348
      unknown authored
      Fixed bug when using maria_chk --safe-recover and getting duplicated keys
      Fixed bug when using maria_pack --join
      
      
      storage/maria/ma_check.c:
        Fixed bug when using --safe-recover with packed tables
        Fixed bug when using --safe-recover and getting duplicated keys
      storage/maria/maria_pack.c:
        Fixed bug when using --join
      storage/maria/unittest/ma_test_all-t:
        Added test to check maria_pack --join
      b40a6348
  11. 22 Jan, 2008 1 commit
    • unknown's avatar
      Fixes for the remaining 'not-yet-fixed' bugs found by Guilhem when running all... · 7a4bd76a
      unknown authored
      Fixes for the remaining 'not-yet-fixed' bugs found by Guilhem when running all tests with maria engine and one bug in maria_pack reported by Martin:
      - Fix that query cache works with Maria
      - Fixed wrong calculation if min_key_length which casued some tables to assert in insert if key contained NULL
      - Restore auto_increment value if insert statement fails
      - Fixed rare bug that caused crash in maria_pack if buffer was flushed at wrong point in time
      
      
      configure.in:
        Added maria extension to distribution
      mysql-test/r/maria.result:
        More test cases to cover bugs found by Guilhem
      mysql-test/t/maria.test:
        More test cases to cover bugs found by Guilhem
      storage/maria/ha_maria.cc:
        Fix that query cache works with Maria
      storage/maria/ma_blockrec.c:
        Removed duplicate functionallity (already done in ma_pagecrc.c)
      storage/maria/ma_create.c:
        Fixed wrong calculation if min_key_length which casued some tables to assert in insert if key contained NULL
      storage/maria/ma_key_recover.c:
        Restore auto_increment value if insert statement fails
      storage/maria/maria_def.h:
        Added variables to track auto_increment changes to be able to restore it in case of duplicate key
      storage/maria/maria_pack.c:
        Fixed rare bug that caused crash if buffer was flushed at wrong point in time
      storage/maria/unittest/ma_test_all-t:
        Added option --abort-on-error
        Ordered help message
      7a4bd76a
  12. 21 Jan, 2008 3 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-maria · 5ffc919b
      unknown authored
      into  mysql.com:/home/my/mysql-maria
      
      
      mysql-test/r/maria.result:
        Auto merged
      mysql-test/t/maria.test:
        Auto merged
      sql/sql_table.cc:
        Auto merged
      storage/maria/ma_create.c:
        Auto merged
      storage/maria/ma_pagecrc.c:
        Auto merged
      5ffc919b
    • unknown's avatar
      Allow index on 'CHAR(0) NULL' columns · 5cca615c
      unknown authored
      Fixed error in Maria when using table with only CHAR(0) fields
      Fixed valgrind warning
      
      
      BitKeeper/etc/ignore:
        added storage/maria/maria_dump_log
      mysql-test/r/maria.result:
        Testing of table with char(0)
      mysql-test/t/maria.test:
        Testing of table with char(0)
      sql/sql_table.cc:
        Allow index on 'CHAR(0) NULL' columns
      storage/maria/ma_create.c:
        Allow creation of table with 0 record data (for example CHAR(0))
      storage/maria/ma_pagecrc.c:
        Fixed valgrind warning
      5cca615c
    • unknown's avatar
      fix for compiler warning · fd74a0da
      unknown authored
      
      sql/sql_table.cc:
        initialize variables used in 'err:' before going to err.
      fd74a0da