1. 03 Jan, 2007 1 commit
    • unknown's avatar
      very minor comments and merges from MyISAM into Maria. · b635df55
      unknown authored
      
      storage/maria/ma_checkpoint.c:
        comments
      storage/maria/ma_close.c:
        comments
      storage/maria/ma_write.c:
        merge from myisam
      storage/maria/maria_def.h:
        typo
      storage/myisam/mi_delete.c:
        unneeded {}, making it identical to Maria
      b635df55
  2. 20 Dec, 2006 3 commits
    • unknown's avatar
      Maria - fixes to the pagecache unit tests (which started to print · ba7a2a9a
      unknown authored
      "x threads didn't exit" today after my merge); the main() thread
      was calling my_init() and my_thread_global_init() which is redudant;
      it was not calling my_end() though it's needed.
      
      
      unittest/mysys/mf_pagecache_consist.c:
        program already calls my_init(), which calls my_thread_global_init(),
        so no need for my_thread_global_init() (double call caused the main()
        thread to wait for itself thus timing out and printing
        "x threads didn't exit".
        my_thread_global_end() is not enough, as we call my_init() we must call
        my_end() (which calls my_thread_global_end()).
      unittest/mysys/mf_pagecache_single.c:
        program already calls my_init(), which calls my_thread_global_init(),
        so no need for my_thread_global_init() (double call caused the main()
        thread to wait for itself thus timing out and printing
        "x threads didn't exit".
        my_thread_global_end() is not enough, as we call my_init() we must call
        my_end() (which calls my_thread_global_end()).
      ba7a2a9a
    • unknown's avatar
      WL#3071 - Maria checkpoint: · 649b3b46
      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
      649b3b46
    • unknown's avatar
      merge of recent MyISAM changes into Maria. · 714f3b73
      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
      714f3b73
  3. 19 Dec, 2006 2 commits
    • unknown's avatar
      Merge gbichot3.local:/home/mysql_src/mysql-5.1-clean · 8b998d11
      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
      8b998d11
    • unknown's avatar
      Maria - merging recent changes done to MyISAM into Maria. · c2f2a41e
      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)
      c2f2a41e
  4. 18 Dec, 2006 2 commits
    • unknown's avatar
      Merge gbichot3.local:/home/mysql_src/mysql-5.1-clean · 51bb36a0
      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
      51bb36a0
    • unknown's avatar
      WL#3071 Maria checkpoint · 7199c905
      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
      7199c905
  5. 16 Dec, 2006 2 commits
    • unknown's avatar
      WL#3071 - Maria checkpoint. Correcting comment about a bad problem. · 71b40497
      unknown authored
      
      storage/maria/ma_checkpoint.c:
        I was too optimistic; problem 1) is really a bad problem.
      71b40497
    • unknown's avatar
      WL#3071 - Maria checkpoint · fa05e9c9
      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
      fa05e9c9
  6. 14 Dec, 2006 5 commits
  7. 12 Dec, 2006 5 commits
  8. 11 Dec, 2006 2 commits
  9. 07 Dec, 2006 14 commits
  10. 06 Dec, 2006 4 commits