1. 05 May, 2006 2 commits
  2. 04 May, 2006 3 commits
    • unknown's avatar
      Fixed compiler warnings · 5eb37339
      unknown authored
      Move plugin declarations after system functions have been checked
      (Fixes problem with ndb_config failing becasue SHM is not declared)
      Fixed some memory leaks
      
      
      configure.in:
        Move plugin declarations after system functions have been checked
        (Fixes problem with ndb_config failing becasue SHM is not declared)
      mysql-test/t/disabled.def:
        Disabled ndb_load, as it is in 5.0
        (Fails randomly in binlog_close_connection())
      mysql-test/t/log_tables.test:
        Update error numbers
      mysql-test/t/ndb_config.test:
        Moved test depending on SHM to ndb_config2.test
      mysql-test/t/ndb_partition_error.test:
        Update error numbers
      sql/event_timed.cc:
        Removed not needed line
      sql/ha_berkeley.cc:
        Fixed compiler warning
      sql/ha_heap.cc:
        Fixed compiler warning
      sql/ha_innodb.cc:
        Fixed compiler warning
      sql/ha_myisam.cc:
        Fixed compiler warning
      sql/ha_myisammrg.cc:
        Fixed compiler warning
      sql/ha_ndbcluster.cc:
        Fixed compiler warning
      sql/ha_partition.cc:
        Fixed compiler warning
      sql/mysql_priv.h:
        A...
      5eb37339
    • unknown's avatar
      ndb: · 0933607b
      unknown authored
      stilled small memleak
      + changed clear/init indexes code a litter
      
      0933607b
    • unknown's avatar
  3. 02 May, 2006 1 commit
    • unknown's avatar
      WL#3201 additional post-review fixes · 3a62ffc8
      unknown authored
      config/ac-macros/plugins.m4:
        remove unneccessary `ifelse'
        add comment, add missing dnl
      configure.in:
        change description for heap engine
      include/mysql/plugin.h:
        change macro name
      sql/ha_berkeley.cc:
        store strings statically for use in handlerton and plugin structures
      sql/ha_federated.cc:
        store strings statically for use in handlerton and plugin structures
      sql/ha_heap.cc:
        store strings statically for use in handlerton and plugin structures
      sql/ha_innodb.cc:
        store strings statically for use in handlerton and plugin structures
      sql/ha_myisam.cc:
        store strings statically for use in handlerton and plugin structures
      sql/ha_myisammrg.cc:
        store strings statically for use in handlerton and plugin structures
      sql/ha_ndbcluster.cc:
        store strings statically for use in handlerton and plugin structures
      sql/ha_partition.cc:
        store strings statically for use in handlerton and plugin structures
      storage/archive/ha_archive.cc:
        store strings statically for use in handlerton and plugin structures
      storage/blackhole/ha_blackhole.cc:
        store strings statically for use in handlerton and plugin structures
      storage/csv/ha_tina.cc:
        store strings statically for use in handlerton and plugin structures
      storage/example/ha_example.cc:
        store strings statically for use in handlerton and plugin structures
      3a62ffc8
  4. 26 Apr, 2006 1 commit
  5. 25 Apr, 2006 1 commit
  6. 21 Apr, 2006 1 commit
    • unknown's avatar
      ndb: corrected install dir · 524f6b3b
      unknown authored
          ndb: corrected initialization of records
      
      
      mysql-test/Makefile.am:
        ndb: corrected install dir
      sql/ha_ndbcluster.cc:
        ndb: corrected initialization of records
      524f6b3b
  7. 20 Apr, 2006 2 commits
  8. 19 Apr, 2006 4 commits
  9. 16 Apr, 2006 1 commit
    • unknown's avatar
      WL 2826: Error handling of ALTER TABLE for partitioning · 4ca53a39
      unknown authored
      After review changes
      
      
      mysql-test/r/ndb_partition_key.result:
        Fixed result file
      sql/ha_ndbcluster.cc:
        Fixed interface to create_handler_files
      sql/ha_ndbcluster.h:
        Fixed interface to create_handler_files
      sql/ha_partition.cc:
        Fixed interface to create_handler_files and made it two-stage for rename
        Removed print_error and now it's used by MySQL Server parts instead
      sql/ha_partition.h:
        Fixed interface to create_handler_files
      sql/mysql_priv.h:
        Fixed error injects
        Externalised Global DDL log mutex
        Some interface changes
      sql/mysqld.cc:
        Moved close of DDL log until all user threads been closed
      sql/sql_base.cc:
        Interface changes
      sql/sql_partition.cc:
        Moved print_error to mysql server part
      sql/sql_table.cc:
        Lots of after review changes
      sql/table.cc:
        Fixed upgrade code
      4ca53a39
  10. 13 Apr, 2006 1 commit
    • unknown's avatar
      WL#3201 · bf4731ec
      unknown authored
        " Configure support for server plugins "
      
      
      storage/blackhole/ha_blackhole.h:
        Rename: sql/ha_blackhole.h -> storage/blackhole/ha_blackhole.h
      BitKeeper/deleted/.del-storage.m4~24bf2fffdaa328ad:
        Delete: config/ac-macros/storage.m4
      BitKeeper/deleted/.del-ha_archive.m4~a07fac7110b39294:
        Delete: config/ac-macros/ha_archive.m4
      BitKeeper/deleted/.del-ha_blackhole.m4~8ed06eb91f6420ed:
        Delete: config/ac-macros/ha_blackhole.m4
      BitKeeper/deleted/.del-ha_example.m4~1dfb268163297708:
        Delete: config/ac-macros/ha_example.m4
      BitKeeper/deleted/.del-ha_federated.m4~7acddd58286acfd6:
        Delete: config/ac-macros/ha_federated.m4
      BitKeeper/deleted/.del-ha_innodb.m4~6f141fb5b80c1f39:
        Delete: config/ac-macros/ha_innodb.m4
      BitKeeper/deleted/.del-ha_partition.m4~bc57067550be5f89:
        Delete: config/ac-macros/ha_partition.m4
      BitKeeper/deleted/.del-ha_tina.m4~f658506ebbc113ca:
        Delete: config/ac-macros/ha_tina.m4
      BitKeeper/deleted/.del-handlerton.cc.in~377156e7b06067cc:
        Delete: sql/handlerton.cc.in
      BitKeeper/deleted/.del-handlerton-win.cc~322a7e59507976df:
        Delete: sql/handlerton-win.cc
      BUILD/SETUP.sh:
        WL#3201
          Changes in configure arguments
      Makefile.am:
        WL#3201
          changes in build subst names
      config/ac-macros/ha_berkeley.m4:
        WL#3201
          remove unused variable
          Makefile is always made
      config/ac-macros/ha_ndbcluster.m4:
        WL#3201
          remove unused variables
          Split big macro
      configure.in:
        WL#3201
          out with storage.m4, in with plugins.m4
          change how plugins are declared
          include makefiles, remove handlerton.cc, add sql_builtin.cc
      include/mysql/plugin.h:
        WL#3201
          support static and dynamic build - MYSQL_DYNAMIC_PLUGIN
      libmysqld/Makefile.am:
        WL#3201
          Storage engine files still left in sql subdir are not conditionally
          compiled. Should move them out soon,
      plugin/Makefile.am:
        WL#3201
          update makefile
      plugin/fulltext/Makefile.am:
        WL#3201
          update makefile
      plugin/fulltext/plugin_example.c:
        WL#3201
          change to mysql_declare_plugin macro
      sql/Makefile.am:
        WL#3201
          Storage engine files still left in sql subdir are not conditionally
          compiled. Should move them out soon,
      sql/ha_berkeley.cc:
        WL#3201
          make into a plugin
          conditionally compile content
      sql/ha_federated.cc:
        WL#3201
          make into a plugin
          conditionally compile content
      sql/ha_heap.cc:
        WL#3201
          make into a plugin
      sql/ha_innodb.cc:
        WL#3201
          make into a plugin
          conditionally compile content
      sql/ha_myisam.cc:
        WL#3201
          make into a plugin
      sql/ha_myisammrg.cc:
        WL#3201
          make into a plugin
      sql/ha_ndbcluster.cc:
        WL#3201
          make into a plugin
          conditionally compile content
      sql/ha_ndbcluster_binlog.cc:
        WL#3201
          make into a plugin
          conditionally compile content
      sql/ha_partition.cc:
        WL#3201
          make into a plugin
          conditionally compile content
      sql/handler.cc:
        WL#3201
          Simplify how storage engines are found by db_type
          (hopefully we can get rid of it soon)
          Code cleanup
      sql/handler.h:
        WL#3201
          new DB_TYPE_FIRST_DYNAMIC
          new func ha_finalize_handlerton()
          remove ha_register_builtin_plugins()
      sql/log.cc:
        WL#3201
          make into a plugin
      sql/mysqld.cc:
        WL#3201
          remove ha_register_builtin_plugins()
          alter init order so that storage engines are initialized before first use
      sql/partition_info.cc:
        WL#3201
          conditionally compile content
      sql/sql_delete.cc:
        WL#3201
          conditionally include ha_innodb.h
      sql/sql_plugin.cc:
        WL#3201
          All compiled in plugins are in mysqld_builtins[]
          add funcs for plugin finalization
          install builtin plugins on initialization
      sql/sql_show.cc:
        WL#3201
          Fix to use plugin_foreach()
      sql/sql_yacc.yy:
        WL#3201
          SHOW FULL PLUGIN
      storage/archive/Makefile.am:
        WL#3201
          setup as plugin makefile
      storage/archive/ha_archive.cc:
        WL#3201
          Convert into a plugin
      storage/archive/ha_archive.h:
        WL#3201
          azlib.h now in local dir
      storage/blackhole/ha_blackhole.cc:
        WL#3201
          convert into a plugin
      storage/csv/Makefile.am:
        WL#3201
          setup as plugin makefile
      storage/csv/ha_tina.cc:
        WL#3201
          remove conditional compilation on MYSQL_PLUGIN
          mysql_declare_plugin macro change
      storage/example/Makefile.am:
        WL#3201
          fix as new-style plugin makefile
      storage/example/ha_example.cc:
        WL#3201
          remove conditional compilation on MYSQL_PLUGIN
          mysql_declare_plugin macro change
      storage/innobase/Makefile.am:
        WL#3201
          Lets make life easier and reduce innodb into a single library file
      config/ac-macros/plugins.m4:
        New BitKeeper file ``config/ac-macros/plugins.m4''
      sql/sql_builtin.cc.in:
        New BitKeeper file ``sql/sql_builtin.cc.in''
      storage/blackhole/Makefile.am:
        New BitKeeper file ``storage/blackhole/Makefile.am''
      bf4731ec
  11. 11 Apr, 2006 2 commits
  12. 10 Apr, 2006 2 commits
    • unknown's avatar
      ndb - · 95f9acc1
      unknown authored
        fix all valgrind warnings in t/ndb_dd (except replication related)
      
      
      sql/ha_ndbcluster.cc:
        Fix memleak
      storage/ndb/include/kernel/signaldata/DictTabInfo.hpp:
        Fix valgrind warning
      storage/ndb/include/kernel/signaldata/DropFilegroup.hpp:
        Fix valgrind warning
      storage/ndb/src/common/debugger/signaldata/DictTabInfo.cpp:
        Fix valgrind warning
      storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
        Fix valgrind warning
      storage/ndb/src/kernel/blocks/dbdict/Dbdict.hpp:
        Fix valgrind warning
      storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp:
        Fix valgrind warning
      storage/ndb/src/ndbapi/ndberror.c:
        Fix valgrind warning
      95f9acc1
    • unknown's avatar
      Bug #18932: Cluster binlog mysqld accepts updating although binlog not setup · 51242def
      unknown authored
      sql/ha_ndbcluster.cc:
        Bug #18932: Cluster binlog mysqld accepts updating although binlog not setup
        - put ndb tables in read only until binlog is setup properly
      sql/ha_ndbcluster_binlog.cc:
        Bug #18932: Cluster binlog mysqld accepts updating although binlog not setup
        - put ndb tables in read only until binlog is setup properly
      51242def
  13. 07 Apr, 2006 1 commit
    • unknown's avatar
      Bug#13228 open table cache not flushed when table schema changed · 9dab3fe2
      unknown authored
      - Error 1296 is no longer returned on first select after DROP/CREATE.
      
      
      mysql-test/r/ndb_alter_table2.result:
        Error 1296 is no longer returned on first select after DROP/CREATE, handled proactive in ndb_handle_schema_change.
      mysql-test/t/ndb_alter_table2.test:
        Error 1296 is no longer returned on first select after DROP/CREATE, handled proactive in ndb_handle_schema_change.
      sql/ha_ndbcluster.cc:
        Add sourrounding {'s
      9dab3fe2
  14. 05 Apr, 2006 1 commit
    • unknown's avatar
      Bug #13601: Wrong int type for bit · e13642dc
      unknown authored
        The wrong value was being reported as the field_length for BIT
        fields, resulting in confusion for at least Connector/J. The
        field_length is now always the number of bits in the field, as
        it should be.
      
      
      mysql-test/r/type_bit.result:
        Add new results
      mysql-test/r/type_bit_innodb.result:
        Add new results
      mysql-test/t/type_bit.test:
        Add new regression test
      mysql-test/t/type_bit_innodb.test:
        Add new regression test
      sql/field.cc:
        Fix Field_bit->field_length to actually report the display width, and
        store the bytes stored in the rec in the new bytes_in_rec member.
      sql/field.h:
        Fix Field_bit::field_length to store the correct value, adding
        Field_bit::bytes_in_rec to remember the number of bytes used for
        storing the value. Remove Field_bit_as_char::create_length, as it
        is now redundant.
      sql/ha_ndbcluster.cc:
        Handle field_length of Field_bit actually being the display width (# of bits).
      sql/key.cc:
        Fix inappropriate use of field->field_length for BIT field.
      e13642dc
  15. 29 Mar, 2006 4 commits
    • unknown's avatar
      Fix for bug#18598 ndb_partition_list · ad70c412
      unknown authored
      ad70c412
    • unknown's avatar
      Remove compiler warnings · 2aab3517
      unknown authored
      Add missing DBUG_RETURN
      Fixed stack overflow in NdbBlob (found by ndb_gis.test)
      Fixed access to freed memory in ndb_cluster_real_free_share()
      
      
      mysys/mf_keycache.c:
        Add missing DBUG_RETURN
      sql/ha_ndbcluster.cc:
        Move free_root to after share handling, as otherwise we will free things needed by free_table_share()
      sql/item_func.cc:
        Add missing DBUG_RETURN
      sql/item_strfunc.cc:
        Add missing DBUG_RETURN
      sql/sp_head.cc:
        Add missing DBUG_RETURN
      sql/sql_base.cc:
        Add missing DBUG_RETURN
      storage/csv/ha_tina.cc:
        Add missing DBUG_RETURN
      storage/myisam/mi_key.c:
        Add missing DBUG_RETURN
      storage/myisam/mi_keycache.c:
        Add missing DBUG_RETURN
      storage/ndb/include/kernel/signaldata/ArbitSignalData.hpp:
        Remove compiler warning
      storage/ndb/include/kernel/signaldata/DictTabInfo.hpp:
        Remove compiler warning
      storage/ndb/include/transporter/TransporterDefinitions.hpp:
        Remove compiler warning
      storage/ndb/include/util/SimpleProperties.hpp:
        Remove compiler warning
      storage/ndb/include/util/SocketServer.hpp:
        Remove compiler warning
      storage/ndb/src/ndbapi/ClusterMgr.hpp:
        Remove compiler warning
      storage/ndb/src/ndbapi/NdbBlob.cpp:
        Fix stack overflow
      storage/ndb/src/ndbapi/NdbEventOperationImpl.hpp:
        Remove compiler warning
      storage/ndb/src/ndbapi/NdbScanOperation.cpp:
        Remove compiler warning
      2aab3517
    • unknown's avatar
      Fixed compiler and valgrind warnings · eda5d729
      unknown authored
      Added missing DBUG_xxx_RETURN statements
      Fixed some usage of not initialized variables (as found by valgrind)
      Ensure that we don't remove locked tables used as name locks from open table cache until unlock_table_names() are called.
      This was fixed by having drop_locked_name() returning any table used as a name lock so that we can free it in unlock_table_names()
      This will allow Tomas to continue with his work to use namelocks to syncronize things.
      
      Note: valgrind still produces a lot of warnings about using not initialized code and shows memory loss errors when running the ndb tests
      
      
      BitKeeper/etc/ignore:
        added mysql-test/r/*.log
      client/mysqltest.c:
        Change type of variables to get rid of compiler warnings
        More debugging
        Fix memory leak
      mysql-test/mysql-test-run.sh:
        Collect warnings about missing DBUG_RETURN statements
      mysql-test/r/lock_multi.result:
        Add test of new code
      mysql-test/r/ndb_condition_pushdown.result:
        Drop used tables before test
      mysql-test/t/lock_multi.test:
        Add test of new code
      mysql-test/t/ndb_condition_pushdown.test:
        Drop used tables before test
      mysql-test/valgrind.supp:
        Ignore 'safe' warnings from libz (when used with archive)
      sql/event.cc:
        More comments
        Simplify code
        Fixed memory leak found by valgrind
      sql/ha_archive.cc:
        Remove compiler warnings (Wrong handlerton structure and signed/unsigned comparison)
      sql/ha_berkeley.cc:
        Fixed compiler warning
      sql/ha_blackhole.cc:
        Fixed compiler warning
      sql/ha_federated.cc:
        Fixed compiler warning
      sql/ha_heap.cc:
        Fixed compiler warning
      sql/ha_myisam.cc:
        Fixed compiler warning
      sql/ha_myisammrg.cc:
        Fixed compiler warning
      sql/ha_ndbcluster.cc:
        Fixed compiler warnings
      sql/ha_partition.cc:
        Fixed compiler warning
        Fixed error noticed by valgrind in ha_partition::rnd_init()
      sql/handler.cc:
        Fixed compiler warning
      sql/handler.h:
        Fixed compiler warning
      sql/item.cc:
        Fixed compiler warning
      sql/item_xmlfunc.cc:
        Fixed warning from valgrind when calling memcpy with wrong address
      sql/lock.cc:
        More debugging
      sql/log.cc:
        Fixed compiler warning
        Indentation fixes
      sql/log.h:
        Fixed compiler warning
      sql/mysql_priv.h:
        Changed prototype for 'drop_locked_tables'
      sql/opt_range.cc:
        Indentation fix
      sql/password.c:
        Removed compiler warnings
      sql/set_var.cc:
        Fixed compiler warning
      sql/slave.cc:
        Fixed compiler warning
      sql/sp_head.cc:
        Fixed compiler warning
      sql/sql_acl.cc:
        Fixed compiler warning
      sql/sql_analyse.cc:
        Added missing DBUG_RETURN statements
      sql/sql_base.cc:
        Removed de-reference of not initialized pointer
        More comments
        drop_locked_tables() changed to not delete tables used for name locking
        Fixed compiler warnings
      sql/sql_delete.cc:
        Fixed usage of not initialized variable
        (deleted could be referenced in some not common error conditions)
      sql/sql_parse.cc:
        Added missing DBUG_VOID_RETURN
        Simplify code
      sql/sql_partition.cc:
        Fixed usage of wrong variable (noticed by valgrind)
      sql/sql_plugin.cc:
        Removed compiler warning
      sql/sql_show.cc:
        Removed compiler warning
      sql/sql_table.cc:
        Ensure that we don't remove locked tables used as name locks from open table cache until unlock_table_names() are called.
        This was fixed by having drop_locked_name() returning any table used as a name lock so that we can free it in unlock_table_names()
        This will allow Tomas to continue with his work to use namelocks to syncronize things.
        
        Fixed wrong test of 'table_type' (path_length could otherwise be accessed uninitialized)
        
        Remove compile warnings about not initialized variables.
      sql/sql_yacc.yy:
        Ensure that no_write_to_binlog is properly initialized
        (Was accessed uninitialized by partition code)
      sql/table.cc:
        Removed valgrind warnings (not fatal)
        Removed compiler warnings
      sql/tztime.cc:
        Removed valgrind warning
      storage/ndb/include/ndbapi/NdbIndexStat.hpp:
        Removed compiler warning
      eda5d729
    • unknown's avatar
      Added more debugging printouts · 6afab8f5
      unknown authored
      6afab8f5
  16. 28 Mar, 2006 3 commits
  17. 27 Mar, 2006 1 commit
    • unknown's avatar
      removed rpl_ndb_sp007 test as it uses savepoints which is only supported by innodb · ed4e3306
      unknown authored
      compile error fixes
      
      
      BitKeeper/deleted/.del-rpl_ndb_sp007.test~72c66392eed0d74:
        Delete: mysql-test/t/rpl_ndb_sp007.test
      BitKeeper/deleted/.del-rpl_ndb_sp007.result~b1b713abfd655893:
        Delete: mysql-test/r/rpl_ndb_sp007.result
      mysql-test/t/disabled.def:
        removed rpl_ndb_sp007 test as it uses savepoints which is only supported by innodb
      sql/ha_ndbcluster.cc:
        compile error fixes
      ed4e3306
  18. 24 Mar, 2006 2 commits
  19. 23 Mar, 2006 3 commits
  20. 18 Mar, 2006 1 commit
  21. 14 Mar, 2006 2 commits
  22. 09 Mar, 2006 1 commit