1. 20 Sep, 2006 2 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-maria · f9f4583f
      unknown authored
      into  janus.mylan:/usr/home/serg/Abk/mysql-maria
      
      
      configure.in:
        Auto merged
      include/Makefile.am:
        Auto merged
      mysys/Makefile.am:
        Auto merged
      mysys/my_bitmap.c:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/set_var.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      storage/maria/ha_maria.cc:
        Auto merged
      storage/myisam/ha_myisam.cc:
        Auto merged
      storage/maria/Makefile.am:
        merged
      unittest/Makefile.am:
        merged
      f9f4583f
    • unknown's avatar
      Maria, very minor changes. · 720a1dc6
      unknown authored
      
      mysys/Makefile.am:
        test_pagecache* programs need to link with dbug
        (I used BUILD/compile-pentium64-valgrind-max)
      mysys/mf_pagecache.c:
        unused constant
      720a1dc6
  2. 15 Sep, 2006 1 commit
    • unknown's avatar
      WL#3234 Maria Control file manager · c2f9738d
      unknown authored
      last round of fixes to the storage engines' and plugins' unit tests
      structure. Will extract a total patch and push it in 5.1 as has been
      approved.
      
      
      Makefile.am:
        unittest must be before storage and plugin, because engine and plugin
        may have unit tests which link with libtap which is found in
        unitttest.
      config/ac-macros/plugins.m4:
        When enabling an engine/plugin, add its directory to the list
        of directories where unit tests should be searched. That is,
        its directory will be recursively searched by our unit test framework
        which will execute any executable *-t file.
      storage/maria/ma_control_file.c:
        those my_message pollute the output of unit tests.
      storage/maria/plug.in:
        When Maria is enabled, add its unittest Makefile.
      unittest/Makefile.am:
        plugins too
      c2f9738d
  3. 14 Sep, 2006 1 commit
    • unknown's avatar
      WL#3071 Maria checkpoint: · 382b81d3
      unknown authored
          changing pseudocode to use the structures of the Maria pagecache
          ("pagecache->changed_blocks" etc) and other Maria structures
          inherited from MyISAM (THR_LOCK_maria etc).
      
      
      mysys/mf_pagecache.c:
        comment
      storage/maria/ma_checkpoint.c:
        changing pseudocode to use the structures of the Maria pagecache
        ("pagecache->changed_blocks" etc) and other Maria structures
        inherited from MyISAM (THR_LOCK_maria etc).
      storage/maria/ma_checkpoint.h:
        copyright
      storage/maria/ma_control_file.c:
        copyright
      storage/maria/ma_control_file.h:
        copyright
      storage/maria/ma_least_recently_dirtied.c:
        copyright
      storage/maria/ma_least_recently_dirtied.h:
        copyright
      storage/maria/ma_recovery.c:
        copyright
      storage/maria/ma_recovery.h:
        copyright
      storage/maria/unittest/Makefile.am:
        copyright
      382b81d3
  4. 12 Sep, 2006 1 commit
    • unknown's avatar
      WL#3234 Maria control file · 4f66d388
      unknown authored
      Fixes after Brian's and Serg's comments: storage engine's unit tests
      are now in storage/<engine>/unittest instead of unittest/storage/<engine>
      
      
      BitKeeper/deleted/.del-Makefile.am~78ea2e42d44d121f:
        Delete: unittest/storage/maria/Makefile.am
      BitKeeper/deleted/.del-Makefile.am~80497dbf1a80bdf3:
        Delete: unittest/storage/Makefile.am
      storage/maria/unittest/ma_control_file-t.c:
        Rename: unittest/storage/maria/ma_control_file-t.c -> storage/maria/unittest/ma_control_file-t.c
      config/ac-macros/plugins.m4:
        we change from unittest/storage/<engine>/ to storage/<engine>/unittest:
        if the engine is enabled has such a directory, build this directory,
        and add it to the list of unit tests to run.
      configure.in:
        this dir does not exist anymore
      storage/maria/Makefile.am:
        to build Maria unittests, libmaria must be built.
      unittest/Makefile.am:
        unittest/storage is removed. target "unitests" is defined at
        "configure" time based on enabled engines.
      storage/maria/unittest/Makefile.am:
        simple Makefile.am to build ma_control_file-t
      4f66d388
  5. 11 Sep, 2006 1 commit
    • unknown's avatar
      WL#3234 Maria control file manager. · b0ec118a
      unknown authored
      Fitting ma_control_file_test into the mytap unittest framework:
      new directories:
      - unittest/storage/ for unit tests of any storage engine
      - unittest/storage/maria for ... Maria, containing ma_control_file-t.
      Later, older tests like ma_test*, ma_test_all (but which is Unix
      dependent in its current form) could move here too.
      The plugins macro enable building of unittest/storage/X for any
      enabled engine X which has such a directory.
      If Falcon wants to have unit tests there too, I may have to merge
      this patch into 5.x one day.
      
      
      config/ac-macros/plugins.m4:
        If a storage engine has a directory in unittest/storage, build this
        directory.
      configure.in:
        build storage engines' unit tests.
      storage/maria/Makefile.am:
        ma_control_file_test moves to unittest/storage/maria
      storage/maria/ma_control_file.c:
        more error codes when opening the control file fails.
        ma_control_file_end() may now return an error if my_close() failed.
      storage/maria/ma_control_file.h:
        more error codes when opening the control file fails.
      unittest/Makefile.am:
        adding unit tests for storage engines.
        Note that unit.pl simply recurses into "storage", so if a unit test for
        storage engine X has been built previously, and now you re-configure
        (without making clean) to disable this engine, then the unit test of
        X will not be rebuilt but will still be present in storage/X, so will
        be run.
      unittest/storage/maria/ma_control_file-t.c:
        Making the test fit the mytap framework (return all the way up
        the stack instead of assert(); use the mytap functions plan(), ok() etc).
        Adding test of file too short/long.
      unittest/storage/maria/Makefile.am:
        a_control_file-t is added to the Maria unit tests.
        Later, older tests (ma_test1 etc) could also move here.
      unittest/storage/Makefile.am:
        New BitKeeper file ``unittest/storage/Makefile.am''
      b0ec118a
  6. 08 Sep, 2006 1 commit
  7. 07 Sep, 2006 4 commits
    • unknown's avatar
      a file to record known Maria bugs until we use a bugs db. · 61b7f023
      unknown authored
      
      BUGS_IN_MARIA.txt:
        a file to record our bugs until we use a bugs db
      61b7f023
    • unknown's avatar
      Manually merging changes made to MyISAM into Maria. End of merge. · d13522ba
      unknown authored
      
      storage/maria/ft_maria.c:
        Rename: BitKeeper/deleted/.del-ft_maria.c -> storage/maria/ft_maria.c
      configure.in:
        maria moves to its plug.in
      storage/maria/Makefile.am:
        merging changes made to MyISAM into Maria.
        ft_maria.c is still needed.
      storage/maria/ha_maria.cc:
        merging changes made to MyISAM into Maria
      storage/maria/ma_dynrec.c:
        merging changes made to MyISAM into Maria
      storage/maria/ma_extra.c:
        merging changes made to MyISAM into Maria
      storage/maria/ma_ft_parser.c:
        merging changes made to MyISAM into Maria
      storage/maria/ma_open.c:
        merging changes made to MyISAM into Maria
      storage/maria/ma_sort.c:
        merging changes made to MyISAM into Maria
      storage/maria/ma_update.c:
        merging changes made to MyISAM into Maria
      storage/maria/ma_write.c:
        merging changes made to MyISAM into Maria
      storage/maria/maria_def.h:
        merging changes made to MyISAM into Maria
      storage/myisam/Makefile.am:
        merging changes made to MyISAM into Maria
      storage/maria/plug.in:
        merging changes made to MyISAM into Maria
      d13522ba
    • unknown's avatar
      Merge gbichot3.local:/home/mysql_src/mysql-5.1-for-maria · 0e9b2ad0
      unknown authored
      into  gbichot3.local:/home/mysql_src/mysql-maria
      
      
      BitKeeper/etc/ignore:
        auto-union
      libmysqld/Makefile.am:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Auto merged
      mysys/my_pread.c:
        Auto merged
      sql/Makefile.am:
        Auto merged
      sql/handler.h:
        Auto merged
      sql/item_func.h:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/set_var.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      storage/csv/ha_tina.cc:
        Auto merged
      storage/myisam/ft_parser.c:
        Auto merged
      storage/myisam/ha_myisam.cc:
        Auto merged
      storage/myisam/ha_myisam.h:
        Auto merged
      storage/myisam/mi_delete_all.c:
        Auto merged
      storage/myisam/mi_dynrec.c:
        Auto merged
      storage/myisam/mi_open.c:
        Auto merged
      storage/myisam/mi_packrec.c:
        Auto merged
      storage/myisam/mi_unique.c:
        Auto merged
      storage/myisam/mi_update.c:
        Auto merged
      storage/myisam/mi_write.c:
        Auto merged
      storage/myisam/sort.c:
        Auto merged
      storage/myisammrg/ha_myisammrg.h:
        Auto merged
      configure.in:
        merge
      sql/mysqld.cc:
        merge
      storage/myisam/Makefile.am:
        merge
      storage/myisam/myisamdef.h:
        merge
      0e9b2ad0
    • unknown's avatar
      Merge of Myisam changes into Maria. · 0166d45c
      unknown authored
      First step: ha_maria moves to storage/maria.
      
      
      BitKeeper/deleted/.del-ft_maria.c:
        Delete: storage/maria/ft_maria.c
      storage/maria/ha_maria.h:
        Rename: sql/ha_maria.h -> storage/maria/ha_maria.h
      storage/maria/ha_maria.cc:
        Rename: sql/ha_maria.cc -> storage/maria/ha_maria.cc
      libmysqld/Makefile.am:
        ha_maria moves to other dir (like myisam has)
      sql/Makefile.am:
        ha_maria moves to other dir (like myisam has)
      sql/mysqld.cc:
        ha_maria moves to other dir (like myisam has)
      storage/maria/Makefile.am:
        I delete ft_maria.c like ft_myisam.c has
      storage/maria/ma_test_all.sh:
        -l option is removed (no MyISAM log in Maria), maria_log is removed too.
      0166d45c
  8. 06 Sep, 2006 1 commit
  9. 04 Sep, 2006 7 commits
    • unknown's avatar
      WL#3234 "Maria - control file manager": · 8f7aa290
      unknown authored
      added checksum of the file. Now we have size + magic string + checksum
      to detect that all is ok.
      Plus misc fixes for "make dist" to work and the resulting tarball to build
      
      
      include/Makefile.am:
        adding pagecache.h to help the tarball build.
        The model of pagecache.h, keycache.h, is in pkginclude_HEADERS,
        wonder why. Adding pagecache.h to noinst_HEADERS for now.
      storage/maria/Makefile.am:
        adding ma_control_file.h to help the tarball build
      storage/maria/ma_control_file.c:
        adding a simple checksum to the control file.
        We protect against corruption of this file like this:
        - test size
        - test magic string at start
        - test checksum
        I also add some simple my_message() errors (to be changed to a better
        reporting later).
      storage/maria/ma_control_file.h:
        comments
      storage/maria/ma_control_file_test.c:
        test of wrong checksum in control file
      storage/maria/CMakeLists.txt:
        just to make "make dist" happy for now.
      8f7aa290
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/51-work · 89ce1bd3
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
      
      
      sql/sql_class.h:
        Auto merged
      89ce1bd3
    • unknown's avatar
      bug#21965 · cff4c8b7
      unknown authored
          merge to 5.1 - yet another merge fix
      
      
      sql/log.cc:
        yet another merge fix
      cff4c8b7
    • unknown's avatar
      bug#21965 · 8b472b7b
      unknown authored
        merge to 5.1
      
      
      sql/log.h:
        merge to 5.1
      8b472b7b
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/50-work · cae86cdf
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/51-work
      
      
      sql/log.cc:
        Auto merged
      sql/sql_repl.cc:
        Auto merged
      sql/sql_class.h:
        merge
      cae86cdf
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/41-work · 31b006b1
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/50-work
      
      
      sql/log.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      sql/sql_repl.cc:
        merge
      31b006b1
    • unknown's avatar
      bug#21965 - replication · 698f3b7e
      unknown authored
        fix deadlock if master switches log file in parallell with "show master logs"
        
      
      
      sql/log.cc:
        add raw_get_current_log which dont take log mutex
      sql/sql_class.h:
        add raw_get_current_log which dont take log mutex
      sql/sql_repl.cc:
        Fix lock order i.e first log_lock then index_lock
      698f3b7e
  10. 03 Sep, 2006 4 commits
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/mysql-5.1 · e8aa6d16
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
      
      e8aa6d16
    • unknown's avatar
      Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.1-new-ndb · 2d3db7e1
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
      
      2d3db7e1
    • unknown's avatar
      ndb - · e4e45a09
      unknown authored
        fix ndb-violations of strict aliasing found by gcc4.1
        (crashes in ndb_dd_*)
      
      
      storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
        Fix strict-aliasing
      storage/ndb/src/kernel/vm/KeyTable2Ref.hpp:
        Fix strict-aliasing
      storage/ndb/src/kernel/vm/Pool.hpp:
        Fix strict-aliasing
      e4e45a09
    • unknown's avatar
      ndb - · e9a1cdc9
      unknown authored
        gcc-4.1.1 work-around for bug in strict-aliasing
      
      
      storage/ndb/src/kernel/blocks/restore.cpp:
        gcc-4.1.1 work-around for bug in strict-aliasing
      e9a1cdc9
  11. 02 Sep, 2006 1 commit
  12. 01 Sep, 2006 9 commits
    • unknown's avatar
      Added missing return · 03c69476
      unknown authored
      03c69476
    • unknown's avatar
      Merge alik.:/mnt/raid/alik/MySQL/devel/5.1-tree · d84cc98d
      unknown authored
      into  alik.:/mnt/raid/alik/MySQL/devel/5.1-rt-merged
      
      
      mysql-test/t/disabled.def:
        SCCS merged
      d84cc98d
    • unknown's avatar
      WL#3234 "Maria - control file manager" · 6590935a
      unknown authored
      - fixes to the control file module
      - unit test for it
      - renames of all Maria files I created to start with ma_
      
      
      storage/maria/ma_checkpoint.c:
        Rename: storage/maria/checkpoint.c -> storage/maria/ma_checkpoint.c
      storage/maria/ma_checkpoint.h:
        Rename: storage/maria/checkpoint.h -> storage/maria/ma_checkpoint.h
      storage/maria/ma_least_recently_dirtied.c:
        Rename: storage/maria/least_recently_dirtied.c -> storage/maria/ma_least_recently_dirtied.c
      storage/maria/ma_least_recently_dirtied.h:
        Rename: storage/maria/least_recently_dirtied.h -> storage/maria/ma_least_recently_dirtied.h
      storage/maria/ma_recovery.c:
        Rename: storage/maria/recovery.c -> storage/maria/ma_recovery.c
      storage/maria/ma_recovery.h:
        Rename: storage/maria/recovery.h -> storage/maria/ma_recovery.h
      storage/maria/Makefile.am:
        control file module and its unit test program
      storage/maria/ma_control_file.c:
        DBUG_ tags. Fix for gcc warnings.
        log_no -> logno (I felt "_no" sounded like a standalone "No" word).
        ma_ prefix for some functions.
        last_checkpoint_lsn_at_startup -> last_checkpoint_lsn (no need
        to make special vars for the values at startup). Same for last_logno.
        ma_control_file_write_and_force() now updates last_checkpoint_lsn
        and last_logno, the idea being that they belong to the module,
        others should not update them.
        And thus when the module shuts down, it zeroes those vars.
      storage/maria/ma_control_file.h:
        importing structs from Sanja to get the control file module to compile;
        we'll remove that when Sanja pushes the log handler.
        CONTROL_FILE_IMPOSSIBLE_LOGNO is 0, not FFFFFFFF.
      storage/maria/ma_control_file_test.c:
        Unit test program for the Maria control file module.
        Modelled after other ma_test* files in this directory (so, does
        not follow the unit test framework recently introduced with libtap;
        TODO as a task on all ma_test* programs).
        We test that writing to the control file works, and re-reading from it
        too, we check (by reading the file by ourselves) that its content
        on disk is correct, and check that a corrupted control file is detected.
      6590935a
    • unknown's avatar
      Merge mysql.com:/windows/Linux_space/MySQL/mysql-5.1 · 3bf4b185
      unknown authored
      into  mysql.com:/windows/Linux_space/MySQL/mysql-5.1-new-ndb
      
      3bf4b185
    • unknown's avatar
      Removed absolute path · 39653917
      unknown authored
      39653917
    • unknown's avatar
      Merge mysql.com:/windows/Linux_space/MySQL/mysql-5.1 · 559b6729
      unknown authored
      into  mysql.com:/windows/Linux_space/MySQL/mysql-5.1-new-ndb
      
      
      sql/ha_ndbcluster.cc:
        Auto merged
      sql/ha_ndbcluster_binlog.cc:
        Auto merged
      storage/ndb/include/ndbapi/NdbTransaction.hpp:
        Auto merged
      storage/ndb/src/mgmapi/mgmapi.cpp:
        Auto merged
      storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp:
        Auto merged
      storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp:
        Auto merged
      storage/ndb/src/ndbapi/NdbEventOperationImpl.hpp:
        Auto merged
      storage/ndb/src/ndbapi/ndb_cluster_connection.cpp:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Merge
      storage/ndb/include/ndbapi/ndb_cluster_connection.hpp:
        Merge
      559b6729
    • unknown's avatar
      Fixed ndbapi-examples, and added tests for mysql-test-run.pl · bc3dbf51
      unknown authored
      
      storage/ndb/ndbapi-examples/ndbapi_simple_dual/Makefile:
        BitKeeper file /windows/Linux_space/MySQL/mysql-5.1/storage/ndb/ndbapi-examples/ndbapi_simple_dual/Makefile
      storage/ndb/ndbapi-examples/ndbapi_simple_dual/ndbapi_simple_dual.cpp:
        BitKeeper file /windows/Linux_space/MySQL/mysql-5.1/storage/ndb/ndbapi-examples/ndbapi_simple_dual/ndbapi_simple_dual.cpp
      storage/ndb/ndbapi-examples/mgmapi_logevent_dual/Makefile:
        BitKeeper file /windows/Linux_space/MySQL/mysql-5.1/storage/ndb/ndbapi-examples/mgmapi_logevent_dual/Makefile
      storage/ndb/ndbapi-examples/mgmapi_logevent_dual/mgmapi_logevent_dual.cpp:
        BitKeeper file /windows/Linux_space/MySQL/mysql-5.1/storage/ndb/ndbapi-examples/mgmapi_logevent_dual/mgmapi_logevent_dual.cpp
      mysql-test/include/have_ndbapi_examples.inc:
        BitKeeper file /windows/Linux_space/MySQL/mysql-5.1/mysql-test/include/have_ndbapi_examples.inc
      mysql-test/t/ndbapi.test:
        BitKeeper file /windows/Linux_space/MySQL/mysql-5.1/mysql-test/t/ndbapi.test
      mysql-test/t/rpl_ndbapi_multi.test:
        BitKeeper file /windows/Linux_space/MySQL/mysql-5.1/mysql-test/t/rpl_ndbapi_multi.test
      mysql-test/r/have_ndbapi_examples.require:
        BitKeeper file /windows/Linux_space/MySQL/mysql-5.1/mysql-test/r/have_ndbapi_examples.require
      mysql-test/r/ndbapi.result:
        BitKeeper file /windows/Linux_space/MySQL/mysql-5.1/mysql-test/r/ndbapi.result
      mysql-test/r/rpl_ndbapi_multi.result:
        BitKeeper file /windows/Linux_space/MySQL/mysql-5.1/mysql-test/r/rpl_ndbapi_multi.result
      bc3dbf51
    • unknown's avatar
      Merge moonbone.local:/home/evgen/bk-trees/mysql-5.1-opt · 3fd9ca75
      unknown authored
      into  moonbone.local:/work/tmp_merge-5.1-mysql
      
      
      sql/item.cc:
        Auto merged
      sql/item.h:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/sql_acl.cc:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      mysql-test/r/view.result:
        SCCS merged
      mysql-test/t/view.test:
        SCCS merged
      3fd9ca75
    • unknown's avatar
      Removed Windows from tests since bug#19107 is known to hang test · 1939e204
      unknown authored
      
      mysql-test/t/disabled.def:
        Removed disabled test since it only affects Windows
      mysql-test/t/partition.test:
        Removed Windows from test since bug#19107 is known to hang test
      mysql-test/t/partition_mgm_err2.test:
        Removed Windows from test since bug#19107 is known to hang test
      1939e204
  13. 31 Aug, 2006 7 commits