1. 21 Nov, 2006 4 commits
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/41-work · 4983c584
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/50-work
      
      
      ndb/src/kernel/blocks/ERROR_codes.txt:
        Auto merged
      ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
        Auto merged
      ndb/test/ndbapi/testScan.cpp:
        merge
      ndb/test/run-test/daily-basic-tests.txt:
        merge
      4983c584
    • unknown's avatar
      ndb - · 13c1723c
      unknown authored
        update error code list
        (for bug#24447)
      
      
      ndb/src/kernel/blocks/ERROR_codes.txt:
        ndb -
          update error code list
      13c1723c
    • unknown's avatar
      ndb - bug#24447 · 537f7c10
      unknown authored
        api disconnect just after SCAN_TABREQ
      
      
      ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
        1) add error insert for faking DISCONNECT of API just after SCAN_TABREQ
        2) handle error :-)
      ndb/test/ndbapi/testScan.cpp:
        Add etstcase for bug 24447
      ndb/test/run-test/daily-basic-tests.txt:
        Add etstcase for bug 24447
      537f7c10
    • unknown's avatar
      ndb - · 22d36db2
      unknown authored
        Fix bug wrt to '\r' handling in latest commit to bug#24011
      
      
      ndb/src/common/util/InputStream.cpp:
        Fix bug wrt to '\r' handling in latest commit to bug#24011
      ndb/src/common/util/socket_io.cpp:
        Fix bug wrt to '\r' handling in latest commit to bug#24011
      22d36db2
  2. 06 Nov, 2006 1 commit
    • unknown's avatar
      ndb - bug#24011 · 7d69a352
      unknown authored
        
      
      
      ndb/src/common/util/socket_io.cpp:
        Fix problem with cut sockmessages
      7d69a352
  3. 27 Oct, 2006 2 commits
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/41-work · 92deb8e9
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/50-work
      
      
      ndb/src/ndbapi/NdbTransaction.cpp:
        Auto merged
      92deb8e9
    • unknown's avatar
      ndb - valgrind · 124e01f5
      unknown authored
        Still leakage, make sure all unlinked operations are put back so they will be release
        (on failing blob operations, when AO_IgnoreError)
      
      
      ndb/src/ndbapi/NdbConnection.cpp:
        Still leakage, make sure all unlinked operations are put back so they will be release
      124e01f5
  4. 20 Oct, 2006 6 commits
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/41-work · 6981cbac
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/50-work
      
      
      ndb/include/kernel/ndb_limits.h:
        Auto merged
      ndb/src/kernel/blocks/backup/Backup.hpp:
        Auto merged
      ndb/src/kernel/blocks/backup/Backup.cpp:
        SCCS merged
      6981cbac
    • unknown's avatar
      ndb - bug#23499 and bug#23502 · 8a87a267
      unknown authored
        Fix some too small buffers in backup
        
      
      
      ndb/include/kernel/ndb_limits.h:
        backport for 5.1
        add MAX_WORDS_META_FILE for computing Backup::NO_OF_PAGES_META_FILE
      ndb/src/kernel/blocks/backup/Backup.cpp:
        Make sure to set maxInsert so that we actually can handle NO_OF_META_PAGES
      ndb/src/kernel/blocks/backup/Backup.hpp:
        backport for 5.1
        add MAX_WORDS_META_FILE for computing Backup::NO_OF_PAGES_META_FILE
      8a87a267
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/41-work · 93fcaa86
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/50-work
      
      
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Auto merged
      93fcaa86
    • unknown's avatar
      ndb - · f61e7463
      unknown authored
        Fixed a 4.1/5.0 vs. 5.1 name change in latest SR bug fix
      
      
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Fixed a 4.1/5.0 vs. 5.1 name change in latest SR bug fix
      f61e7463
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/41-work · feaf57d3
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/50-work
      
      
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Auto merged
      feaf57d3
    • unknown's avatar
      ndb - · f2742c83
      unknown authored
        Fix monster SR bug making SR with ordered indexes (or temporary tables) broken
      
      
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Fix monster SR bug making SR with ordered indexes (or temporary tables) broken
      f2742c83
  5. 19 Oct, 2006 2 commits
    • unknown's avatar
      ndb - bug#23200 · c1b1587f
      unknown authored
        this changes lock taken during peek, to decrease likelyhood of transaction abort
        
      
      
      sql/ha_ndbcluster.cc:
        use exclusive lock in peek, as peek is used just before insert/update
      c1b1587f
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/41-work · c34825bf
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/50-work
      
      
      ndb/src/ndbapi/NdbTransaction.cpp:
        Auto merged
      c34825bf
  6. 18 Oct, 2006 1 commit
    • unknown's avatar
      ndb - bug#23200 · 313b46da
      unknown authored
        Make sure postExecute is not run for blobs if AO_IgnoreError
      
      
      ndb/src/ndbapi/NdbConnection.cpp:
        If AO_IgnoreError, error codes arent always set on individual operations, making postExecute impossible
      313b46da
  7. 13 Oct, 2006 1 commit
    • unknown's avatar
      ndb - bug#23203 · 5fe75fb0
      unknown authored
        1) Handle not started nodes in dump 1000 (check for division by 0)
        2) Make sure to init variables in constructor
      
      
      ndb/src/common/debugger/EventLogger.cpp:
        Handle not started nodes
      ndb/src/kernel/blocks/dbacc/DbaccInit.cpp:
        Init variables in constructor
      ndb/src/kernel/blocks/dbacc/DbaccMain.cpp:
        Handle not started nodes
      ndb/src/kernel/blocks/dbtup/DbtupGen.cpp:
        Init variables in constructor
        Handle not started nodes
      5fe75fb0
  8. 12 Oct, 2006 3 commits
    • unknown's avatar
      ndb - missing if for bug#21941 · 7ea7e327
      unknown authored
        note this does not happen in 5.0, but i'm committing it here to keep code same between 5.0 and 5.1
      
      
      ndb/src/ndbapi/NdbScanOperation.cpp:
        missing if for bug#21941
      7ea7e327
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/41-work · 092cf80a
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/50-work
      
      
      ndb/src/kernel/blocks/dbdih/Dbdih.hpp:
        Auto merged
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Auto merged
      ndb/src/kernel/blocks/ERROR_codes.txt:
        merge
      092cf80a
    • unknown's avatar
      ndb - bug#23210 · d3b8190f
      unknown authored
        Fix race-condition between COPY_GCIREQ (GCP) and lcpSetActiveStatusEnd
        Solution is _not_ to copy sysfileData from COPY_GCIREQ from "self"
      
      
      ndb/src/kernel/blocks/ERROR_codes.txt:
        Add error insert for dealying of copy sysfileData
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        1) Add error insert for delaying of sysfileData
        2) Change to that master is _not_ copying sysfileData from COPY_GCIREQ
           as it might be updating it while COPY_GCIREQ is "in the fly"
      d3b8190f
  9. 10 Oct, 2006 2 commits
    • unknown's avatar
      ndb - bug#23107 · 6ef83b2e
      unknown authored
        fix bug in test prg
      
      6ef83b2e
    • unknown's avatar
      ndb - bug#23107 · 7f470530
      unknown authored
        fix bug in handling of inactive timeout for scan, when all is delivered
      
      
      ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
        1) set timeout if all scans are at api
        2) Use c_appl_timeout_value when getting scan timeout
      ndb/test/ndbapi/testTimeout.cpp:
        test program
      7f470530
  10. 06 Oct, 2006 1 commit
    • unknown's avatar
      ndb - bug#22893 · 9c2562d1
      unknown authored
        Add checking of REDO to earlier during SR
            so take-over of node can be performed
            if it can't be restarted using logs
            (which btw is really weird...as it _should_ be able to use logs of other node in node group)
      
        Otherwise cluster could be started and 1 fragment on one node could not have been restored
        Making the cluster inconsisten, VERY BAD
      
      
      ndb/src/kernel/blocks/dbdih/Dbdih.hpp:
        Break-out methods which searches for REDO for a fragment, so it can be used earlier during SR
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Add checking of REDO to earlier during SR
          so take-over of node can be performed
          if it can't be restarted using logs
          (which btw is really weird...as it _should_ be able to use logs of other node in node group)
      9c2562d1
  11. 04 Oct, 2006 1 commit
    • unknown's avatar
      ndb - bug#22892 · 7d427f49
      unknown authored
          Make sure checkKeepGci is also run on oldStoredReplicas
            to prevent keepgci to move backwards when crash node restarts
      
      
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Make sure checkKeepGci is also run on oldStoredReplicas
          to prevent keepgci to move backwards when crash node restarts
      7d427f49
  12. 26 Sep, 2006 6 commits
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/41-work · c437142c
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/50-work
      
      
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Auto merged
      c437142c
    • unknown's avatar
      ndb - bug#15303 · 53c55c52
      unknown authored
        Fix take-over during SR, remove coupling to lcp/gcp (if systemRestartOngoing())
      
      
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Fix take-over during SR
      53c55c52
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/41-work · 0bb4ab64
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/50-work
      
      
      ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
        Auto merged
      0bb4ab64
    • unknown's avatar
      ndb - bug#22672 · 63f72ecc
      unknown authored
        handle also CS_CONNECTED as "abort" in handleFailedApi to keep from falling on assertion in releaseApiCon
          in case of committed dirtyRead
      
      
      ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
        handle also CS_CONNECTED as "abort" to keep from falling on assertion in releaseApiCon
          in case of committed dirtyRead
      63f72ecc
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/41-work · 6032e445
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/50-work
      
      
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Auto merged
      6032e445
    • unknown's avatar
      ndb - bug#20895 · 99e84383
      unknown authored
        Fix occational LCP hang!!!
        Make sure only to consider alive nodes in startNextChkpt
      
      
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Make sure only to consider alive nodes in startNextChkpt
      99e84383
  13. 15 Sep, 2006 4 commits
    • unknown's avatar
      ndb - bug#21941 · 8aa303ff
      unknown authored
        Fix so that scans closed before execute are removed from "scans to send list"
      
      
      ndb/include/ndbapi/NdbTransaction.hpp:
        Fix so that scans closed before execute are removed from "scans to send list"
      ndb/src/ndbapi/NdbScanOperation.cpp:
        Fix so that scans closed before execute are removed from "scans to send list"
      ndb/src/ndbapi/NdbTransaction.cpp:
        Fix so that scans closed before execute are removed from "scans to send list"
      8aa303ff
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/41-work · f082fe61
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/50-work
      
      
      ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
        Auto merged
      f082fe61
    • unknown's avatar
      ndb - bug#21756 · 35a202aa
      unknown authored
        Fix for alter table when node is down...that could cause pain and misery
      
      
      ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
        Make sure to check table version before retriving from disk
      35a202aa
    • unknown's avatar
      ndb - bug#21535 · 0732bcdd
      unknown authored
        review, Fix also master being "old" version
      
      
      ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
        Fix also master being "old" version
      0732bcdd
  14. 14 Sep, 2006 3 commits
    • unknown's avatar
      ndb - bug#21535 · e2f41843
      unknown authored
        remove accidently left debug code
      
      
      ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
        remove accidently left debug code
      e2f41843
    • unknown's avatar
      ndb - bug#21535 · 6aa7c017
      unknown authored
        send new fragdistkeys to all replicas during node recovery
        to make sure that not 3rd or 4th replicas fragDistKey becomes out of sync
      
      
      ndb/include/kernel/GlobalSignalNumbers.h:
        new signal UpdateFragDistKeyOrd
      ndb/include/kernel/signaldata/CopyFrag.hpp:
        new signal UpdateFragDistKeyOrd
      ndb/include/ndb_version.h.in:
        online software upgrade for new signal UpdateFragDistKeyOrd
      ndb/src/common/debugger/signaldata/SignalNames.cpp:
        new signal UpdateFragDistKeyOrd
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Send noew list of all replicas in copyfragreq
      ndb/src/kernel/blocks/dblqh/Dblqh.hpp:
        new signal UpdateFragDistKeyOrd
      ndb/src/kernel/blocks/dblqh/DblqhInit.cpp:
        new signal UpdateFragDistKeyOrd
      ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
        new signal UpdateFragDistKeyOrd
      6aa7c017
    • unknown's avatar
      ndb - bug#22195 · 523b348f
      unknown authored
        also bind client to local host name if specified
      
      
      ndb/src/common/transporter/Transporter.cpp:
        Add binding also of transporter connection (to hostname specified in config file)
      523b348f
  15. 13 Sep, 2006 1 commit
    • unknown's avatar
      ndb - bug#22195 · 7e2f512f
      unknown authored
        allow bind address for ndbd
      
      
      ndb/include/mgmapi/mgmapi.h:
        Add support for setting local address in NdbMgmHandle
      ndb/include/mgmcommon/ConfigRetriever.hpp:
        Add support for specifying local bindaddress to ConfigRetreiver
      ndb/include/util/SocketClient.hpp:
        Add support for setting local address in NdbMgmHandle
      ndb/src/common/mgmcommon/ConfigRetriever.cpp:
        Add support for setting local address in NdbMgmHandle
      ndb/src/common/util/SocketClient.cpp:
        Add support for setting local address in NdbMgmHandle
      ndb/src/kernel/vm/Configuration.cpp:
        Add support for specifying local bindaddress to ndbd
      ndb/src/mgmapi/mgmapi.cpp:
        Add support for setting local address in NdbMgmHandle
      7e2f512f
  16. 04 Sep, 2006 2 commits
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/41-work · 31b006b1
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/50-work
      
      
      sql/log.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      sql/sql_repl.cc:
        merge
      31b006b1
    • unknown's avatar
      bug#21965 - replication · 698f3b7e
      unknown authored
        fix deadlock if master switches log file in parallell with "show master logs"
        
      
      
      sql/log.cc:
        add raw_get_current_log which dont take log mutex
      sql/sql_class.h:
        add raw_get_current_log which dont take log mutex
      sql/sql_repl.cc:
        Fix lock order i.e first log_lock then index_lock
      698f3b7e