1. 20 Dec, 2006 2 commits
    • unknown's avatar
      WL#3071 - Maria checkpoint: · 4d61bad4
      unknown authored
      a function to store information about transactions into buffers,
      is added to the transaction manager, and called by the Checkpoint module.
      
      
      storage/maria/ma_checkpoint.c:
        "collecting info about transactions" moves to trnman.c
      storage/maria/trnman.c:
        a function to store information about the active transactions list
        and committed transactions list, into buffers, for use by the
        Checkpoint module.
        This function needs to know how many trns there are in the committed
        list, so we introduce a counter, trnman_committed_transactions.
        m_string.h is needed for LEX_STRING.
      storage/maria/trnman.h:
        A function to store information about the active transactions list
        and committed transactions list, into buffers, for use by the
        Checkpoint module.
      storage/maria/unittest/trnman-t.c:
        trnman.h needs LEX_STRING so m_string.h
      4d61bad4
    • unknown's avatar
      merge of recent MyISAM changes into Maria. · c76fb0ca
      unknown authored
      Only failure is ndb_restore - could have been worse!!
      
      
      include/pagecache.h:
        LSN->lsn
      mysys/mf_keycache.c:
        page_status is int
      mysys/mf_pagecache.c:
        merge of recent key cache changes
      sql/mysqld.cc:
        post-merge fixes
      sql/set_var.cc:
        post-merge fixes
      storage/maria/ha_maria.cc:
        merge of recent MyISAM changes into Maria
      storage/maria/ha_maria.h:
        merge of recent MyISAM changes into Maria
      storage/maria/ma_close.c:
        merge of recent MyISAM changes into Maria
      storage/maria/ma_create.c:
        merge of recent MyISAM changes into Maria
      storage/maria/ma_delete.c:
        merge of recent MyISAM changes into Maria
      storage/maria/ma_dynrec.c:
        merge of recent MyISAM changes into Maria
      storage/maria/ma_ft_boolean_search.c:
        merge of recent MyISAM changes into Maria
      storage/maria/ma_key.c:
        merge of recent MyISAM changes into Maria
      storage/maria/ma_keycache.c:
        merge of recent MyISAM changes into Maria
      storage/maria/ma_open.c:
        merge of recent MyISAM changes into Maria
      storage/maria/ma_page.c:
        merge of recent MyISAM changes into Maria
      storage/maria/ma_rsamepos.c:
        merge of recent MyISAM changes into Maria
      storage/maria/ma_statrec.c:
        merge of recent MyISAM changes into Maria
      storage/maria/ma_unique.c:
        merge of recent MyISAM changes into Maria
      storage/maria/maria_chk.c:
        merge of recent MyISAM changes into Maria
      storage/maria/maria_pack.c:
        merge of recent MyISAM changes into Maria
      storage/myisam/myisampack.c:
        compiler warning
      c76fb0ca
  2. 19 Dec, 2006 2 commits
    • unknown's avatar
      Merge gbichot3.local:/home/mysql_src/mysql-5.1-clean · 053a8cf1
      unknown authored
      into  gbichot3.local:/home/mysql_src/mysql-maria
      
      
      BitKeeper/etc/ignore:
        auto-union
      BUILD/SETUP.sh:
        Auto merged
      Makefile.am:
        Auto merged
      configure.in:
        Auto merged
      BitKeeper/triggers/post-commit:
        merge
      include/Makefile.am:
        merge
      include/my_global.h:
        merge
      include/my_sys.h:
        merge
      libmysql/Makefile.shared:
        merge
      libmysqld/Makefile.am:
        merge
      mysql-test/mysql-test-run.pl:
        merge
      mysys/Makefile.am:
        merge
      mysys/mf_keycache.c:
        merge
      mysys/mf_keycaches.c:
        merge
      mysys/my_handler.c:
        merge
      mysys/my_init.c:
        merge
      mysys/my_open.c:
        merge
      mysys/my_pread.c:
        merge
      sql/Makefile.am:
        merge
      sql/handler.h:
        merge
      sql/item_func.cc:
        merge
      sql/item_func.h:
        merge
      sql/log.cc:
        merge
      sql/mysql_priv.h:
        merge
      sql/mysqld.cc:
        merge
      sql/set_var.cc:
        merge
      sql/sql_class.h:
        merge
      sql/sql_parse.cc:
        merge
      sql/sql_select.cc:
        merge
      sql/sql_test.cc:
        merge
      sql/unireg.cc:
        merge
      storage/csv/ha_tina.cc:
        merge
      storage/myisam/ft_boolean_search.c:
        merge
      storage/myisam/ha_myisam.cc:
        merge
      storage/myisam/ha_myisam.h:
        merge
      storage/myisam/mi_create.c:
        merge
      storage/myisam/mi_delete.c:
        merge
      storage/myisam/mi_dynrec.c:
        merge
      storage/myisam/mi_key.c:
        merge
      storage/myisam/mi_open.c:
        merge
      storage/myisam/mi_test2.c:
        merge
      storage/myisam/mi_unique.c:
        merge
      storage/myisam/mi_write.c:
        merge
      storage/myisam/myisamchk.c:
        merge
      storage/myisam/myisampack.c:
        merge
      storage/myisam/sort.c:
        merge
      unittest/mytap/tap.c:
        merge
      053a8cf1
    • unknown's avatar
      Maria - merging recent changes done to MyISAM into Maria. · c45f66c8
      unknown authored
      Plus compiler warnings, and a fix to the pagecache unit tests for IA64
      
      
      include/maria.h:
        merging MyISAM into Maria
      include/myisam.h:
        post-merge fixes
      mysql-test/r/maria.result:
        merging MyISAM into Maria
      mysql-test/t/maria.test:
        merging MyISAM into Maria
      sql/mysqld.cc:
        post-merge fixes
      storage/maria/ha_maria.cc:
        merging MyISAM into Maria
      storage/maria/ha_maria.h:
        merging MyISAM into Maria
      storage/maria/ma_check.c:
        merging MyISAM into Maria
      storage/maria/ma_open.c:
        merging MyISAM into Maria
      storage/maria/ma_packrec.c:
        merging MyISAM into Maria
      storage/maria/ma_range.c:
        merging MyISAM into Maria
      storage/maria/ma_sort.c:
        merging MyISAM into Maria
      storage/maria/maria_def.h:
        merging MyISAM into Maria
      storage/maria/maria_pack.c:
        merging MyISAM into Maria
      storage/maria/plug.in:
        merging MyISAM into Maria
      storage/myisam/myisamdef.h:
        merging MyISAM into Maria
      storage/myisam/myisampack.c:
        fix for compiler warnings
      unittest/mysys/mf_pagecache_consist.c:
        this sets the stack size lower than the minimum on IA64, we remove it
        (it made the test fail)
      unittest/mysys/mf_pagecache_single.c:
        this sets the stack size lower than the minimum on IA64, we remove it
        (it made the test fail)
      c45f66c8
  3. 18 Dec, 2006 2 commits
    • unknown's avatar
      Merge gbichot3.local:/home/mysql_src/mysql-5.1-clean · 29399f91
      unknown authored
      into  gbichot3.local:/home/mysql_src/mysql-maria
      
      
      BitKeeper/etc/ignore:
        auto-union
      BUILD/SETUP.sh:
        Auto merged
      Makefile.am:
        Auto merged
      config/ac-macros/plugins.m4:
        Auto merged
      configure.in:
        Auto merged
      include/Makefile.am:
        Auto merged
      include/my_base.h:
        Auto merged
      include/my_dbug.h:
        Auto merged
      include/my_global.h:
        Auto merged
      include/my_sys.h:
        Auto merged
      libmysqld/Makefile.am:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Auto merged
      mysys/Makefile.am:
        Auto merged
      mysys/my_pread.c:
        Auto merged
      sql/Makefile.am:
        Auto merged
      sql/handler.h:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/item_func.h:
        Auto merged
      sql/log.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/set_var.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/unireg.cc:
        Auto merged
      storage/csv/ha_tina.cc:
        Auto merged
      storage/myisam/ha_myisam.cc:
        Auto merged
      storage/myisam/ha_myisam.h:
        Auto merged
      storage/myisam/mi_open.c:
        Auto merged
      storage/myisam/mi_packrec.c:
        Auto merged
      storage/myisam/mi_range.c:
        Auto merged
      storage/myisam/myisampack.c:
        Auto merged
      storage/myisam/sort.c:
        Auto merged
      storage/myisammrg/ha_myisammrg.h:
        Auto merged
      unittest/mytap/tap.c:
        Auto merged
      include/myisam.h:
        merge
      sql/mysqld.cc:
        merge
      storage/myisam/mi_check.c:
        merge
      storage/myisam/myisamdef.h:
        merge
      29399f91
    • unknown's avatar
      WL#3071 Maria checkpoint · 95fbf242
      unknown authored
      - cleanups, simplifications
      - moving the construction of the "dirty pages table" into the
      pagecache where it belongs (because it's the pagecache which knows
      dirty pages). TODO: do the same soon for the "transactions table".
      - fix for a small bug in the pagecache (decrementation of "changed_blocks")
      
      
      include/pagecache.h:
        prototype
      mysys/mf_pagecache.c:
        m_string.h moves up for LEX_STRING to be known for pagecache.h.
        In pagecache_delete_page(), we must decrement "blocks_changed" even
        if we just delete the page without flushing it.
        A new function pagecache_collect_changed_blocks_with_LSN()
        (used by the Checkpoint module), which stores information about the
        changed blocks (a.k.a. "the dirty pages table") into a LEX_STRING.
        This function is not tested now, it will be when there is a Checkpoint.
      storage/maria/ma_checkpoint.c:
        refining the checkpoint code: factoring functions, moving the
        construction of the "dirty pages table" into mf_pagecache.c
        (I'll do the same with the construction of the "transactions table"
        once Serg tells me what's the best way to do it).
      storage/maria/ma_least_recently_dirtied.c:
        Simplifying the thread which does background flushing of
        least-recently-dirtied pages:
        - in first version that thread will not flush, just do checkpoints
        - in 2nd version, flushing should re-use existing page cache functions
        like flush_pagecache_blocks().
      unittest/mysys/test_file.h:
        m_string.h moves up for LEX_STRING to be known in pagecache.h
      95fbf242
  4. 16 Dec, 2006 2 commits
    • unknown's avatar
      WL#3071 - Maria checkpoint. Correcting comment about a bad problem. · b70f4f29
      unknown authored
      
      storage/maria/ma_checkpoint.c:
        I was too optimistic; problem 1) is really a bad problem.
      b70f4f29
    • unknown's avatar
      WL#3071 - Maria checkpoint · fba7788c
      unknown authored
      Adding rec_lsn to Maria's page cache. Misc fixes to Checkpoint.
      
      
      mysys/mf_pagecache.c:
        adding rec_lsn, the LSN when a page first became dirty.
        It is set when unlocking a page (TODO: should also be set when
        the unlocking is an implicit part of pagecache_write()).
        It is reset in link_to_file_list() and free_block()
        (one of which is used every time we flush a block).
        It is a ulonglong and not LSN, because its destination is comparisons
        for which ulonglong is better than a struct.
      storage/maria/ma_checkpoint.c:
        misc fixes to Checkpoint (updates now that the transaction manager
        and the page cache are more known)
      storage/maria/ma_close.c:
        an important note for the future.
      storage/maria/ma_least_recently_dirtied.c:
        comment
      fba7788c
  5. 14 Dec, 2006 5 commits
  6. 12 Dec, 2006 5 commits
  7. 11 Dec, 2006 2 commits
  8. 07 Dec, 2006 14 commits
  9. 06 Dec, 2006 6 commits
    • unknown's avatar
      Merge neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint · 131bef61
      unknown authored
      into  neptunus.(none):/home/msvensson/mysql/mysql-5.1-maint
      
      
      client/mysqltest.c:
        Auto merged
      mysys/my_getopt.c:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      mysql-test/t/disabled.def:
        Manual merge
      131bef61
    • unknown's avatar
      Only call mysql_server_end if mysql_server_init has been called. · 1e8739c3
      unknown authored
      Remove DBUG_ENTER in my_end
      
      
      client/mysqltest.c:
        Call 'mysql_server_end' as last function in 'free_used_memory'
        Don't use DBUG_VOID_RETURN after mysql_server_end in free_used_memory
        Only call mysql_server_end if mysql_server_init has been called
      1e8739c3
    • unknown's avatar
    • unknown's avatar
      Merge mysql.com:/home/hf/work/22372/my41-22372 · e370ad30
      unknown authored
      into  mysql.com:/home/hf/work/22372/my50-22372
      
      
      mysql-test/r/gis.result:
        merging
      mysql-test/t/gis.test:
        merging
      sql/field.cc:
        merging
      sql/field.h:
        merging
      sql/sql_load.cc:
        merging
      e370ad30
    • unknown's avatar
      bug #22372 · 405f3366
      unknown authored
      datafile added to be used in gis.test
      
      
      mysql-test/std_data/bad_gis_data.dat:
        New BitKeeper file ``mysql-test/std_data/bad_gis_data.dat''
      405f3366
    • unknown's avatar
      bug #22372 (LOAD DATA crashes the table with the geometry field) · ea7d3db0
      unknown authored
      The problem is that the GEOMETRY NOT NULL can't automatically set
      any value as a default one. We always tried to complete LOAD DATA
      command even if there's not enough data in file. That doesn't work
      for GEOMETRY NOT NULL. Now Field_*::reset() returns an error sign
      and it's checked in mysql_load()
      
      
      mysql-test/r/gis.result:
        test result
      mysql-test/t/gis.test:
        testcase
      sql/field.cc:
        reset() now returns error sign
      sql/field.h:
        Field_*::reset() now returns error sign if the field can't be reset
      sql/sql_load.cc:
        check if field can't be reset and return error if it's so
      ea7d3db0