1. 10 Apr, 2006 1 commit
    • unknown's avatar
      BUG#18966 Change in stop/shutdown behaviour · ea16e525
      unknown authored
      fix behaviour of ALL STOP and SHUTDOWN in relation to MGM nodes
      
      
      ndb/src/mgmclient/CommandInterpreter.cpp:
        Shutdown management servers properly (one we're connected to last).
        
        Fix potential problems if disconnect from one mgmd and connect to another (that's a different cluster)
      ndb/src/mgmsrv/MgmtSrvr.cpp:
        fix regression in how nodes are stopped
        ALL STOP - db nodes only
        SHUTDOWN - db and mgm nodes
        
        fix race where mgmd could stop itself before it sends the response to stop.
        In ~MgmApiSession() we now do the disconnect.
        
        We have (in various places) a return stopSelf which tells the caller if they
        need to stop or restart this daemon.
      ndb/src/mgmsrv/MgmtSrvr.hpp:
        add stopSelf return parameter to stopNodes and restartNodes.
        
        Rename stop to shutdownDB as this name better reflects what it does
        
        Rename restart to restartDB as this name better reflects what it does
      ndb/src/mgmsrv/Services.cpp:
        Stop or restart server only on mgm session disconnect (of session that asked us to)
      ndb/src/mgmsrv/Services.hpp:
        add m_stopSelf member for tracking what we should do
      ea16e525
  2. 07 Apr, 2006 3 commits
  3. 06 Apr, 2006 20 commits
    • unknown's avatar
      Merge mysql.com:/home/greenman/workspace-mysql/mysql/mysql-5.0 · cc12c914
      unknown authored
      into  mysql.com:/home/greenman/workspace-mysql/mysql/bug-5.0-16240
      
      
      cc12c914
    • unknown's avatar
      Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-5.0 · 8ec7190d
      unknown authored
      into  mysql.com:/home/psergey/mysql-5.0-bug18237-review
      
      
      8ec7190d
    • unknown's avatar
      Remove redundant code in opt_sum_query() · 3daaa8d5
      unknown authored
      3daaa8d5
    • unknown's avatar
      Fix for Bug #16240 · caa16cbf
      unknown authored
      
      support-files/mysql.server.sh:
        Fixed so that if the datadir has been set via the command line,
        it won't be reset by specifing the basedir after.
      caa16cbf
    • unknown's avatar
      Merge svojtovich@bk-internal.mysql.com:/home/bk/mysql-5.0 · b3dad934
      unknown authored
      into  april.(none):/home/svoj/devel/mysql/BUG14945/mysql-5.0
      
      
      b3dad934
    • unknown's avatar
      Fix for bug#14945 "Truncate table doesn't reset the auto_increment · ee3cf23b
      unknown authored
      counter".
      
      When TRUNCATE TABLE was called within an stored procedure the
      auto_increment counter was not reset to 0 even if straight
      TRUNCATE for this table did this.
      
      This fix makes TRUNCATE in stored procedures to be handled exactly
      in the same way as straight TRUNCATE. We achieve this by rolling
      back the fix for bug 8850, which is no longer needed since stored
      procedures don't require prelocked mode anymore (and TRUNCATE is
      not allowed in stored functions or triggers).
      
      
      mysql-test/r/sp.result:
        Test case for BUG#14945.
      mysql-test/t/sp.test:
        Test case for BUG#14945.
      sql/sql_delete.cc:
        Handle TRUNCATE in stored procedures exactly in the same way as straight
        TRUNCATE (i.e. without falling back to DELETE if possible). We achieve
        this by rolling back the fix for bug 8850, which is no longer relevant
        since stored procedures don't require prelocked mode anymore
        (and TRUNCATE is not allowed in stored functions or triggers).
      sql/sql_parse.cc:
        Handle TRUNCATE in stored procedures exactly in the same way as straight
        TRUNCATE (i.e. without falling back to DELETE if possible). We achieve
        this by rolling back the fix for bug 8850, which is no longer relevant
        since stored procedures don't require prelocked mode anymore
        (and TRUNCATE is not allowed in stored functions or triggers).
      ee3cf23b
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/mysql-5.0 · 1b5ce338
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/50-jonas
      
      
      1b5ce338
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/50-work · 71a1864f
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/50-jonas
      
      
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Auto merged
      71a1864f
    • unknown's avatar
      post merge fixes · 86ca1bc3
      unknown authored
      86ca1bc3
    • unknown's avatar
      ndb - wl1760/bug#18216 · be0d6c94
      unknown authored
        add two new start options that will decrease likelyhood of bug#18612
        push cntr-sp2 logic down into qmgr-sp1 to decrease likelyhood of bug#18612
      
      
      ndb/include/kernel/signaldata/CmRegSignalData.hpp:
        Expand CmRegReq with lots of stuff
      ndb/include/mgmapi/ndb_logevent.h:
        Add Start report during sp1
      ndb/src/common/debugger/EventLogger.cpp:
        Add Start report during sp1
      ndb/src/kernel/blocks/dbdih/DbdihInit.cpp:
        Init cntrref
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Fix small bugs related to partial initial start
      ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp:
        Remove timeouts as they are handled in QMGR nowadays
      ndb/src/kernel/blocks/qmgr/Qmgr.hpp:
        Push cntr sp2 logic down to QMGR to prevent the forming of multiple QMGR cluster
          that will lead to start problems (crashes...)
      ndb/src/kernel/blocks/qmgr/QmgrInit.cpp:
        Push cntr sp2 logic down to QMGR to prevent the forming of multiple QMGR cluster
          that will lead to start problems (crashes...)
      ndb/src/kernel/blocks/qmgr/QmgrMain.cpp:
        Push cntr sp2 logic down to QMGR to prevent the forming of multiple QMGR cluster
          that will lead to start problems (crashes...)
      ndb/src/kernel/vm/Configuration.cpp:
        Add new flags
          --initial-start
          --nowait-nodes
      be0d6c94
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 9a1d80e9
      unknown authored
      into  shellback.(none):/home/msvensson/mysql/mysql-5.0
      
      
      9a1d80e9
    • unknown's avatar
      Moving mysql_get_server_version() from libmysql.c to client.c, · a0f7e755
      unknown authored
      as it is now required by mysql_set_character_set()
      
      
      libmysql/libmysql.c:
        Removing mysql_get_server_version()
      sql-common/client.c:
        Adding mysql_get_server_version()
      a0f7e755
    • unknown's avatar
      client.c: · f53c12c8
      unknown authored
        Bug#18830 incompatibility new libraries with old server
        Additional 5.0 fix:
        applying the same patch to client.c.
      
      
      sql-common/client.c:
        Bug#18830 incompatibility new libraries with old server
        Additional 5.0 fix:
        applying the same patch to client.c.
      f53c12c8
    • unknown's avatar
      Merge mysql.com:/usr/home/bar/mysql-4.1 · 4ec04797
      unknown authored
      into  mysql.com:/usr/home/bar/mysql-5.0
      
      
      libmysql/libmysql.c:
        Bug#18830 incompatibility new libraries with old server
        Mergeing from 4.1
      4ec04797
    • unknown's avatar
      libmysql.c: · 00cfd1a7
      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.
      00cfd1a7
    • unknown's avatar
      Merge mysql.com:/usr/home/bar/mysql-4.1 · f1633f04
      unknown authored
      into  mysql.com:/usr/home/bar/mysql-5.0
      
      
      f1633f04
    • unknown's avatar
      This problem has already been fixed by one of the previous changes. · 5475703b
      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
      5475703b
    • unknown's avatar
      ctype-extra.c: · b17b89fb
      unknown authored
        Using local.
      
      
      strings/ctype-extra.c:
        Using local.
      b17b89fb
    • unknown's avatar
      Merge mysql.com:/usr/home/bar/mysql-4.1 · 8dbc6b1f
      unknown authored
      into  mysql.com:/usr/home/bar/mysql-5.0
      
      
      strings/conf_to_src.c:
        Auto merged
      8dbc6b1f
    • unknown's avatar
      conf_to_src.c: · fafa4c5a
      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.
      fafa4c5a
  4. 05 Apr, 2006 7 commits
    • unknown's avatar
      Merge rurik.mysql.com:/home/igor/mysql-5.0 · cabe2859
      unknown authored
      into  rurik.mysql.com:/home/igor/dev/mysql-5.0-0
      
      
      cabe2859
    • unknown's avatar
      conf_to_src.c: · 6ef757e4
      unknown authored
        Buffer was too small to load Index.xml.
        So some charsets were not gerenrated.
        Making the buffer bigger, and adding an DBUG_ASSERT,
        to easier catch the problem in the future.
      ctype-extra.c:
        Additional charsets were generated.
      
      
      strings/ctype-extra.c:
        Additional charsets were generated.
      strings/conf_to_src.c:
        Buffer was too small to load Index.xml.
        So some charsets were not gerenrated.
        Making the buffer bigger, and adding an DBUG_ASSERT,
        to easier catch the problem in the future.
      6ef757e4
    • unknown's avatar
      merge · e40bdb5b
      unknown authored
      e40bdb5b
    • unknown's avatar
      Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0 · af5e4098
      unknown authored
      into sunlight.local:/local_work/16281-bug-5.0-mysql
      
      
      sql/field.h:
        Auto merged
      af5e4098
    • unknown's avatar
      Fixed bug #16281: Multi-table update broken in 5.0 on tables imported from 4.1 · 0f8c1175
      unknown authored
      Mutli-table uses temporary table to store new values for fields. With the
      new values the rowid of the record to be updated is stored in a Field_string
      field. Table to be updated is set as source table of the rowid field.
      But when the temporary table creates the tmp field for the rowid field it
      converts it to a varstring field because the table to be updated was created by
      the v4.1. Due to this the stored rowids were broken and no records for 
      update were found.
      
      The flag can_alter_field_type is added to Field_string class. When it is set to
      0 the field won't be converted to varstring. The Field_string::type() function 
      now always returns MYSQL_TYPE_STRING if can_alter_field_type is set to 0.
      The multi_update::initialize_tables() function now sets can_alter_field_type
      flag to 0 for the rowid fields denying conversion of the field to a varstring
      field.
      
      
      
      sql/field.h:
        Fixed bug #16281: Multi-table update broken in 5.0 on tables imported from 4.1
        The flag can_alter_field_type is added to Field_string class. When it is set to
        0 the field won't be converted to varstring.
        The Field_string::type() function now always returns MYSQL_TYPE_STRING if 
        can_alter_field_type is set to 0.
      sql/sql_update.cc:
        Fixed bug #16281: Multi-table update broken in 5.0 on tables imported from 4.1
        The multi_update::initialize_tables() function now sets can_alter_field_type
        flag to 0 for the rowid fields denying conversion of the field to a varstring
        field.
      0f8c1175
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/41-work · 66daa375
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/50-work
      
      
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Auto merged
      ndb/src/kernel/blocks/ndbcntr/Ndbcntr.hpp:
        Auto merged
      ndb/src/kernel/blocks/ndbcntr/NdbcntrInit.cpp:
        Auto merged
      ndb/src/kernel/blocks/qmgr/Qmgr.hpp:
        Auto merged
      ndb/test/ndbapi/testNodeRestart.cpp:
        Auto merged
      ndb/test/run-test/daily-basic-tests.txt:
        Auto merged
      ndb/test/src/NdbRestarts.cpp:
        Auto merged
      ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp:
        merge
      ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp:
        merge
      ndb/src/kernel/blocks/qmgr/QmgrInit.cpp:
        merge
      ndb/src/kernel/blocks/qmgr/QmgrMain.cpp:
        merge
      66daa375
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 0e97b724
      unknown authored
      into  shellback.(none):/home/msvensson/mysql/mysql-5.0
      
      
      mysql-test/mysql-test-run.pl:
        Auto merged
      0e97b724
  5. 04 Apr, 2006 9 commits