1. 11 Nov, 2004 1 commit
    • unknown's avatar
      wl1744- ndb windows · d55be176
      unknown authored
      move ports into ndb_global
      
      
      BitKeeper/deleted/.del-ndb_version.h~c759dd144f698ea:
        Delete: ndb/include/ndb_version.h
      BitKeeper/deleted/.del-ndb_global.h~c4762a8c8f5136c6:
        Delete: ndb/include/ndb_global.h
      configure.in:
        also generate ndb_global
      ndb/include/ndb_types.h:
        fix
      ndb/src/common/mgmcommon/Makefile.am:
        put port into ndb_global
      ndb/src/mgmsrv/ConfigInfo.cpp:
        win
      ndb/src/mgmsrv/Makefile.am:
        moved ports into ndb_global
      ndb/src/ndbapi/ndberror.c:
        use my_snprintf
      d55be176
  2. 10 Nov, 2004 22 commits
    • unknown's avatar
      Merge mysql.com:/home/jonas/src/mysql-4.1 · f000604a
      unknown authored
      into mysql.com:/home/jonas/src/wl1744
      
      
      configure.in:
        Auto merged
      ndb/include/mgmapi/mgmapi.h:
        Auto merged
      ndb/src/common/mgmcommon/Makefile.am:
        Auto merged
      ndb/src/common/mgmcommon/NdbConfig.c:
        Auto merged
      ndb/src/mgmsrv/ConfigInfo.cpp:
        Auto merged
      ndb/src/mgmsrv/Makefile.am:
        Auto merged
      ndb/src/mgmsrv/main.cpp:
        Auto merged
      sql/ha_ndbcluster.cc:
        Auto merged
      f000604a
    • unknown's avatar
      Merge mysql.com:/home/jonas/src/wl1744 · b7a44f59
      unknown authored
      into mysql.com:/home/jonas/src/fix
      
      
      b7a44f59
    • unknown's avatar
      wl1744 - ndb windows port · 78f9a1fc
      unknown authored
      move versing handling into ndb_version.h.in (from config.h)
      
      
      configure.in:
        generate ndb/include/ndb_version.h during configure
      ndb/Makefile.am:
        extra target for just creating dsp files
      78f9a1fc
    • unknown's avatar
      wl1744 - ndb windoze port · fe2a47b2
      unknown authored
      
      ndb/include/ndb_types.h:
        ndb windoze
      ndb/src/common/util/version.c:
        ndb windoze
      ndb/src/mgmsrv/ConfigInfo.cpp:
        ndb windoze
      ndb/src/ndbapi/ndberror.c:
        ndb windoze
      fe2a47b2
    • unknown's avatar
      Merge mysql.com:/home/bk/mysql-4.1 · 8eae81ba
      unknown authored
      into mysql.com:/users/kboortz/daily/work/mysql-4.1-wax
      
      
      8eae81ba
    • unknown's avatar
      Merge · 3b3285b3
      unknown authored
      
      client/mysqldump.c:
        Auto merged
      sql/handler.cc:
        Auto merged
      sql/log_event.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      sql/handler.h:
        SCCS merged
      3b3285b3
    • unknown's avatar
      WL#1596 "make mysqldump --master-data --single-transaction able to do online... · 313ce62f
      unknown authored
      WL#1596 "make mysqldump --master-data --single-transaction able to do online dump of InnoDB AND report reliable
      binlog coordinates corresponding to the dump".
      The good news is that now mysqldump can be used to get an online backup of InnoDB *which works for
      point-in-time recovery and replication slave creation*. Formerly, mysqldump --master-data --single-transaction
      used to call in fact mysqldump --master-data, so the dump was not an online dump (took big lock all time of dump).
      The only lock which is now taken in this patch is at the beginning of the dump: mysqldump does:
      FLUSH TABLES WITH READ LOCK; START TRANSACTION WITH CONSISTENT SNAPSHOT; SHOW MASTER STATUS; UNLOCK TABLES;
      so the lock time is in fact the time FLUSH TABLES WITH READ LOCK takes to return (can be 0 or very long, if
      a table is undergoing a huge update).
      I have done some more minor changes listed in the paragraph of mysqldump.c.
      WL#2237 "WITH CONSISTENT SNAPSHOT clause for START TRANSACTION":
      it's a START TRANSACTION which additionally starts a consistent read on all
      capable storage engine (i.e. InnoDB). So, can serve as a replacement for
      BEGIN; SELECT * FROM some_innodb_table LIMIT 1; which starts a consistent read too. 
      
      
      client/mysqldump.c:
        Main change: mysqldump --single-transaction --master-data is now able to, at the same time,
        take an online dump of InnoDB (using consistent read) AND get the binlog position corresponding to this dump
        (before, using the two options used to silently cancel --single-transaction).
        This uses the new START TRANSACTION WITH CONSISTENT SNAPSHOT syntax.
        Additional changes: 
        a) cleanup:
         - DBerror calls exit() so some code was unneeded
         - no need to call COMMIT at end, leave disconnection do the job
         - mysql_query_with_error_report()
        b) requirements I had heard from colleagues:
         - --master-data now requires an argument, to comment out ("--") the CHANGE MASTER or not
           (commenting had been asked for point-in-time recovery when replication is not necessary).
         - --first-slave is renamed to --lock-all-tables
        c) more sensible behaviours (has been discussed internally):
         - if used with --master-data, --flush-logs is probably intended to get a flush synchronous
           with the dump, not one random flush per dumped db.
         - disabled automatic reconnection as, at least, SQL_MODE would be lost (and also, depending
           on options, LOCK TABLES, BEGIN, FLUSH TABLES WITH READ LOCK).
      include/mysqld_error.h:
        an error if START TRANSACTION WITH CONSISTENT SNAPSHOT is called and there is no consistent-read capable storage engine
        (idea ((C) PeterG) is that it's a bit like CREATE TABLE ENGINE=InnoDB when there is no support for InnoDB).
      sql/handler.cc:
        new ha_start_consistent_snapshot(), which, inside an existing transaction, starts a consistent read
        (offers an alternative to SELECTing any InnoDB table). Does something only for InnoDB.
        Warning if no suitable engine supported.
      sql/handler.h:
        declarations
      sql/lex.h:
        symbols for lex
      sql/share/czech/errmsg.txt:
        new message
      sql/share/danish/errmsg.txt:
        new message
      sql/share/dutch/errmsg.txt:
        new message
      sql/share/english/errmsg.txt:
        new message
      sql/share/estonian/errmsg.txt:
        new message
      sql/share/french/errmsg.txt:
        new message
      sql/share/german/errmsg.txt:
        new message
      sql/share/greek/errmsg.txt:
        new message
      sql/share/hungarian/errmsg.txt:
        new message
      sql/share/italian/errmsg.txt:
        new message
      sql/share/japanese/errmsg.txt:
        new message
      sql/share/korean/errmsg.txt:
        new message
      sql/share/norwegian-ny/errmsg.txt:
        new message
      sql/share/norwegian/errmsg.txt:
        new message
      sql/share/polish/errmsg.txt:
        new message
      sql/share/portuguese/errmsg.txt:
        new message
      sql/share/romanian/errmsg.txt:
        new message
      sql/share/russian/errmsg.txt:
        new message
      sql/share/serbian/errmsg.txt:
        new message
      sql/share/slovak/errmsg.txt:
        new message
      sql/share/spanish/errmsg.txt:
        new message
      sql/share/swedish/errmsg.txt:
        new message
      sql/share/ukrainian/errmsg.txt:
        new message
      sql/sql_lex.h:
        new option in lex (transaction options)
      sql/sql_parse.cc:
        warning comment (never make UNLOCK TABLES commit a transaction, please);
        support for starting consistent snapshot.
      sql/sql_yacc.yy:
        new clause WITH CONSISTENT SNAPSHOT (syntax ok'd by PeterG) for START TRANSACTION.
      313ce62f
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · e862a42d
      unknown authored
      into pcgem.rdg.cyberkinetica.com:/usr/home/acurtis/work/bug6031
      
      
      e862a42d
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1 · e4293968
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1
      
      
      e4293968
    • unknown's avatar
      added configure switch for ndb port number · b6ed85ba
      unknown authored
          added new variable for ndb port 1186
          changed meaning of ndb_port_base to be default tcp port setting
          changed to use split between port and port_base for ndbcluster
          so that ndb_port and ndb_port_base are propagated to startscript for ndbcluster
          added larger space to pid print
          moved readAndExecute out of CommandInterpreter to avoid linking lib with readline
          added c-api to Ndb_mgmclient
          pass also ndb_port to make
      
      
      acinclude.m4:
        added configure switch for ndb port number
      configure.in:
        added new variable for ndb port 1186
        changed meaning of ndb_port_base to be default tcp port setting
      mysql-test/mysql-test-run.sh:
        changed to use split between port and port_base for ndbcluster
      mysql-test/ndb/Makefile.am:
        so that ndb_port and ndb_port_base are propagated to startscript for ndbcluster
      mysql-test/ndb/ndbcluster.sh:
        so that ndb_port and ndb_port_base are propagated to startscript for ndbcluster
      ndb/src/common/mgmcommon/LocalConfig.cpp:
        so that ndb_port and ndb_port_base are propagated to startscript for ndbcluster
      ndb/src/common/mgmcommon/Makefile.am:
        so that ndb_port and ndb_port_base are propagated to startscript for ndbcluster
      ndb/src/common/mgmcommon/NdbConfig.c:
        added larger space to pid print
      ndb/src/mgmclient/CommandInterpreter.cpp:
        moved readAndExecute out of CommandInterpreter to avoid linking lib with readline
        added c-api to Ndb_mgmclient
      ndb/src/mgmclient/main.cpp:
        moved readAndExecute out of CommandInterpreter to avoid linking lib with readline
      ndb/src/mgmclient/ndb_mgmclient.hpp:
        moved readAndExecute out of CommandInterpreter to avoid linking lib with readline
      ndb/src/mgmsrv/ConfigInfo.cpp:
        moved readAndExecute out of CommandInterpreter to avoid linking lib with readline
      ndb/src/mgmsrv/Makefile.am:
        pass also ndb_port to make
      b6ed85ba
    • unknown's avatar
      Bug#6031 - To drop database you have to execute DROP DATABASE command twice. · 97af0a0e
      unknown authored
        DROP DATABASE failed because of file ext not in TYPELIB of known extensions.
        General solution - construct a TYPELIB at runtime instead of a static list.
      
      
      mysql-test/r/ndb_basic.result:
        Bug#6031
          New test for bug
      mysql-test/t/ndb_basic.test:
        Bug#6031
          New test for bug
      sql/ha_ndbcluster.cc:
        Cosmetic fix
      sql/handler.cc:
        Bug#6031
          New function - ha_known_exts()
          We can construct TYPELIB of known db file extensions.
      sql/handler.h:
        Bug#6031
          New function - ha_known_exts()
      sql/sql_db.cc:
        Bug#6031
          We use a constructed list of known extensions instead of a static list
      97af0a0e
    • unknown's avatar
    • unknown's avatar
      wl1744 - nbd windoze port · 63b40952
      unknown authored
      
      ndb/include/logger/SysLogHandler.hpp:
        win-port
      ndb/include/ndb_global.h:
        win-port
      ndb/include/portlib/PortDefs.h:
        win-port
      ndb/src/common/mgmcommon/NdbConfig.c:
        win-port
      ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp:
        win-port
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        win-port
      ndb/src/kernel/blocks/ndbfs/Ndbfs.cpp:
        win-port
      ndb/src/kernel/main.cpp:
        win-port
      ndb/src/kernel/vm/Configuration.cpp:
        win-port
      ndb/src/kernel/vm/Emulator.cpp:
        win-port
      ndb/src/mgmsrv/CommandInterpreter.cpp:
        win-port
      ndb/src/mgmsrv/main.cpp:
        win-port
      scripts/make_win_src_distribution.sh:
        win-port
      63b40952
    • unknown's avatar
      Merge joreland@bk-internal.mysql.com:wl1744 into w2k.:C:/mysql-4.1 · b8ad65ba
      unknown authored
      
      sql/ha_ndbcluster.cc:
        Auto merged
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      b8ad65ba
    • unknown's avatar
      Adding new function prototype · 81880bab
      unknown authored
      81880bab
    • unknown's avatar
      Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-4.1 · 63ad234b
      unknown authored
      into mysql.com:/usr/home/bar/mysql-4.1
      
      
      63ad234b
    • unknown's avatar
      Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-4.1 · 4b3a345b
      unknown authored
      into mysql.com:/usr/home/bar/mysql-4.1
      
      
      4b3a345b
    • unknown's avatar
      Merge mysql.com:/home/wax/mysql/mysql-4.1 · 53d6ae93
      unknown authored
      into mysql.com:/home/wax/mysql/mysql-4.1mysqltest
      
      
      53d6ae93
    • unknown's avatar
      1. When mixing NULL to a character string, · c5e6941e
      unknown authored
      the result takes its charset/collation
      attributes from the character string,
      e.g.  SELECT func(NULL, _latin2'string')
      now returns a latin2 result. This is
      done by introducing a new derivation
      (aka coercibility) level DERIVATION_IGNORABLE,
      which is used with Item_null.
      2. 'Pure' NULL is now BINARY(0), not CHAR(0).
      I.e. NULL is now more typeless.
      
      
      mysql-test/r/metadata.result:
        Fixing test results:
        CHAR(0) -> BINARY(0) for NULLs
      mysql-test/r/null.result:
        Testing mixing NULL with a character string with a number of functions.
      mysql-test/r/ps_2myisam.result:
        Fixing test results:
        CHAR(0) -> BINARY(0) for NULLs
      mysql-test/r/ps_3innodb.result:
        Fixing test results:
        CHAR(0) -> BINARY(0) for NULLs
      mysql-test/r/ps_4heap.result:
        Fixing test results:
        CHAR(0) -> BINARY(0) for NULLs
      mysql-test/r/ps_5merge.result:
        Fixing test results:
        CHAR(0) -> BINARY(0) for NULLs
      mysql-test/r/ps_6bdb.result:
        Fixing test results:
        CHAR(0) -> BINARY(0) for NULLs
      mysql-test/r/ps_7ndb.result:
        Fixing test results:
        CHAR(0) -> BINARY(0) for NULLs
      mysql-test/t/null.test:
        Testing mixing NULL with a character string with a number of functions.
      sql/item.cc:
        New derivation level.
      sql/item.h:
        New derivation level.
      c5e6941e
    • unknown's avatar
      replaced init_db.sql · 297abcb8
      unknown authored
      
      mysql-test/init_db.sql:
        replaced old init_db.sql on new one
      297abcb8
    • unknown's avatar
      bug#6538 · 7d09ee39
      unknown authored
      ndb: Fix return value in index_last wo/ rows
      
      
      sql/ha_ndbcluster.cc:
        Return correct when not finding any row from index_last
      7d09ee39
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1 · a12d6fd6
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1
      
      
      a12d6fd6
  3. 09 Nov, 2004 14 commits
    • unknown's avatar
      wl1744 - win compile fixes · 6049821c
      unknown authored
      
      ndb/include/kernel/signaldata/RepImpl.hpp:
        more win-compile-fixes
      ndb/include/mgmapi/mgmapi.h:
        more win-compile-fixes
      ndb/include/ndbapi/NdbConnection.hpp:
        more win-compile-fixes
      ndb/src/common/util/Properties.cpp:
        more win-compile-fixes
      ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
        more win-compile-fixes
      ndb/src/kernel/blocks/dbdict/Dbdict.hpp:
        more win-compile-fixes
      ndb/src/kernel/blocks/dbdih/Dbdih.hpp:
        more win-compile-fixes
      ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
        more win-compile-fixes
      ndb/src/kernel/blocks/grep/Grep.cpp:
        more win-compile-fixes
      ndb/src/mgmsrv/Config.cpp:
        more win-compile-fixes
      ndb/src/mgmsrv/ConfigInfo.cpp:
        more win-compile-fixes
      ndb/src/mgmsrv/InitConfigFileParser.cpp:
        more win-compile-fixes
      ndb/src/ndbapi/NdbBlob.cpp:
        more win-compile-fixes
      ndb/src/ndbapi/NdbConnection.cpp:
        more win-compile-fixes
      ndb/src/ndbapi/NdbImpl.hpp:
        more win-compile-fixes
      ndb/src/ndbapi/NdbOperationExec.cpp:
        more win-compile-fixes
      ndb/test/ndbapi/testOperations.cpp:
        more win-compile-fixes
      sql/ha_ndbcluster.cc:
        more win-compile-fixes
      6049821c
    • unknown's avatar
      wl1744 - fix compiler problems · 59ee75bd
      unknown authored
      
      ndb/include/debugger/GrepError.hpp:
        prexif
      ndb/include/kernel/LogLevel.hpp:
        fix correct type prototype
      ndb/include/kernel/signaldata/FsCloseReq.hpp:
        remove usage of true
      ndb/include/mgmapi/mgmapi.h:
        use Uint64 instead of long long
      ndb/include/mgmcommon/IPCConfig.hpp:
        correct type
      ndb/include/portlib/NdbTCP.h:
        fix #elif
      ndb/include/transporter/TransporterRegistry.hpp:
        correct type
      ndb/include/util/Parser.hpp:
        correct type
        made stuff public as vc++ couldn't handle template friends
      ndb/include/util/SimpleProperties.hpp:
        correct type
      ndb/src/common/debugger/EventLogger.cpp:
        Prefix GrepError::Code as GrepError::GE_Code
      ndb/src/common/debugger/GrepError.cpp:
        Prefix GrepError::Code as GrepError::GE_Code
      ndb/src/common/debugger/signaldata/FsCloseReq.cpp:
        removed usage of true
      ndb/src/common/debugger/signaldata/FsReadWriteReq.cpp:
        removed usage of true
      ndb/src/common/logger/LogHandlerList.hpp:
        use ndb_global
      ndb/src/common/mgmcommon/ConfigRetriever.cpp:
        removed ConfigRetriever::get_config(file) from windows
      ndb/src/common/transporter/TransporterRegistry.cpp:
        interface is a reserved word in vc++
      ndb/src/kernel/blocks/grep/Grep.hpp:
        Prefix GrepError::Code as GrepError::GE_Code
      ndb/src/kernel/vm/Configuration.cpp:
        Use BaseString::snprintf
      ndb/src/kernel/vm/Configuration.hpp:
        correct type
      ndb/src/kernel/vm/SimplePropertiesSection.cpp:
        correct type
      ndb/src/mgmapi/mgmapi_configuration.cpp:
        use Uin6t4
      ndb/src/mgmapi/mgmapi_configuration.hpp:
        use Uin6t4
      ndb/src/mgmsrv/ConfigInfo.cpp:
        Prefix
      ndb/src/mgmsrv/ConfigInfo.hpp:
        prefix
      ndb/src/ndbapi/Ndb.cpp:
        removed usued include
      ndb/src/ndbapi/NdbImpl.hpp:
        prefix
      ndb/src/ndbapi/ObjectMap.hpp:
        Better typecast
      59ee75bd
    • unknown's avatar
      wl1744 - ndb on windows · f0614a9f
      unknown authored
      Add rules for creating dsp-files
      
      
      f0614a9f
    • unknown's avatar
      Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1 · fdc79aa3
      unknown authored
      into mysql.com:/home/jonas/src/mysql-4.1
      
      
      fdc79aa3
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1 · 4fe50eb7
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1
      
      
      4fe50eb7
    • unknown's avatar
      added management function to purge stale sessions in the management server · 4c26186b
      unknown authored
      
      ndb/include/util/Bitmask.hpp:
        added bitXORC
      ndb/include/util/SocketServer.hpp:
        added method to apply function on each session
      ndb/src/common/util/SocketServer.cpp:
        added method to apply function on each session
      4c26186b
    • unknown's avatar
      Merge mysql.com:/home/bk/mysql-4.1 · 3aff984f
      unknown authored
      into mysql.com:/users/kboortz/daily/work/mysql-4.1-wax
      
      
      3aff984f
    • unknown's avatar
      mysql_test_run_new.c, my_manage.h, my_manage.c: · ce823643
      unknown authored
        Added Solaris compatibility
      
      
      mysql-test/my_manage.c:
        Added Solaris compatibility
      mysql-test/my_manage.h:
        Added Solaris compatibility
      mysql-test/mysql_test_run_new.c:
        Added Solaris compatibility
      ce823643
    • unknown's avatar
      Merge lthalmann@bk-internal.mysql.com:/home/bk/mysql-4.1 · 1043faa9
      unknown authored
      into mysql.com:/home/bkroot/mysql-4.1
      
      
      1043faa9
    • unknown's avatar
      dict0dict.ic: · cbd92676
      unknown authored
        Fix a bug in InnoDB code that fortunately was never used: row id is stored in a record always as a 6-byte unsigned integer, in a 'non-compressed' form
      
      
      innobase/include/dict0dict.ic:
        Fix a bug in InnoDB code that fortunately was never used: row id is stored in a record always as a 6-byte unsigned integer, in a 'non-compressed' form
      cbd92676
    • unknown's avatar
      Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1 · daa71e19
      unknown authored
      into mysql.com:/home/jonas/src/mysql-4.1
      
      
      daa71e19
    • unknown's avatar
    • unknown's avatar
      Merge lthalmann@bk-internal.mysql.com:/home/bk/mysql-4.1 · e741023f
      unknown authored
      into mysql.com:/home/bkroot/mysql-4.1
      
      
      e741023f
    • unknown's avatar
      Simple optimization · 8e8c1a47
      unknown authored
      8e8c1a47
  4. 08 Nov, 2004 3 commits