1. 29 Feb, 2008 1 commit
  2. 26 Feb, 2008 1 commit
    • unknown's avatar
      WL#3072 Maria Recovery · b01c9528
      unknown authored
      fixes for ma_test_recovery.pl to work in release builds too:
      - bugfix in maria_zerofill_index()
      - applying of LOGREC_INSERT_ROW_BLOBS now zeroes unused end of non-full
      blob page (a mutation of tail page when it takes >75% of maria_block_size)
      like write_full_pages() does.
      
      
      storage/maria/ma_blockrec.c:
        When we write a non-full blob page at run-time, we zero the rest of
        it (see write_full_pages()). We now do the same in
        _ma_apply_redo_insert_row_blobs(): this is consistent and helps
        having log-applying produce the same page as run-time.
      storage/maria/ma_check.c:
        maria_zerofill_index() was wrong: it didn't zero certain bytes
        because it believed that the count of relevant bytes is
        _ma_get_page_used(share, buff) + share->keypage_header,
        whereas it's only the first term.
      storage/maria/ma_pagecache.c:
        typo
      storage/maria/ma_pagecache.h:
        typo
      storage/maria/maria_chk.c:
        enable --zerofill-keep-lsn in all builds
      storage/maria/unittest/ma_test_recovery.pl:
        now even release builds can run ma_test_recovery.pl, because zerofill
        makes tables of this test (made by run-time and by log-applying)
        identical.
      b01c9528
  3. 25 Feb, 2008 6 commits
    • unknown's avatar
      Merge abelkin@bk-internal.mysql.com:/home/bk/mysql-maria · b2724a6a
      unknown authored
      into  desktop.sanja.is.com.ua:/home/bell/tmp/work-maria-rwlock-push
      
      
      b2724a6a
    • unknown's avatar
      Fixes to how ma_test_recovery.pl uses --zerofill-keep-lsn · 446c13a8
      unknown authored
      
      storage/maria/unittest/ma_test_recovery.pl:
        Tell how many tables were zerofilled (just for information, a varying
        number does not make the test fail).
        Don't let --zerofill-keep-lsn influence next runs (which it shouldn't
        do in theory anyway, but testing should not believe theory): restore
        non-zerofilled tables right after comparison is finished.
      446c13a8
    • unknown's avatar
      Merge abelkin@bk-internal.mysql.com:/home/bk/mysql-maria · c45172ec
      unknown authored
      into  desktop.sanja.is.com.ua:/home/bell/mysql/bk/work-maria-rwlock-push
      
      
      c45172ec
    • unknown's avatar
      Removing from circular list fixed. · a998e0dc
      unknown authored
      
      mysys/wqueue.c:
        fixed removing from circular list.
      a998e0dc
    • unknown's avatar
      No error message from maria_dump_log when reaching a log's EOF. · c0356dad
      unknown authored
      
      storage/maria/ma_loghandler.c:
        change the flags, otherwise when maria_dump_log reaches the end of the
        log it prints an "EOF error" to the user.
      c0356dad
    • unknown's avatar
      Build maria_dump_log under Windows. Enable maria_chk --zerofill-keep-lsn · 1b4c6fa6
      unknown authored
      in release builds, use it to fine-tune physical file comparisons in
      ma_test_recovery.pl.
      
      
      storage/maria/CMakeLists.txt:
        build maria_dump_log under Windows too
      storage/maria/maria_chk.c:
        make --zerofill-keep-lsn usable in release builds too, it makes sense.
        This option needn't reset state's LSNs, and it's more useful if it
        does not (see added comment) as it changes less the table.
      storage/maria/unittest/ma_test_recovery.pl:
        - getting rid of 'cmp'
        - if physical comparison of two MAD or MAI files fails, it might
        be in irrelevant portions (unushed index or data page pieces):
        we use --zerofill-keep-lsn and retry the comparison. This fixes
        a part of test failures under Windows.
      1b4c6fa6
  4. 22 Feb, 2008 5 commits
    • unknown's avatar
      postmerge fix · e6349ff7
      unknown authored
      
      storage/maria/unittest/ma_pagecache_consist.c:
        postmerge fix.
      storage/maria/unittest/ma_pagecache_rwconsist.c:
        postmerge fix.
      e6349ff7
    • unknown's avatar
      Merge 88-214-96-46.dialup.umc.net.ua:/Users/bell/mysql/bk/mysql-maria · daacf696
      unknown authored
      into  88-214-96-46.dialup.umc.net.ua:/Users/bell/mysql/bk/work-maria-test
      
      
      storage/maria/ma_pagecache.c:
        Auto merged
      storage/maria/unittest/Makefile.am:
        merge
      storage/maria/unittest/ma_pagecache_consist.c:
        merge
      daacf696
    • unknown's avatar
      Locking for read and write made waiting for each other (with loose · 190de95f
      unknown authored
      scheme for the same thread locking).
      
      
      include/my_pthread.h:
        Added variable for lock diffirentiation.
      include/wqueue.h:
        New release call.
      mysys/wqueue.c:
        New release call in case of read/write lock.
      storage/maria/ma_pagecache.c:
        Locking for read and write made waitimg for each other.
      storage/maria/unittest/Makefile.am:
        New test added.
      storage/maria/unittest/ma_pagecache_consist.c:
        Fixed thread initialization in the test.
      storage/maria/unittest/ma_pagecache_rwconsist.c:
        New BitKeeper file ``storage/maria/unittest/ma_pagecache_rwconsist.c''
      190de95f
    • unknown's avatar
      update to "KNOWN BUGS" · 1dfeb478
      unknown authored
      
      KNOWN_BUGS.txt:
        update
      1dfeb478
    • unknown's avatar
      Small fixes; the missing DBUG_RETURN() fixes · 83d331a5
      unknown authored
      BUG#34741 "prepared show master logs without binlogging debug assert"
      
      
      sql/sql_repl.cc:
        missing DBUG_RETURN
      storage/maria/unittest/ma_control_file-t.c:
        fix for icc warning.
      83d331a5
  5. 21 Feb, 2008 5 commits
    • unknown's avatar
      Fixes for ma_test_recovery.pl on OS X. · b9b60d6f
      unknown authored
      
      storage/maria/unittest/ma_test_recovery.pl:
        .exe is for win32, win64, cygwin but not darwin.
        Some OS X machines have md5 instead of md5sum.
      b9b60d6f
    • unknown's avatar
      Make ma_test_all-t find its eggs on Darwin machines. · b35c0fbc
      unknown authored
      
      storage/maria/unittest/ma_test_all-t:
        .exe is for win32, win64, cygwin, but not darwin
      b35c0fbc
    • unknown's avatar
      fix for bug in Solaris 10 Sparc 64 bit (misaligned buffer in the · e068ad62
      unknown authored
      log handler).
      
      
      storage/maria/ma_loghandler.c:
        Buffers on the stack must be properly aligned as pagecache_read()
        will use bmove512() on them. Fixes hang in maria-recovery.test
        on Solaris 10 Sparc 64 bit.
      storage/maria/ma_pagecache.c:
        comment
      e068ad62
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-maria · 33c24d59
      unknown authored
      into  mysql.com:/home/my/mysql-maria
      
      
      dbug/dbug.c:
        Auto merged
      mysys/lf_alloc-pin.c:
        Auto merged
      storage/maria/lockman.c:
        Auto merged
      storage/maria/ma_open.c:
        Auto merged
      storage/maria/ma_recovery.c:
        Auto merged
      storage/maria/unittest/ma_test_recovery.pl:
        Manual merge
      33c24d59
    • unknown's avatar
      Fixed problems with ma_test2 and mi_test2 on high-byte-first system · df843c4c
      unknown authored
      Fixed bug in ma_test2 when last row in table is deleted
      Fixed that ma_test_recovery.pl works on Solaris (by using digest instead of md5sum)
      Fixed some compiler warnings generated by the Forte compiler
      
      
      dbug/dbug.c:
        Added cast to get rid of compiler warning
      mysys/lf_alloc-pin.c:
        Added cast to get rid of compiler warning
      mysys/my_bitmap.c:
        Removed impossible DBUG_ASSERT()'s to get rid of compiler warnings
      mysys/my_compress.c:
        Removed wrong cast to get rid of compiler warning
      storage/maria/lockman.c:
        Added cast to get rid of compiler warning
      storage/maria/ma_open.c:
        Added fix from MyISAM to allocate space in key buffer for nod pointer
      storage/maria/ma_recovery.c:
        Fixed initialization that caused compiler warning
      storage/maria/ma_rsame.c:
        More DBUG_PRINT
      storage/maria/ma_scan.c:
        Better comment
      storage/maria/ma_statrec.c:
        More DBUG_PRINT and comments
        Fixed indentation
      BitKeeper/etc/ignore:
        added storage/maria/unittest/tmp/*
      storage/maria/ma_test2.c:
        Fixed bug that caused maria_rsame() to fail if test removed last row
        Fixed wrong usage of longget();  Should be uint4korr()
      storage/maria/unittest/ma_test_recovery.pl:
        Use md5sum or digest to calculate md5.
        This allows this script to be run on Linux and Solaris
      storage/myisam/mi_test2.c:
        Fixed wrong usage of longget();  Should be uint4korr()
      strings/ctype.c:
        Added casts to get rid of compiler warnings
      sql-bench/myisam.cnf:
        New BitKeeper file ``sql-bench/myisam.cnf''
      df843c4c
  6. 20 Feb, 2008 8 commits
    • unknown's avatar
      non-debug build should not cause ma_test_all-t to always fail: · 2e5a7aad
      unknown authored
      make ma_test_recovery.pl return 0 if it skips itself.
      
      
      storage/maria/unittest/ma_test_recovery.pl:
        non-debug build should not cause ma_test_all-t to always fail
      2e5a7aad
    • unknown's avatar
      Working around tar's 99-char limit in file names · 81d7eb74
      unknown authored
      
      configure.in:
        this tree has version 5.1.23, release clone has version 5.1.23a-maria-alpha;
        it mostly matters because it makes the file's name 1 byte shorter
        and thus below tar's 99-chars limit...
      81d7eb74
    • unknown's avatar
      Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-maria · 1bb6196e
      unknown authored
      into  gbichot4.local:/home/mysql_src/mysql-maria-monty
      
      
      1bb6196e
    • unknown's avatar
      need to include ma_test_all-t and ma_test_recovery.* into the source · 29ee9e6f
      unknown authored
      tarball, so that those tests are run on all platforms.
      
      
      29ee9e6f
    • unknown's avatar
      Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-maria · 4ab90ef2
      unknown authored
      into  hynda.mysql.fi:/home/my/mysql-maria
      
      
      4ab90ef2
    • unknown's avatar
      New version of ma_test_recovery.pl · 00fb84d2
      unknown authored
      
      storage/maria/ma_test_recovery:
        Made the shell version empty to avoid modifying
        files in two places. Linked to the current one.
      storage/maria/unittest/ma_test_recovery.pl:
        New version of ma_test_recovery.pl
        Added --help and --version, made a function
        of the main part, removed all calls to unix
        mv and cp
      00fb84d2
    • unknown's avatar
      Fixes for bugs (my_atomic and Maria log handler) observed on · 788b95bc
      unknown authored
      Solaris 10 Sparc 64bit.
      
      
      include/my_atomic.h:
        Prototypes in the non-inline (extern) case were wrong: they were
        missing "U_a" i.e. "volatile *". Caused a segfault in my_atomic-t
        on Solaris10 Sparc 64.
      storage/maria/ma_loghandler.c:
        Move "buffer" array up in the struct, to get it aligned on long-boundary
        so that page cache can use bmove512() (it was not aligned and bmove512()
        was used, causing SIGBUS on Solaris10 Sparc 64).
      storage/maria/unittest/ma_pagecache_consist.c:
        doing *(uint*)(charbuff)=something is not ok on sparc machines, we must
        use int4store/uint4korr. Fixes a SIGBUS on Solaris10 Sparc 64.
      788b95bc
    • unknown's avatar
      ha_maria.cc: · eeb2ec16
      unknown authored
        Adjust to match storage engine API, 'mysql_var_update_func' function
        prototype changed so that last argument now "void *save" with "const"
      
      
      storage/maria/ha_maria.cc:
        Adjust to match storage engine API, 'mysql_var_update_func' function
        prototype changed so that last argument now "void *save" with "const"
      eeb2ec16
  7. 19 Feb, 2008 7 commits
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-maria · 0000ef5e
      unknown authored
      into  mysql.com:/data0/mysqldev/my/build-200802121236-5.1.23a-maria-alpha/mysql-5.1-release
      
      
      0000ef5e
    • unknown's avatar
      Merge xiphis.org:/anubis/antony/work/p1-bug34598.2 · 4a05e13d
      unknown authored
      into  xiphis.org:/anubis/antony/work/p1-bug34598.2.merge.maria
      
      
      include/mysql/plugin.h:
        Auto merged
      sql/sql_plugin.cc:
        Auto merged
      4a05e13d
    • unknown's avatar
      Bug#34598 · a1915039
      unknown authored
        "crash on hpita: Invalid address alignment"
        Replace dangerous pointer arithmetic - it may occurr where sizeof(int) is
        less than size of machine alignment requirement.
      
      
      include/mysql/plugin.h:
        bug34598
          change of update func prototype
      sql/sql_plugin.cc:
        bug34598
          Avoid dangerous pointer arithmetic which can cause unaligned word access.
          Change of update function prototype
      a1915039
    • unknown's avatar
      Fix for build failure · 4c4f1ebb
      unknown authored
      
      libmysql/get_password.c:
        fix for build failure (no bool in C)
      4c4f1ebb
    • unknown's avatar
      Fix for build failures. Putting back "#define bool BOOL" under Windows · 8665ae2c
      unknown authored
      until Windows team confers.
      
      
      client/get_password.c:
        fix for build failure (HPUX etc): no bool in C
      dbug/dbug.c:
        typo
      include/config-win.h:
        putting back the infamous #define, because without it we have 650
        distinct compiler warnings "forcing value to bool 'true' or 'false'"
        (C4800), Windows team will confer on what to do.
      include/thr_alarm.h:
        fix for build failure on Windows
      libmysql/dll.c:
        fix for build failure on Windows
      mysys/thr_alarm.c:
        fix for build failure on HPUX
      8665ae2c
    • unknown's avatar
      dbug.c: · a680bc76
      unknown authored
        SCCS merged
      
      
      dbug/dbug.c:
        SCCS merged
      a680bc76
    • unknown's avatar
      Fix for failure of ma_test_loghandler_long-t on Windows · b369f21b
      unknown authored
      
      dbug/dbug.c:
        importing change from 6.0, which speeds up --debug on Windows (no sync)
      storage/maria/unittest/ma_test_loghandler-t.c:
        this test needs ~80 open files (logs)
      b369f21b
  8. 18 Feb, 2008 7 commits
    • unknown's avatar
      Merge mysql.com:/home/kent/bk/maria/mysql-maria · ce278d3a
      unknown authored
      into  mysql.com:/home/kent/bk/maria/mysql-5.1-maria-alpha-release
      
      
      ce278d3a
    • unknown's avatar
      Merge from 5.1-build of the "my_bool for C" changeset. · 0ab7c2f3
      unknown authored
      Removing "#define bool BOOL" as it's dangerous.
      
      
      include/config-win.h:
        This #define was confusing: a) it changes the semantics of bool but
        only on Windows (C++ standard says that casting int to bool to int
        yields 0 or 1, but if using BOOL (which is int) this breaks, see
        old BUG 11567 "Variable 'foreign_key_checks', and other variables,
        differs binlog tests") b) it is not needed in C++ which has a bool type
        c) it is not needed in C where we must use my_bool as bool either does
        not exist or changes size between C and C++.
      storage/maria/ma_check.c:
        my_bool for C
      storage/maria/ma_dynrec.c:
        my_bool for C
      storage/maria/ma_search.c:
        my_bool for C
      storage/maria/ma_write.c:
        my_bool for C
      storage/maria/maria_def.h:
        my_bool for C
      storage/maria/maria_pack.c:
        my_bool for C
      0ab7c2f3
    • unknown's avatar
      Merge gbichot4.local:/home/mysql_src/mysql-5.1-build-gca · 34fff04d
      unknown authored
      into  gbichot4.local:/home/mysql_src/mysql-maria-monty
      
      
      client/mysqldump.c:
        Auto merged
      client/mysqltest.c:
        Auto merged
      extra/replace.c:
        Auto merged
      include/my_sys.h:
        Auto merged
      libmysql/libmysql.c:
        Auto merged
      mysys/my_getopt.c:
        Auto merged
      mysys/thr_lock.c:
        Auto merged
      sql/set_var.cc:
        Auto merged
      sql/sql_plugin.cc:
        Auto merged
      storage/myisam/mi_check.c:
        Auto merged
      storage/myisam/mi_dynrec.c:
        Auto merged
      storage/myisam/mi_search.c:
        Auto merged
      storage/myisam/mi_update.c:
        Auto merged
      storage/myisam/mi_write.c:
        Auto merged
      storage/myisam/myisamlog.c:
        Auto merged
      storage/myisam/myisampack.c:
        Auto merged
      tests/mysql_client_test.c:
        Auto merged
      include/my_global.h:
        merge
      storage/myisam/myisamdef.h:
        merge
      34fff04d
    • unknown's avatar
      Fix for server bug experienced in Maria (wrong "Truncated incorrect <var_name> · 85213f62
      unknown authored
      value" error even though the value was correct): a C function in my_getopt.c
      was taking bool* in parameter and was called from C++ sql_plugin.cc,
      but on some Mac OS X sizeof(bool) is 1 in C and 4 in C++, giving funny
      mismatches. Fixed, all other occurences of bool in C are removed, future
      ones are blocked by a "C-bool-catcher" in my_global.h (use my_bool).
      
      
      client/mysqldump.c:
        my_bool for C
      client/mysqltest.c:
        my_bool for C
      extra/replace.c:
        my_bool for C
      include/my_getopt.h:
        my_bool for C
      include/my_global.h:
        Prevent people from using bool in C, it causes real bugs.
      include/my_sys.h:
        my_bool for C
      include/my_time.h:
        my_bool for C
      include/thr_lock.h:
        my_bool for C
      libmysql/libmysql.c:
        my_bool for C
      mysys/charset.c:
        my_bool for C
      mysys/my_getopt.c:
        my_bool for C
      mysys/queues.c:
        my_bool for C
      mysys/thr_lock.c:
        my_bool for C
      regex/reginit.c:
        my_bool for C
      sql/set_var.cc:
        C functions use my_bool so we must use my_bool too.
      sql/sql_plugin.cc:
        C functions use my_bool so we must use my_bool too.
        This fixes a real observed bug of Maria, because on some Mac OS X,
        sizeof(bool) is 1 in C and 4 in C++, so the bool* does wrong.
        Removing useless line.
      storage/heap/hp_update.c:
        my_bool for C
      storage/myisam/mi_check.c:
        my_bool for C
      storage/myisam/mi_dynrec.c:
        my_bool for C
      storage/myisam/mi_search.c:
        my_bool for C
      storage/myisam/mi_update.c:
        my_bool for C
      storage/myisam/mi_write.c:
        my_bool for C
      storage/myisam/myisamdef.h:
        my_bool for C
      storage/myisam/myisamlog.c:
        my_bool for C
      storage/myisam/myisampack.c:
        my_bool for C
      tests/mysql_client_test.c:
        my_bool for C
      unittest/mysys/bitmap-t.c:
        my_bool for C
      vio/viosslfactories.c:
        my_bool for C
      85213f62
    • unknown's avatar
      Merge mysqldev@production.mysql.com:my/mysql-5.1-maria-alpha-release · d3322000
      unknown authored
      into  mysql.com:/home/kent/bk/maria/mysql-5.1-maria-alpha-release
      
      
      d3322000
    • unknown's avatar
      Merge mysql.com:/home/kent/bk/maria/mysql-maria-gca · 5220bcfb
      unknown authored
      into  mysql.com:/home/kent/bk/maria/mysql-5.1-maria-alpha-release
      
      
      libmysqld/CMakeLists.txt:
        Auto merged
      5220bcfb
    • unknown's avatar
      CMakeLists.txt: · 979738a4
      unknown authored
        Missing "sql_profile.cc" was added
      
      
      libmysqld/CMakeLists.txt:
        Missing "sql_profile.cc" was added
      979738a4