An error occurred fetching the project authors.
  1. 15 Mar, 2005 1 commit
    • unknown's avatar
      WL#2269 Enable query cache for NDB part 2 · 5329b3a6
      unknown authored
      -This is mostly fixes for correct behaviour when using query cache + transactions + the thread that
      fetches commit count from NDB at regular intervals. The major fix is to add a
      list in thd_ndb, that keeps a list of NDB_SHARE's that were modified by
      transaction and then "clearing" them in ndbcluster_commit.
      
      
      mysql-test/r/ndb_cache2.result:
        Updated test cases for the ndb_util thread, more simultaneous tables and more tesst
      mysql-test/t/ndb_cache2.test:
        Updated test cases for the ndb_util thread, more simultaneous tables and more advanced tesst
      sql/ha_ndbcluster.cc:
        Add table changed during transaction to list of changed tables in Thd_ndb, this list is then used in ndbcluster_commit to invalidate the cached commit_count in share
        Fix so that ndb_util_thread uses milliseconds "sleeps"
        Changed so that ndb_commit_count uses the commit_count from share if available
      sql/ha_ndbcluster.h:
        Add commit_count_lock to NBD_SHARE, use for detecting simultaneous attempts to update commit_count
        Add list of tables changed by transaction to Thd_ndb
        Change check_ndb_connection to take thd as argument, use current_thd as default
        Added m_rows_changed variable to keep track of if this handler has modified any records within the transaction
      sql/set_var.cc:
        Change format of code
        Sort sys__ variables in aplha order
      5329b3a6
  2. 07 Mar, 2005 2 commits
  3. 28 Feb, 2005 1 commit
  4. 23 Feb, 2005 1 commit
  5. 18 Feb, 2005 1 commit
  6. 17 Feb, 2005 1 commit
  7. 16 Feb, 2005 1 commit
  8. 11 Feb, 2005 1 commit
  9. 07 Feb, 2005 1 commit
    • unknown's avatar
      Small changes after Tomas review · 46bb3786
      unknown authored
      sql/ha_ndbcluster.cc:
        Added a pthread_exit before thread exists
      sql/ha_ndbcluster.h:
        Changed storage of commit_count from uint to ulonglong
      46bb3786
  10. 04 Feb, 2005 1 commit
    • unknown's avatar
      Merge of query cache from 4.1 to 5.0 · da440a0b
      unknown authored
      mysql-test/r/ndb_cache.result:
        Added 'order by' to select's
      mysql-test/r/ndb_cache2.result:
        Added 'order by' to select's
      mysql-test/t/ndb_cache.test:
        Added 'order by' to select's
      mysql-test/t/ndb_cache2.test:
        Added 'order by' to select's
      sql/ha_innodb.h:
        Changed function name
      sql/ha_ndbcluster.cc:
        Merge from query cache from 4.1 to 5.0
        Added better comments
        ndb_get_table_statistics had changed, so there where some adaptions to make
      sql/ha_ndbcluster.h:
        Changed name of function
      sql/handler.h:
        Changed name of function
      sql/sql_cache.cc:
        Changed name of function
      da440a0b
  11. 01 Feb, 2005 2 commits
    • unknown's avatar
      WL#2269 Enable query cache for NDB · 1daef391
      unknown authored
      - Added a thread that fetches commit_count for open tables. This
      will mean that NDB will not have to be contacted for every use of a cached query. 
      
      
      sql/ha_ndbcluster.cc:
        Added a thread that periodically will fetch commit_count 
        for open tables and store that value in share. 
        The commit count value is then used when query cache 
        asks if a cached query can be used. 
        The thread activation interval is regulated by the 
        config variable ndb_cache_check_time, it's default value is 0
        which means that NDB is contacted every time a cached query is reused.
      sql/ha_ndbcluster.h:
        Added commit_count to share
        Added ndb_cache_check_time
      sql/mysqld.cc:
        Added config variable ndb_cache_check_time
      sql/set_var.cc:
        Added config variable ndb_cache_check_time
      1daef391
    • unknown's avatar
      Fixed failed merge · 273a7008
      unknown authored
      273a7008
  12. 26 Jan, 2005 1 commit
  13. 14 Jan, 2005 1 commit
    • unknown's avatar
      added support for 'show status like 'Ndb%'' · fa637d79
      unknown authored
      added number_of_replicas printout in show table status
      
      
      mysql-test/r/ndb_alter_table.result:
        added number_of_replicas to show table status printout
      mysql-test/r/ndb_autodiscover.result:
        added number_of_replicas to show table status printout
      ndb/include/ndbapi/NdbDictionary.hpp:
        added get method for replica count
      ndb/include/ndbapi/ndb_cluster_connection.hpp:
        added get method of node id
      ndb/src/ndbapi/NdbDictionary.cpp:
        added get method for replica count
      ndb/src/ndbapi/ndb_cluster_connection.cpp:
        added get method of node id
      fa637d79
  14. 13 Jan, 2005 1 commit
    • unknown's avatar
      To get correct values in SHOW TABLE STATUS · cd759ca2
      unknown authored
          Added pseudo column fragment memory
          changed ndb_get_table_statistics to take struct 
          and read row_size and fragment_memory
      
      
      ndb/include/kernel/AttributeHeader.hpp:
        Added pseudo column fragment memory
      ndb/include/ndbapi/NdbDictionary.hpp:
        Added pseudo column fragment memory
      ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp:
        Added pseudo column fragment memory
      ndb/src/ndbapi/NdbDictionary.cpp:
        Added pseudo column fragment memory
      ndb/src/ndbapi/NdbDictionaryImpl.cpp:
        Added pseudo column fragment memory
      sql/ha_ndbcluster.cc:
        changed ndb_get_table_statistics to take struct 
        and read row_size and fragment_memory
      sql/ha_ndbcluster.h:
        partially implemented update_table_comment
      cd759ca2
  15. 11 Jan, 2005 1 commit
  16. 07 Jan, 2005 1 commit
  17. 04 Jan, 2005 3 commits
  18. 03 Jan, 2005 1 commit
  19. 30 Dec, 2004 1 commit
  20. 29 Dec, 2004 1 commit
  21. 28 Dec, 2004 1 commit
    • unknown's avatar
      wl2126 - fix ndb part of "latest" ingo patch · 7d4204a0
      unknown authored
        (hopefully last :-))
      
      
      ndb/include/ndbapi/NdbDictionary.hpp:
        remove unimplemented types
      ndb/include/ndbapi/NdbReceiver.hpp:
        return pointer to row for simplified handling of current row features
      ndb/include/ndbapi/NdbScanOperation.hpp:
        return pointer to row for simplified handling of current row features
      ndb/src/ndbapi/NdbDictionaryImpl.cpp:
        remove unimplemented types
      ndb/src/ndbapi/NdbIndexOperation.cpp:
        remove unimplemented types
      ndb/src/ndbapi/NdbReceiver.cpp:
        return pointer to row for simplified handling of current row features
      ndb/src/ndbapi/NdbScanOperation.cpp:
        return pointer to row for simplified handling of current row features
      sql/ha_ndbcluster.cc:
        Impl. newest read_multi_range patch
      sql/ha_ndbcluster.h:
        Impl. newest read_multi_range patch
      sql/opt_range.cc:
        Add 1 to compensate for incorrect row estimate of 0
      7d4204a0
  22. 23 Dec, 2004 1 commit
    • unknown's avatar
      backwards compatible name change NdbConnectionto NdbTransaction · 88748b6a
      unknown authored
      removed friend declarations from doxygen
      updated some documentation in mgmapi
      
      
      BitKeeper/deleted/.del-NdbCursorOperation.hpp~da121aeaf101b136:
        Delete: ndb/include/ndbapi/NdbCursorOperation.hpp
      BitKeeper/deleted/.del-NdbCursorOperation.cpp~8d49480ced2deba5:
        Delete: ndb/src/ndbapi/NdbCursorOperation.cpp
      ndb/include/Makefile.am:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/include/kernel/signaldata/ScanTab.hpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/include/kernel/signaldata/TcCommit.hpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/include/kernel/signaldata/TcHbRep.hpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/include/kernel/signaldata/TcIndx.hpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/include/kernel/signaldata/TcKeyConf.hpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/include/kernel/signaldata/TcKeyFailConf.hpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/include/kernel/signaldata/TcRollbackRep.hpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/include/kernel/signaldata/TransIdAI.hpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/include/mgmapi/mgmapi.h:
        backwards compatible name change NdbConnectionto NdbTransaction
        documented some missing things in mgmapi
      ndb/include/ndbapi/Ndb.hpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/include/ndbapi/NdbApi.hpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/include/ndbapi/NdbBlob.hpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/include/ndbapi/NdbDictionary.hpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/include/ndbapi/NdbEventOperation.hpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/include/ndbapi/NdbIndexOperation.hpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/include/ndbapi/NdbIndexScanOperation.hpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/include/ndbapi/NdbOperation.hpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/include/ndbapi/NdbRecAttr.hpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/include/ndbapi/NdbReceiver.hpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/include/ndbapi/NdbScanFilter.hpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/include/ndbapi/NdbScanOperation.hpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/include/ndbapi/NdbTransaction.hpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/src/ndbapi/Makefile.am:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/src/ndbapi/Ndb.cpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/src/ndbapi/NdbApiSignal.hpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/src/ndbapi/NdbBlob.cpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/src/ndbapi/NdbImpl.hpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/src/ndbapi/NdbIndexOperation.cpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/src/ndbapi/NdbOperation.cpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/src/ndbapi/NdbOperationDefine.cpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/src/ndbapi/NdbOperationExec.cpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/src/ndbapi/NdbOperationInt.cpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/src/ndbapi/NdbOperationSearch.cpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/src/ndbapi/NdbReceiver.cpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/src/ndbapi/NdbScanOperation.cpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/src/ndbapi/NdbTransaction.cpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/src/ndbapi/NdbTransactionScan.cpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/src/ndbapi/Ndberr.cpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/src/ndbapi/Ndbif.cpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/src/ndbapi/Ndbinit.cpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/src/ndbapi/Ndblist.cpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      ndb/tools/restore/consumer_restore.hpp:
        backwards compatible name change NdbConnectionto NdbTransaction
      sql/ha_ndbcluster.h:
        backwards compatible name change NdbConnectionto NdbTransaction
      88748b6a
  23. 20 Dec, 2004 1 commit
    • unknown's avatar
      ndb: wl-1893: range scanning backwards, handler · 9acdec63
      unknown authored
      mysql-test/ndb/ndb_range_bounds.pl:
        test ordered scan
      mysql-test/r/ndb_index_ordered.result:
        test ordered scan
      mysql-test/t/ndb_index_ordered.test:
        test ordered scan
      sql/ha_ndbcluster.cc:
        wl-1893: range scanning backwards, handler
      sql/ha_ndbcluster.h:
        wl-1893: range scanning backwards, handler
      9acdec63
  24. 17 Dec, 2004 1 commit
  25. 15 Dec, 2004 1 commit
  26. 07 Dec, 2004 1 commit
    • unknown's avatar
      wl2126 - ndb - bug fixes · d6ff2d46
      unknown authored
      ndb/include/Makefile.am:
        remove result set
      ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
        Fix so that noOfFiredTriggers aren't overwritten during scans
      sql/ha_ndbcluster.cc:
        1) Fix bugs in completed read_multi_range
        2) Change buffer handling so range scan are always put last in buffer
           This to support restart of scan
      sql/ha_ndbcluster.h:
        1) Fix bugs in completed read_multi_range
        2) Change buffer handling so range scan are always put last in buffer
           This to support restart of scan
      d6ff2d46
  27. 06 Dec, 2004 2 commits
    • unknown's avatar
      bf31ceb7
    • unknown's avatar
      wl2126 - ndb - set correct found_p using new pseudo column NDB$RANGE_NO · 3ba2ea26
      unknown authored
      ndb/include/kernel/AttributeHeader.hpp:
        Added range_no pseudo column
      ndb/include/ndbapi/NdbDictionary.hpp:
        Added range_no pseudo column
      ndb/include/ndbapi/NdbIndexScanOperation.hpp:
        Add support for reading range_no
      ndb/include/ndbapi/NdbReceiver.hpp:
        Add support for reading range_no
      ndb/include/ndbapi/NdbScanOperation.hpp:
        Add support for reading range_no
      ndb/src/kernel/blocks/dblqh/Dblqh.hpp:
        Added range_no pseudo column
      ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
        Added range_no pseudo column
      ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp:
        Added range_no pseudo column
      ndb/src/ndbapi/NdbDictionary.cpp:
        Added range_no pseudo column
      ndb/src/ndbapi/NdbDictionaryImpl.cpp:
        Added range_no pseudo column
      ndb/src/ndbapi/NdbReceiver.cpp:
        Add support for reading range_no
      ndb/src/ndbapi/NdbScanOperation.cpp:
        Read range no
      sql/ha_ndbcluster.cc:
        Set correct found_p using new feature read_range_no
      sql/ha_ndbcluster.h:
        Set correct found_p using new feature read_range_no
      3ba2ea26
  28. 01 Dec, 2004 1 commit
    • unknown's avatar
      wl#2126 - ndb - Fix handling of null values wrt read multi range · 11e185b3
      unknown authored
      mysql-test/r/ndb_read_multi_range.result:
        Add tests of null handling to read_multi
      mysql-test/t/ndb_read_multi_range.test:
        Add tests of null handling to read_multi
      ndb/include/ndbapi/NdbOperation.hpp:
        Get recattr
      ndb/include/ndbapi/NdbRecAttr.hpp:
        Get recattr
      sql/ha_ndbcluster.cc:
        Fix handling of null values wrt read multi range
      sql/ha_ndbcluster.h:
        Fix handling of null values wrt read multi range
      11e185b3
  29. 30 Nov, 2004 1 commit
  30. 26 Nov, 2004 1 commit
    • unknown's avatar
      wl2126 - ndb - Enable read_multi_range batching also for range scan(s) · b9ea31b8
      unknown authored
       +fix mysql code style
       +adopt to interface changes by ingo
      
      
      sql/ha_ndbcluster.cc:
        Enable read_multi_range batching also for range scan(s)
         +fix mysql code style
         +adopt to interface changes by ingo
      sql/ha_ndbcluster.h:
        Enable read_multi_range batching also for range scan(s)
         +fix mysql code style
         +adopt to interface changes by ingo
      b9ea31b8
  31. 25 Nov, 2004 1 commit
  32. 24 Nov, 2004 1 commit
    • unknown's avatar
      sql/ha_innodb.cc · 908f2936
      unknown authored
          enabled query cache for ndb
          modified engine interface somewhat
      sql/ha_innodb.h
          enabled query cache for ndb
          modified engine interface somewhat
      sql/ha_ndbcluster.cc
          enabled query cache for ndb
          modified engine interface somewhat
          ndb will only allow caching and retrieval if running autocommit
            - return false, but do not invalidate
          commit count is used as engine data, i.e.
            - store commit count before store of cache
            - allow retrieval if commit count has not changed on a table
            - invalidate if commit count has changed
      sql/ha_ndbcluster.h
          enabled query cache for ndb
          modified engine interface somewhat
      sql/handler.cc
          enabled query cache for ndb
          modified engine interface somewhat
      sql/handler.h
          enabled query cache for ndb
          modified engine interface somewhat
          new virtual handler method cached_table_registration called on each table before alowing store in query cache
            - return TRUE - ok to cache, FALSE - not allowed to cache, invalidate queries if engine_data below has changed
            - sets ulonglong (engine_data) that is stored in query cache for each table
            - sets callback to be called for each table before usage of cached query, callback = 0 -> no check later
      sql/mysql_priv.h
          enabled query cache for ndb
          modified engine interface somewhat
          callcack prototype for callback to engine before query cache retrieval
      sql/sql_cache.cc
          enabled query cache for ndb
          modified engine interface somewhat
          if callback is set on table in cache, do callback to check if allowed to use cache
          if not allowed to use cache, check if engine_data has changed, if so, invalidate all queries with that table
          + changes to store and pass callback and engine_data around
      sql/sql_cache.h
          enabled query cache for ndb
          modified engine interface somewhat
          changes to store callback and engine_data
      sql/table.h
          enabled query cache for ndb
          modified engine interface somewhat
          changes to store callback and engine_data
      
      
      sql/ha_innodb.cc:
        enabled query cache for ndb
        modified engine interface somewhat
      sql/ha_innodb.h:
        enabled query cache for ndb
        modified engine interface somewhat
      sql/ha_ndbcluster.cc:
        enabled query cache for ndb
        modified engine interface somewhat
        ndb will only allow caching and retrieval if running autocommit
          - return false, but do not invalidate
        commit count is used as engine data, i.e.
          - store commit count before store of cache
          - allow retrieval if commit count has not changed on a table
          - invalidate if commit count has changed
      sql/ha_ndbcluster.h:
        enabled query cache for ndb
        modified engine interface somewhat
      sql/handler.cc:
        enabled query cache for ndb
        modified engine interface somewhat
      sql/handler.h:
        enabled query cache for ndb
        modified engine interface somewhat
        new virtual handler method cached_table_registration called on each table before alowing store in query cache
          - return TRUE - ok to cache, FALSE - not allowed to cache, invalidate queries if engine_data below has changed
          - sets ulonglong (engine_data) that is stored in query cache for each table
          - sets callback to be called for each table before usage of cached query, callback = 0 -> no check later
      sql/mysql_priv.h:
        enabled query cache for ndb
        modified engine interface somewhat
        callcack prototype for callback to engine before query cache retrieval
      sql/sql_cache.cc:
        enabled query cache for ndb
        modified engine interface somewhat
        if callback is set on table in cache, do callback to check if allowed to use cache
        if not allowed to use cache, check if engine_data has changed, if so, invalidate all queries with that table
        + changes to store and pass callback and engine_data around
      sql/sql_cache.h:
        enabled query cache for ndb
        modified engine interface somewhat
        changes to store callback and engine_data
      sql/table.h:
        enabled query cache for ndb
        modified engine interface somewhat
        changes to store callback and engine_data
      908f2936
  33. 23 Nov, 2004 1 commit
  34. 22 Nov, 2004 2 commits
    • unknown's avatar
      added force send interface to scan · 9f90db61
      unknown authored
      prepared for using query cache in ndb
      
      
      ndb/include/ndbapi/NdbIndexScanOperation.hpp:
        added force send interface to scan
      ndb/include/ndbapi/NdbResultSet.hpp:
        added force send interface to scan
      ndb/include/ndbapi/NdbScanOperation.hpp:
        added force send interface to scan
      ndb/src/ndbapi/NdbResultSet.cpp:
        added force send interface to scan
      ndb/src/ndbapi/NdbScanOperation.cpp:
        added force send interface to scan
      9f90db61
    • unknown's avatar