1. 04 Sep, 2006 1 commit
    • unknown's avatar
      WL#3234 "Maria - control file manager": · fa793bca
      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.
      fa793bca
  2. 01 Sep, 2006 1 commit
    • unknown's avatar
      WL#3234 "Maria - control file manager" · a1f25544
      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.
      a1f25544
  3. 30 Aug, 2006 1 commit
  4. 29 Aug, 2006 3 commits
  5. 14 Aug, 2006 1 commit
  6. 10 Aug, 2006 2 commits
    • unknown's avatar
      adding handler flag missing from previous merge, for Maria · e8524352
      unknown authored
      
      sql/ha_maria.cc:
        flag missing from previous merge
      e8524352
    • unknown's avatar
      Completion of merge of mysql-5.1 into mysql-maria. · 99c431db
      unknown authored
      Manually imported changes done to MyISAM (include/myisam.h,
      storage/myisam/*, sql/ha_myisam.*, mysql-test/t/myisam.test,
      mysql-test/t/ps_2myisam.test) the last
      months into Maria (tedious, should do it more frequently in the
      future), including those not done at the previous 5.1->Maria merge
      (please in the future don't forget to apply MyISAM changes to Maria
      when you merge 5.1 into Maria).
      Note: I didn't try to import anything which could be MyISAM-related
      in other tests of mysql-test (I didn't want to dig in all csets),
      but as QA is working to make most tests re-usable for other engines
      (Falcon), it is likely that we'll benefit from this and just have
      to set engine=Maria somewhere to run those tests on Maria.
      func_group and partition tests fail but they already do in main 5.1
      on my machine. No Valgrind error in t/*maria*.test.
      Monty: please see the commit comment of maria.result and check.
      
      
      BitKeeper/deleted/.del-ha_maria.m4:
        Delete: config/ac-macros/ha_maria.m4
      configure.in:
        fix for the new way of enabling engines
      include/maria.h:
        importing changes done to MyISAM the last months into Maria
      include/my_handler.h:
        importing changes done to MyISAM the last months into Maria
      include/myisam.h:
        importing changes done to MyISAM the last months into Maria
      mysql-test/r/maria.result:
        identical to myisam.result, except the engine name in some places
        AND in the line testing key_block_size=1000000000000000000:
        Maria gives a key block size of 8192 while MyISAM gives 4096;
        is it explainable by the difference between MARIA_KEY_BLOCK_LENGTH
        and the same constant in MyISAM? Monty?
      mysql-test/r/ps_maria.result:
        identical to ps_2myisam.result (except the engine name in some places)
      mysql-test/t/maria.test:
        instead of engine=maria everywhere, I use @@storage_engine (reduces
        the diff with myisam.test).
        importing changes done to MyISAM the last months into Maria
      mysys/my_handler.c:
        importing changes done to MyISAM the last months into Maria
      sql/ha_maria.cc:
        importing changes done to MyISAM the last months into Maria
      sql/ha_maria.h:
        importing changes done to MyISAM the last months into Maria
      sql/mysqld.cc:
        unneeded
      storage/maria/Makefile.am:
        importing changes done to MyISAM the last months into Maria
      storage/maria/ma_check.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/ma_create.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/ma_delete_table.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/ma_dynrec.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/ma_extra.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/ma_ft_boolean_search.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/ma_ft_eval.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/ma_ft_nlq_search.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/ma_ft_parser.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/ma_ft_test1.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/ma_ft_update.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/ma_ftdefs.h:
        importing changes done to MyISAM the last months into Maria
      storage/maria/ma_key.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/ma_open.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/ma_page.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/ma_rkey.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/ma_rsamepos.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/ma_rt_index.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/ma_rt_mbr.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/ma_search.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/ma_sort.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/ma_test1.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/ma_test2.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/ma_test3.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/ma_update.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/ma_write.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/maria_chk.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/maria_def.h:
        importing changes done to MyISAM the last months into Maria
      storage/maria/maria_ftdump.c:
        importing changes done to MyISAM the last months into Maria
      storage/maria/maria_pack.c:
        importing changes done to MyISAM the last months into Maria
      99c431db
  7. 09 Aug, 2006 1 commit
    • unknown's avatar
      Merge gbichot3.local:/home/mysql_src/mysql-5.1-2 · 381fdf1a
      unknown authored
      into  gbichot3.local:/home/mysql_src/mysql-maria; I'll fix manually.
      
      
      BitKeeper/etc/ignore:
        auto-union
      configure.in:
        Auto merged
      include/Makefile.am:
        Auto merged
      include/my_base.h:
        Auto merged
      include/myisam.h:
        Auto merged
      libmysqld/Makefile.am:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Auto merged
      sql/Makefile.am:
        Auto merged
      sql/ha_myisam.cc:
        Auto merged
      sql/ha_myisam.h:
        Auto merged
      sql/ha_myisammrg.h:
        Auto merged
      sql/handler.h:
        Auto merged
      sql/item_func.h:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/set_var.h:
        Auto merged
      sql/sql_class.h:
        Auto merged
      storage/myisam/ft_boolean_search.c:
        Auto merged
      storage/myisam/ft_nlq_search.c:
        Auto merged
      storage/myisam/ft_parser.c:
        Auto merged
      storage/myisam/ft_static.c:
        Auto merged
      storage/myisam/ft_update.c:
        Auto merged
      storage/myisam/mi_check.c:
        Auto merged
      storage/myisam/mi_create.c:
        Auto merged
      storage/myisam/mi_dynrec.c:
        Auto merged
      storage/myisam/mi_key.c:
        Auto merged
      storage/myisam/mi_search.c:
        Auto merged
      storage/myisam/mi_test2.c:
        Auto merged
      storage/myisam/mi_update.c:
        Auto merged
      storage/myisam/mi_write.c:
        Auto merged
      storage/myisam/myisampack.c:
        Auto merged
      storage/myisam/rt_index.c:
        Auto merged
      storage/myisam/sort.c:
        Auto merged
      include/my_handler.h:
        these ones I'll remove right away
      mysys/my_handler.c:
        merge
      sql/mysql_priv.h:
        merge
      sql/set_var.cc:
        merge
      storage/csv/ha_tina.cc:
        merge
      storage/myisam/myisamdef.h:
        merge
      381fdf1a
  8. 08 Aug, 2006 2 commits
    • unknown's avatar
      BUG #21524 "'ps' test fails in --ps-protocol test AMD64 bit" · b6897efb
      unknown authored
      (this is not a fix to the bug, but simply to disable the test in 
      order to push a 5.0 to 5.1 merge)
      
      This merge contains:
      
      Push by holyfoot@production.mysql.com on Tue Jul 25 13:41:40 2006:
      
      bk clone -l -r'holyfoot/hf@mysql.com/deer.(none)|ChangeSet|20060725085017|41021' mysql-5.0 tmp_merge
      
      
      mysql-test/t/disabled.def:
        BUG #21524 "'ps' test fails in --ps-protocol test AMD64 bit"
        
        (this is not a fix to the bug, but simply to disable the test in 
        order to push a 5.0 to 5.1 merge)
      b6897efb
    • unknown's avatar
      Merge govinda.patg.net:/home/patg/mysql-build/mysql-5.0-holyfoot · f1af1a5d
      unknown authored
      into  govinda.patg.net:/home/patg/mysql-build/mysql-5.1-5.0-merge2
      
      Push by holyfoot@production.mysql.com on Tue Jul 25 13:41:40 2006:
      
      bk clone -l -r'holyfoot/hf@mysql.com/deer.(none)|ChangeSet|20060725085017|41021' mysql-5.0 tmp_merge
      
      
      BitKeeper/deleted/.del-libmysqld.dsp~78dc6a589e5a4149:
        Auto merged
      configure.in:
        Auto merged
      libmysqld/lib_sql.cc:
        Auto merged
      mysql-test/r/date_formats.result:
        Auto merged
      mysql-test/r/merge.result:
        Auto merged
      mysql-test/t/date_formats.test:
        Auto merged
      mysql-test/t/merge.test:
        Auto merged
      sql/field.h:
        Auto merged
      sql/ha_myisammrg.cc:
        Auto merged
      BitKeeper/deleted/.del-libmysqld.vcproj~a75d5b9a5967dea0:
        Auto merged
      BitKeeper/deleted/.del-libmysqld_ia64.dsp~578ab58d5f281d2a:
        Auto merged
      BitKeeper/deleted/.del-mysqld.dsp~ffdbf2d234e23e56:
        Auto merged
      BitKeeper/deleted/.del-mysqld.vcproj~6aa7b3f9c3e28fcb:
        Auto merged
      BitKeeper/deleted/.del-mysqld_ia64.dsp~7f8cf84d81ee04e2:
        Auto merged
      BitKeeper/deleted/.del-mysqldemb.dsp~1baf8c0e59ee9f7e:
        Auto merged
      BitKeeper/deleted/.del-mysqldemb.vcproj~54c64d55ccc51a7c:
        Auto merged
      BitKeeper/deleted/.del-mysqldemb_ia64.dsp~c7f7d75d542393cd:
        Auto merged
      BitKeeper/deleted/.del-mysqldmax.dsp~5d213fe1c204142e:
        Auto merged
      BitKeeper/deleted/.del-mysqldmax_ia64.dsp~25006b7cc0725ad1:
        Auto merged
      sql/item_strfunc.cc:
        Auto merged
      sql/item_timefunc.cc:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      support-files/mysql.spec.sh:
        Auto merged
      include/my_base.h:
        Hand merge of conflicts (5.0-5.1 merge), second try 
        
        Push by holyfoot@production.mysql.com on Tue Jul 25 13:41:40 2006:
        
        bk clone -l -r'holyfoot/hf@mysql.com/deer.(none)|ChangeSet|20060725085017|41021' mysql-5.0 tmp_merge
      mysql-test/r/federated.result:
        Hand merge of conflicts (5.0-5.1 merge), second try 
        
        Push by holyfoot@production.mysql.com on Tue Jul 25 13:41:40 2006:
        
        bk clone -l -r'holyfoot/hf@mysql.com/deer.(none)|ChangeSet|20060725085017|41021' mysql-5.0 tmp_merge
      mysql-test/t/federated.test:
        Hand merge of conflicts (5.0-5.1 merge), second try 
        
        Push by holyfoot@production.mysql.com on Tue Jul 25 13:41:40 2006:
        
        bk clone -l -r'holyfoot/hf@mysql.com/deer.(none)|ChangeSet|20060725085017|41021' mysql-5.0 tmp_merge
      sql/field.cc:
        Hand merge of conflicts (5.0-5.1 merge), second try 
        
        Push by holyfoot@production.mysql.com on Tue Jul 25 13:41:40 2006:
        
        bk clone -l -r'holyfoot/hf@mysql.com/deer.(none)|ChangeSet|20060725085017|41021' mysql-5.0 tmp_merge
      sql/ha_federated.cc:
        Hand merge of conflicts (5.0-5.1 merge), second try 
        
        Push by holyfoot@production.mysql.com on Tue Jul 25 13:41:40 2006:
        
        bk clone -l -r'holyfoot/hf@mysql.com/deer.(none)|ChangeSet|20060725085017|41021' mysql-5.0 tmp_merge
      sql/handler.cc:
        Hand merge of conflicts (5.0-5.1 merge), second try 
        
        Push by holyfoot@production.mysql.com on Tue Jul 25 13:41:40 2006:
        
        bk clone -l -r'holyfoot/hf@mysql.com/deer.(none)|ChangeSet|20060725085017|41021' mysql-5.0 tmp_merge
      tests/mysql_client_test.c:
        Hand merge of conflicts (5.0-5.1 merge), second try 
        
        Push by holyfoot@production.mysql.com on Tue Jul 25 13:41:40 2006:
        
        bk clone -l -r'holyfoot/hf@mysql.com/deer.(none)|ChangeSet|20060725085017|41021' mysql-5.0 tmp_merge
      f1af1a5d
  9. 03 Aug, 2006 13 commits
  10. 02 Aug, 2006 4 commits
  11. 01 Aug, 2006 11 commits