1. 10 Apr, 2006 2 commits
  2. 08 Apr, 2006 2 commits
  3. 07 Apr, 2006 10 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · de895a44
      unknown authored
      into  mysql.com:/opt/local/work/mysql-4.1-16365
      
      
      sql/mysql_priv.h:
        Auto merged
      sql/sql_class.h:
        Auto merged
      mysql-test/r/ps.result:
        Manual merge
      mysql-test/t/ps.test:
        Manual merge
      de895a44
    • unknown's avatar
      A fix and a test case for Bug#16365 "Prepared Statements: DoS with · 90237744
      unknown authored
      too many open statements". The patch adds a new global variable
      @@max_prepared_stmt_count. This variable limits the total number
      of prepared statements in the server. The default value of
      @@max_prepared_stmt_count is 16382. 16382 small statements
      (a select against 3 tables with GROUP, ORDER and LIMIT) consume 
      100MB of RAM. Once this limit has been reached, the server will 
      refuse to prepare a new statement and return ER_UNKNOWN_ERROR 
      (unfortunately, we can't add new errors to 4.1 without breaking 5.0). The limit is changeable after startup
      and can accept any value from 0 to 1 million. In case
      the new value of the limit is less than the current
      statement count, no new statements can be added, while the old
      still can be used. Additionally, the current count of prepared 
      statements is now available through a global read-only variable 
      @@prepared_stmt_count.
      
      
      mysql-test/r/ps.result:
        Test results fixed (a test case for Bug#16365)
      mysql-test/t/ps.test:
        A test case for Bug#16365 "Prepared Statements: DoS with too many 
        open statements". Also fix statement leaks in other tests.
      sql/mysql_priv.h:
        Add declarations for new global variables.
      sql/mysqld.cc:
        Add definitions of max_prepared_stmt_count, prepared_stmt_count.
      sql/set_var.cc:
        Implement support for @@prepared_stmt_count and 
        @@max_prepared_stmt_count. Currently these variables are queried
        without acquiring LOCK_prepared_stmt_count due to limitations of
        the set_var/sys_var class design. Updates are, however, protected 
        with a lock.
      sql/set_var.h:
        New declarations to add support for @@max_prepared_stmt_count.
        Implement a new class, where the lock to be used when updating
        a variable is a parameter.
      sql/sql_class.cc:
        Add accounting of the total number of prepared statements in the
        server to the methods of Statement_map.
      sql/sql_class.h:
        Add accounting of the total number of prepared statements in the
        server to the methods of Statement_map.
      sql/sql_prepare.cc:
        Statement_map::insert will now send a message in case of an
        error.
      90237744
    • unknown's avatar
      Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-4.1 · 236ecc3d
      unknown authored
      into mysql.com:/M41/mtr-4.1
      
      236ecc3d
    • unknown's avatar
      A fix and a test case for Bug#16248 "WHERE (col1,col2) IN ((?,?)) · 4ed90726
      unknown authored
      gives wrong results". Implement previously missing 
      Item_row::cleanup. The bug is not repeatable in 5.0, probably 
      due to a coincidence: the problem is present in 5.0 as well.
      
      
      mysql-test/r/ps.result:
        Update the result file (Bug#16248)
      mysql-test/t/ps.test:
        Add a test case for Bug#16248 "WHERE (col1,col2) IN ((?,?)) gives 
        wrong results"
      sql/item_row.cc:
        Implement Item_row::cleanup(): we should reset used_tables_cache
        before reexecution of a prepared statement. In case ROW
        arguments contain a placeholder, used_tables_cache has PARAM_TABLE
        bit set in statement prepare. As a result, when executing a statement,
        the condition push down algorithm (make_cond_for_table) would think
        that the WHERE clause belongs to the non-existent PARAM_TABLE and
        wouldn't attach the WHERE clause to any of the real tables, 
        effectively optimizing the clause away.
      sql/item_row.h:
        Remove a never used member 'array_holder'. Add declaration for
        Item_row::cleanup.
      4ed90726
    • unknown's avatar
      Manual merge. · 14806810
      unknown authored
      14806810
    • unknown's avatar
      mysql-test/mysql-test-run.sh : Provide info about the options used. · cc5e1b77
      unknown authored
      
      mysql-test/mysql-test-run.sh:
        Provide info about the options used for this run to any evaluation tool.
      cc5e1b77
    • unknown's avatar
      mysql-test/mysql-test-run.pl : Add option "with-ndbcluster-only" (ignored). · 0a2d25d7
      unknown authored
      
      mysql-test/mysql-test-run.pl:
        Add option "with-ndbcluster-only" (ignored) for compatibility with newer "Do-compile".
      0a2d25d7
    • unknown's avatar
      Perl test script: Avoid some aborts, which made the whole build/test process terminate. · 08d1ea4e
      unknown authored
      
      mysql-test/lib/mtr_process.pl:
        Change from "mtr_error()" to "mtr_warning()" on some problems,
        because "error" makes the whole suite abort which then makes "Do-compile" terminate,
        so none of the following steps (including other etst suites) will be done.
      08d1ea4e
    • unknown's avatar
      mysql-test/mysql-test-run.sh : Add option "--with-ndbcluster-only" (backport from 5.1) · 7d66c3d9
      unknown authored
      
      mysql-test/mysql-test-run.sh:
        Manual merge from 4.0 (which was a 5.1 backport):
        "--with-ndbcluster" is already present,
        "--with-ndbcluster-only" is really usable here.
      7d66c3d9
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/mysql-4.1 · c35d2656
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/41-work
      
      c35d2656
  4. 06 Apr, 2006 5 commits
    • unknown's avatar
      Backport of 5.1 test options "--with-ndbcluster" and "--with-ndbcluster-only" as dummies (ignored). · 818138f1
      unknown authored
      
      mysql-test/mysql-test-run.sh:
        Make "mysql-test-run.sh" accept (and ignore) the options "--with-ndbcluster" 
        and "--with-ndbcluster-only".
        This is necessary because newer build tools will issue them, and the test 
        script should tolerate that.
        Backport from 5.1 (Tomas Ulin, 2006-01-17)
      818138f1
    • unknown's avatar
      ndb - bug#18612 - post review fixes · 1a12de71
      unknown authored
        1) make sure that check_multi_node_shutdown does not proceed (in stop case)
        2) Fix printout
      
      
      ndb/src/kernel/blocks/qmgr/Qmgr.hpp:
        make sure that check_multi_node_shutdown does not proceed (in stop case)
      ndb/src/kernel/blocks/qmgr/QmgrMain.cpp:
        make sure that check_multi_node_shutdown does not proceed (in stop case)
      1a12de71
    • unknown's avatar
      libmysql.c: · 82c1be05
      unknown authored
        Bug#18830: incompatibility new libraries with old server
        Don't execute SET NAMES with pre-4.1 server.
      
      
      libmysql/libmysql.c:
        Bug#18830: incompatibility new libraries with old server
        Don't execute SET NAMES with pre-4.1 server.
      82c1be05
    • unknown's avatar
      This problem has already been fixed by one of the previous changes. · 6423230d
      unknown authored
      Adding test case to cover queries which worked incorrectly earlier:
      Bug#18321: Can't store EuroSign with latin1_german1_ci and latin1_general_ci
      
      
      mysql-test/r/ctype_latin1.result:
        Adding test case for Bug#18321: Can't store EuroSign with latin1_german1_ci and latin1_general_ci
      mysql-test/t/ctype_latin1.test:
        Adding test case for Bug#18321: Can't store EuroSign with latin1_german1_ci and latin1_general_ci
      6423230d
    • unknown's avatar
      conf_to_src.c: · 56dba198
      unknown authored
        Backporting a 5.0 change:
        MAX_BUF was too small for Index.xml
        Changeing MAX_BUF and adding assert to easier
        catch the same problem in the future.
      ctype-extra.c:
        Regenerating ctype-extra.c with the fixed conf_to_src.
      
      
      strings/ctype-extra.c:
        Regenerating ctype-extra.c with the fixed conf_to_src.
      strings/conf_to_src.c:
        Backporting a 5.0 change:
        MAX_BUF was too small for Index.xml
        Changeing MAX_BUF and adding assert to easier
        catch the same problem in the future.
      56dba198
  5. 03 Apr, 2006 8 commits
    • unknown's avatar
      ndb - · 1dc85e36
      unknown authored
        fix testprogam if only 1 node group
      
      
      ndb/test/ndbapi/testNodeRestart.cpp:
        fix testprogam if only 1 node group
      1dc85e36
    • unknown's avatar
      Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-4.1 · df6288ec
      unknown authored
      into  mysql.com:/usr/home/bar/mysql-4.1.12076
      
      df6288ec
    • unknown's avatar
      ndb - · 525660d3
      unknown authored
        Fix compile error...when compiling debug
      
      
      ndb/include/kernel/signaldata/FailRep.hpp:
        Fix compile error...when compiling debug
      525660d3
    • unknown's avatar
      ndb - bug#18612 - partitioned startup · 0d59ecd4
      unknown authored
        add testprg for SR case aswell
      
      
      ndb/test/ndbapi/testNodeRestart.cpp:
        Test also partitioned start during SR
      ndb/test/run-test/daily-basic-tests.txt:
        Test also partitioned start during SR
      0d59ecd4
    • unknown's avatar
      ndb - bug#18612 · 4c5c2019
      unknown authored
        post weeked fixes :-)
        change impl. to use READ_NODESREQ to query state of other qmgr(partition)
          this as it has no (current) side effects, so that it's possible only to kill
          starting cluster (if one started and one starting)
      
      
      ndb/include/kernel/signaldata/FailRep.hpp:
        Add paritioned FAIL_REP
      ndb/src/kernel/blocks/qmgr/Qmgr.hpp:
        Use READ_NODESREQ to query state of other QMGR (instead of CM_REGREQ)
      ndb/src/kernel/blocks/qmgr/QmgrInit.cpp:
        Use READ_NODESREQ to query state of other QMGR (instead of CM_REGREQ)
      ndb/src/kernel/blocks/qmgr/QmgrMain.cpp:
        Use READ_NODESREQ to query state of other QMGR (instead of CM_REGREQ)
      ndb/test/ndbapi/testNodeRestart.cpp:
        Require that only starting cluster dies
      4c5c2019
    • unknown's avatar
      Makefile.am: · 75553aba
      unknown authored
        Distribute mysql-test-run.pl
      
      
      mysql-test/Makefile.am:
        Distribute mysql-test-run.pl
      75553aba
    • unknown's avatar
      Merge mysql.com:/Users/kent/mysql/bk/mysql-4.0 · 86a8a0e9
      unknown authored
      into mysql.com:/Users/kent/mysql/bk/mysql-4.1-new
      
      
      scripts/mysql_install_db.sh:
        Auto merged
      86a8a0e9
    • unknown's avatar
      mysql_install_db.sh, MySQLEULA.txt, mysql_install_db.c: · 6e636278
      unknown authored
        Changed web address order.mysql.com to shop.mysql.com
      
      
      netware/mysql_install_db.c:
        Changed web address order.mysql.com to shop.mysql.com
      Docs/MySQLEULA.txt:
        Changed web address order.mysql.com to shop.mysql.com
      scripts/mysql_install_db.sh:
        Changed web address order.mysql.com to shop.mysql.com
      6e636278
  6. 02 Apr, 2006 1 commit
    • unknown's avatar
      Makefile.am: · c8fb1c17
      unknown authored
        Install Perl mysql-test-run into test directory
      
      
      mysql-test/Makefile.am:
        Install Perl mysql-test-run into test directory
      c8fb1c17
  7. 01 Apr, 2006 5 commits
    • unknown's avatar
      Makefile.am: · 67ccc002
      unknown authored
        Let "make install" install mysql-test-run.pl
      mysql.spec.sh:
        Set $LDFLAGS from $MYSQL_BUILD_LDFLAGS (bug#16662)
      
      
      support-files/mysql.spec.sh:
        Set $LDFLAGS from $MYSQL_BUILD_LDFLAGS (bug#16662)
      mysql-test/Makefile.am:
        Let "make install" install mysql-test-run.pl
      67ccc002
    • unknown's avatar
      Merge mysql.com:/Users/kent/mysql/bk/mysql-4.0 · 96f80a2b
      unknown authored
      into mysql.com:/Users/kent/mysql/bk/mysql-4.1-new
      
      
      README:
        Auto merged
      96f80a2b
    • unknown's avatar
      README: · bcc7bff4
      unknown authored
        Typo (bug#17167)
      
      
      README:
        Typo (bug#17167)
      bcc7bff4
    • unknown's avatar
      acinclude.m4: · 59ce92b9
      unknown authored
        Use CPPFLAGS when testing to link "libz" found in --with-zlib-dir=,
        and search the given include directory first (bug#18369)
      
      
      acinclude.m4:
        Use CPPFLAGS when testing to link "libz" found in --with-zlib-dir=,
        and search the given include directory first (bug#18369)
      59ce92b9
    • unknown's avatar
      vcproj files: · 74eb78c9
      unknown authored
        Set MYSQL_SERVER_SUFFIX from build scripts, not hard
        code it into Visual Studio project files, bug#15974
      
      
      VC++Files/bdb/bdb.vcproj:
        Set MYSQL_SERVER_SUFFIX from build scripts, not hard code into project files, bug#15974
      VC++Files/innobase/innobase.vcproj:
        Set MYSQL_SERVER_SUFFIX from build scripts, not hard code into project files, bug#15974
      VC++Files/libmysqld/libmysqld.vcproj:
        Set MYSQL_SERVER_SUFFIX from build scripts, not hard code into project files, bug#15974
      VC++Files/mysqldemb/mysqldemb.vcproj:
        Set MYSQL_SERVER_SUFFIX from build scripts, not hard code into project files, bug#15974
      VC++Files/mysys/mysys.vcproj:
        Set MYSQL_SERVER_SUFFIX from build scripts, not hard code into project files, bug#15974
      VC++Files/sql/mysqld.vcproj:
        Set MYSQL_SERVER_SUFFIX from build scripts, not hard code into project files, bug#15974
      74eb78c9
  8. 31 Mar, 2006 4 commits
    • unknown's avatar
      ndb - autotest · 4b189024
      unknown authored
        add new testpgrom for bug#18612 to autotest
      
      
      ndb/test/run-test/daily-basic-tests.txt:
        Add new testprogram to autotest
      4b189024
    • unknown's avatar
      ndb - bug#18612 (detection of partitioned cluster) · d428782c
      unknown authored
        this also impl. gcp safe multi node shutdown
        1) block gcp
        2) wait for ongoing gcp
        3) inform all stopping QMGR's (so that they don't start with error handler)
        4) wait for all QMGR's to reply
        5) broadcast failrep for stopping nodes
        6) (if !master died) unblock gcp
      
        
      
      
      ndb/include/kernel/signaldata/DumpStateOrd.hpp:
        Impl. GCP safe multi node shutdown in order to test bug#18612
      ndb/include/kernel/signaldata/FailRep.hpp:
        Impl. GCP safe multi node shutdown in order to test bug#18612
      ndb/include/kernel/signaldata/StopReq.hpp:
        Impl. GCP safe multi node shutdown in order to test bug#18612
      ndb/src/kernel/blocks/ndbcntr/Ndbcntr.hpp:
        Impl. GCP safe multi node shutdown in order to test bug#18612
      ndb/src/kernel/blocks/ndbcntr/NdbcntrInit.cpp:
        Impl. GCP safe multi node shutdown in order to test bug#18612
      ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp:
        Impl. GCP safe multi node shutdown in order to test bug#18612
      ndb/src/kernel/blocks/qmgr/Qmgr.hpp:
        Impl. GCP safe multi node shutdown in order to test bug#18612
      ndb/src/kernel/blocks/qmgr/QmgrInit.cpp:
        Impl. GCP safe multi node shutdown in order to test bug#18612
      ndb/src/kernel/blocks/qmgr/QmgrMain.cpp:
        Impl. GCP safe multi node shutdown in order to test bug#18612
      ndb/test/ndbapi/testNodeRestart.cpp:
        test program for bug#18612
      d428782c
    • unknown's avatar
      ndb - add support for blocking/unblocking GCP using WAIT_GCP_REQ · af3b5f97
      unknown authored
      
      ndb/include/kernel/signaldata/WaitGCP.hpp:
        Add supprt for block/unblocking GCP
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Add supprt for block/unblocking GCP
      af3b5f97
    • unknown's avatar
      ndb - bug#16447 · a8bb2ea4
      unknown authored
        correct return value in check_cm_cmregreq
      
      
      ndb/src/kernel/blocks/qmgr/QmgrMain.cpp:
        Fix bug in bug#16447
      ndb/test/src/NdbRestarts.cpp:
        Fix bug in test program
      a8bb2ea4
  9. 30 Mar, 2006 3 commits
    • unknown's avatar
      ndb - bug#15695 bug#16447 bug#18612 · 8a40180c
      unknown authored
        For various reasone have a partitioned cluster been created
        This patch makes sure that when they connect
        1) it's detected
        2) shutdown is forced
      
      
      ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp:
        New dump/error insert for simulating network failure
      ndb/src/kernel/blocks/qmgr/Qmgr.hpp:
        1) Activly detect paritioned cluster(s)
        2) add some documentation
      ndb/src/kernel/blocks/qmgr/QmgrMain.cpp:
        1) Activly detect paritioned cluster(s)
        2) add some documentation
      8a40180c
    • unknown's avatar
      Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-4.1 · c3d37fe8
      unknown authored
      into sunlight.local:/local_work/15560-bug-4.1-mysql
      
      
      sql/sql_table.cc:
        Auto merged
      c3d37fe8
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · e40f4b85
      unknown authored
      into  mysql.com:/home/my/mysql-4.1
      
      e40f4b85