1. 23 Mar, 2007 17 commits
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1-new-ndb · 46955de0
      unknown authored
      into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-single-user
      
      
      storage/ndb/include/util/OutputStream.hpp:
        Auto merged
      46955de0
    • unknown's avatar
      rpl_ndb_sync.result, ndb_partition_key.result: · c031bc31
      unknown authored
        test case
      
      
      mysql-test/r/ndb_partition_key.result:
        test case
      mysql-test/r/rpl_ndb_sync.result:
        test case
      c031bc31
    • unknown's avatar
      result file updates, message format changes · 1e9ecf99
      unknown authored
      1e9ecf99
    • unknown's avatar
      Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-single-user · 2cefd1f7
      unknown authored
      into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-single-user
      
      
      storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
        Auto merged
      storage/ndb/src/kernel/blocks/dbdict/Dbdict.hpp:
        Auto merged
      storage/ndb/src/kernel/blocks/dbtc/Dbtc.hpp:
        Auto merged
      storage/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
        Auto merged
      storage/ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp:
        Auto merged
      mysql-test/r/ndb_single_user.result:
        manual merge
      mysql-test/t/disabled.def:
        manual merge
      storage/ndb/include/kernel/signaldata/DictTabInfo.hpp:
        manual merge
      storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp:
        manual merge
      2cefd1f7
    • unknown's avatar
      enabled and extended single user test · c2c33fac
      unknown authored
      c2c33fac
    • unknown's avatar
      BUG#27254: Single User Mode.Mysql hangs if it tries delete a ndb table · 1ee2ea5c
      unknown authored
      
      sql/ha_ndbcluster.cc:
        set single user mode on ndb schema table
      storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp:
        dbug print
      1ee2ea5c
    • unknown's avatar
      Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-telco-gca-single-user · ee88bc63
      unknown authored
      into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-single-user
      
      
      storage/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
        Auto merged
      ee88bc63
    • unknown's avatar
      Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-telco-gca-single-user · 82ccba94
      unknown authored
      into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-telco-gca-single-user
      
      
      storage/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
        Auto merged
      82ccba94
    • unknown's avatar
      Bug #25275 SINGLE USER MODE prevents ALTER on non-ndb tables for other mysqld nodes · 5c5b4b55
      unknown authored
      
      ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
        abort on timeout if in single user mode
      5c5b4b55
    • unknown's avatar
      Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-telco-gca-single-user · 686c5d8d
      unknown authored
      into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-single-user
      
      
      storage/ndb/include/kernel/signaldata/DictTabInfo.hpp:
        Auto merged
      storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
        Auto merged
      storage/ndb/src/kernel/blocks/dbdict/Dbdict.hpp:
        Auto merged
      storage/ndb/src/kernel/blocks/dbtc/Dbtc.hpp:
        Auto merged
      storage/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
        Auto merged
      storage/ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp:
        Auto merged
      storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp:
        Auto merged
      686c5d8d
    • unknown's avatar
      correction of merge · cd4be332
      unknown authored
      cd4be332
    • unknown's avatar
      Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-telco-gca-single-user · 70fd26bf
      unknown authored
      into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-single-user
      
      
      ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
        Auto merged
      ndb/src/kernel/blocks/dbdict/Dbdict.hpp:
        Auto merged
      ndb/src/kernel/blocks/dbtc/Dbtc.hpp:
        Auto merged
      ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
        Auto merged
      ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp:
        Auto merged
      ndb/include/kernel/signaldata/DictTabInfo.hpp:
        manual merge
      ndb/src/ndbapi/NdbDictionaryImpl.cpp:
        manual merge
      70fd26bf
    • unknown's avatar
      Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-telco-gca-single-user · bfc21b77
      unknown authored
      into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-telco-gca-single-user
      
      
      storage/ndb/include/ndbapi/NdbDictionary.hpp:
        Auto merged
      storage/ndb/src/kernel/blocks/dbtc/Dbtc.hpp:
        Auto merged
      storage/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
        Auto merged
      storage/ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp:
        Auto merged
      storage/ndb/src/ndbapi/NdbDictionary.cpp:
        Auto merged
      storage/ndb/src/ndbapi/NdbDictionaryImpl.hpp:
        Auto merged
      storage/ndb/include/kernel/signaldata/DictTabInfo.hpp:
        manual merge
      storage/ndb/include/ndb_constants.h:
        manual merge
      storage/ndb/src/common/debugger/signaldata/DictTabInfo.cpp:
        manual merge
      storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
        manual merge
      storage/ndb/src/kernel/blocks/dbdict/Dbdict.hpp:
        manual merge
      storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp:
        manual merge
      storage/ndb/test/src/NDBT_Table.cpp:
        manual merge
      bfc21b77
    • unknown's avatar
      Bug #25275 SINGLE USER MODE prevents ALTER on non-ndb tables for other mysqld nodes · 7be0377a
      unknown authored
      
      ndb/include/kernel/signaldata/DictTabInfo.hpp:
        add single user mode field in table definition
      ndb/include/ndb_constants.h:
        new constants for single usermode option of tables
      ndb/include/ndbapi/NdbDictionary.hpp:
        add single user mode field in table definition
      ndb/src/common/debugger/signaldata/DictTabInfo.cpp:
        add single user mode field in table definition
      ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
        add single user mode field in table definition
        send this infor to TC
      ndb/src/kernel/blocks/dbdict/Dbdict.hpp:
        add single user mode field in table definition
      ndb/src/kernel/blocks/dbtc/Dbtc.hpp:
        single user table mode on table object
        merge some flags from uint8 to bits
        get allow transaction to also check single user mode
      ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
        single user table mode on table object
        merge some flags from uint8 to bits
        get allow transaction to also check single user mode
      ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp:
        set single user mode flag on system tables to make them always updatable
      ndb/src/ndbapi/NdbDictionary.cpp:
        get/set functions for single user mode on tables
      ndb/src/ndbapi/NdbDictionaryImpl.cpp:
        get/set functions for single user mode on tables
      ndb/src/ndbapi/NdbDictionaryImpl.hpp:
        get/set functions for single user mode on tables
      ndb/test/src/NDBT_Table.cpp:
        print single user mode
      7be0377a
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb · 3cd4308e
      unknown authored
      into  poseidon.mysql.com:/home/tomas/mysql-5.0-ndb
      
      
      ndb/src/kernel/blocks/dbtc/Dbtc.hpp:
        Auto merged
      ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
        Auto merged
      3cd4308e
    • unknown's avatar
      Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb · c6969c18
      unknown authored
      into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-single-user
      
      
      sql/ha_ndbcluster.cc:
        Auto merged
      storage/ndb/src/kernel/blocks/dbtc/Dbtc.hpp:
        Auto merged
      storage/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
        Auto merged
      c6969c18
    • unknown's avatar
      WL#3704 mgmapi timeouts: fix compile warning · 03c0ef8c
      unknown authored
      
      storage/ndb/src/mgmapi/mgmapi.cpp:
        fix compile warning - signed and unsigned comparison
      03c0ef8c
  2. 22 Mar, 2007 23 commits
    • unknown's avatar
      Merge willster.(none):/home/stewart/Documents/MySQL/5.1/ndb · 41db25b8
      unknown authored
      into  willster.(none):/home/stewart/Documents/MySQL/5.1/ndb-work
      
      41db25b8
    • unknown's avatar
      Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb · 974702c6
      unknown authored
      into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
      
      
      sql/ha_ndbcluster.cc:
        Auto merged
      sql/ha_ndbcluster.h:
        Auto merged
      storage/ndb/src/kernel/blocks/dbdih/Dbdih.hpp:
        Auto merged
      storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Auto merged
      storage/ndb/src/kernel/blocks/dbtc/Dbtc.hpp:
        Auto merged
      storage/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
        Auto merged
      storage/ndb/test/ndbapi/testNodeRestart.cpp:
        Auto merged
      974702c6
    • unknown's avatar
      Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-telco-gca · 1b06d1e6
      unknown authored
      into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
      
      1b06d1e6
    • unknown's avatar
      3fcd48ff
    • unknown's avatar
      Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-telco-gca · 2e986bcc
      unknown authored
      into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
      
      
      sql/ha_ndbcluster.cc:
        Auto merged
      sql/ha_ndbcluster.h:
        Auto merged
      2e986bcc
    • unknown's avatar
      Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-telco-gca · 8f785c5e
      unknown authored
      into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
      
      
      sql/ha_ndbcluster.cc:
        Auto merged
      sql/ha_ndbcluster.h:
        Auto merged
      8f785c5e
    • unknown's avatar
      Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-telco-gca · 0a0e2697
      unknown authored
      into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-telco-gca
      
      
      sql/ha_ndbcluster.h:
        Auto merged
      sql/ha_ndbcluster.cc:
        manual merge
      0a0e2697
    • unknown's avatar
      Bug #27320 ndb handler does not reset extra flags on reset() · f216c398
      unknown authored
      - make sure all extra flags are reset
      
      f216c398
    • unknown's avatar
      [PATCH] WL#3704 mgmapi timeouts: Fix error insert to NOT_STARTED nodes · 9d88cf84
      unknown authored
      Turns out I broke it.
      
      Index: ndb-work/storage/ndb/src/mgmsrv/MgmtSrvr.cpp
      ===================================================================
      
      
      storage/ndb/src/mgmsrv/MgmtSrvr.cpp:
        WL#3704 mgmapi timeouts: Fix error insert to NOT_STARTED nodes
      9d88cf84
    • unknown's avatar
      [PATCH] WL#3704 mgmapi timeouts: Print full error from mgmd in NdbRestarter errors · c9ad5e07
      unknown authored
      Turns out they can be useful in working out what's going wrong.
      
      Index: ndb-work/storage/ndb/test/src/NdbRestarter.cpp
      ===================================================================
      
      
      storage/ndb/test/src/NdbRestarter.cpp:
        WL#3704 mgmapi timeouts: Print full error from mgmd in NdbRestarter errors
      c9ad5e07
    • unknown's avatar
      [PATCH] WL#3704 mgmapi timeouts: Fix infinite (0) timeout for ndb_logevent_get_next · 3c57a0c1
      unknown authored
      Index: ndb-work/storage/ndb/src/mgmapi/ndb_logevent.cpp
      ===================================================================
      
      
      storage/ndb/src/mgmapi/ndb_logevent.cpp:
        WL#3704 mgmapi timeouts: Fix infinite (0) timeout for ndb_logevent_get_next
      3c57a0c1
    • unknown's avatar
      [PATCH] WL#3704 mgmapi timeouts: For mgm server, have timeout per operation,... · ddbf63a0
      unknown authored
      [PATCH] WL#3704 mgmapi timeouts: For mgm server, have timeout per operation, not for entire connection (i.e. fix the bug)
      
      for TransporterRegistry, keep connection to management server alive.
      
      
      Index: ndb-work/storage/ndb/include/util/InputStream.hpp
      ===================================================================
      
      
      storage/ndb/include/util/InputStream.hpp:
        WL#3704 mgmapi timeouts: For mgm server, have timeout per operation, not for entire connection (i.e. fix the bug)
      storage/ndb/include/util/OutputStream.hpp:
        WL#3704 mgmapi timeouts: For mgm server, have timeout per operation, not for entire connection (i.e. fix the bug)
      storage/ndb/src/common/transporter/TransporterRegistry.cpp:
        WL#3704 mgmapi timeouts: For mgm server, have timeout per operation, not for entire connection (i.e. fix the bug)
      storage/ndb/src/mgmsrv/Services.cpp:
        WL#3704 mgmapi timeouts: For mgm server, have timeout per operation, not for entire connection (i.e. fix the bug)
      ddbf63a0
    • unknown's avatar
      [PATCH] WL#3704 mgmapi timeouts: Correct cpc client usage of Socket Input/OutputStream for timeouts · 4e6ce79b
      unknown authored
      Index: ndb-work/storage/ndb/include/util/InputStream.hpp
      ===================================================================
      
      
      storage/ndb/include/util/InputStream.hpp:
        WL#3704 mgmapi timeouts: Correct cpc client usage of Socket Input/OutputStream for timeouts
      storage/ndb/test/include/CpcClient.hpp:
        WL#3704 mgmapi timeouts: Correct cpc client usage of Socket Input/OutputStream for timeouts
      storage/ndb/test/src/CpcClient.cpp:
        WL#3704 mgmapi timeouts: Correct cpc client usage of Socket Input/OutputStream for timeouts
      4e6ce79b
    • unknown's avatar
      [PATCH] WL#3704 mgmapi timeouts: Add MGMAPI tests to autotest daily run · 22fbc075
      unknown authored
      Index: ndb-work/storage/ndb/test/run-test/daily-basic-tests.txt
      ===================================================================
      
      
      storage/ndb/test/run-test/daily-basic-tests.txt:
        WL#3704 mgmapi timeouts: Add MGMAPI tests to autotest daily run
      22fbc075
    • unknown's avatar
      [PATCH] WL#3704 mgmapi timeouts: update NDBAPI usage of mgmapi for timeouts · 0da1f339
      unknown authored
      Default timout of 30secs for ConfigRetriever
      
      Default timout of 5sec for use by Transporter (ports etc).
      
      And Ndb_cluster_connection::set_timeout() api for setting timeout from
      NDBAPI applications. Should be called before connect. e.g.
      
      c.set_timeout(4200);
      c.connect();
      
      Index: ndb-work/storage/ndb/include/mgmcommon/ConfigRetriever.hpp
      ===================================================================
      
      
      storage/ndb/include/mgmcommon/ConfigRetriever.hpp:
        WL#3704 mgmapi timeouts: update NDBAPI usage of mgmapi for timeouts
      storage/ndb/include/ndbapi/ndb_cluster_connection.hpp:
        WL#3704 mgmapi timeouts: update NDBAPI usage of mgmapi for timeouts
      storage/ndb/src/common/mgmcommon/ConfigRetriever.cpp:
        WL#3704 mgmapi timeouts: update NDBAPI usage of mgmapi for timeouts
      storage/ndb/src/common/transporter/TransporterRegistry.cpp:
        WL#3704 mgmapi timeouts: update NDBAPI usage of mgmapi for timeouts
      storage/ndb/src/ndbapi/ndb_cluster_connection.cpp:
        WL#3704 mgmapi timeouts: update NDBAPI usage of mgmapi for timeouts
      0da1f339
    • unknown's avatar
      [PATCH] WL#3704 mgmapi timeouts: use timeouts in mgm client · 89587cff
      unknown authored
      as side effect - turbo accellerator patch for ndb_mgm - sholud make it quicker... so that 4mhz cpu will seem even faster.
      
      Index: ndb-work/storage/ndb/src/mgmclient/CommandInterpreter.cpp
      ===================================================================
      
      
      storage/ndb/src/mgmclient/CommandInterpreter.cpp:
        WL#3704 mgmapi timeouts: use timeouts in mgm client
      89587cff
    • unknown's avatar
      [PATCH] WL#3704 mgmapi timeouts: Change to have total timeout for call, not per request · 41c364e7
      unknown authored
      use portable method, getting milliseconds between calls - Linux would
      let us do funky stuff by getting the timeout from select(2). Everywhere
      else sucks and doesn't let us do that :(
      
      Index: ndb-work/storage/ndb/include/util/InputStream.hpp
      ===================================================================
      
      
      storage/ndb/include/util/InputStream.hpp:
        WL#3704 mgmapi timeouts: Change to have total timeout for call, not per request
      storage/ndb/include/util/OutputStream.hpp:
        WL#3704 mgmapi timeouts: Change to have total timeout for call, not per request
      storage/ndb/include/util/socket_io.h:
        WL#3704 mgmapi timeouts: Change to have total timeout for call, not per request
      storage/ndb/src/common/util/InputStream.cpp:
        WL#3704 mgmapi timeouts: Change to have total timeout for call, not per request
      storage/ndb/src/common/util/OutputStream.cpp:
        WL#3704 mgmapi timeouts: Change to have total timeout for call, not per request
      storage/ndb/src/common/util/socket_io.cpp:
        WL#3704 mgmapi timeouts: Change to have total timeout for call, not per request
      storage/ndb/src/mgmsrv/Services.cpp:
        WL#3704 mgmapi timeouts: Change to have total timeout for call, not per request
      41c364e7
    • unknown's avatar
      [PATCH] WL#3704 mgmapi timeouts: clarify multiple mgmd connect timeout semantics · 97b6cc1a
      unknown authored
      Index: ndb-work/storage/ndb/include/mgmapi/mgmapi.h
      ===================================================================
      
      
      storage/ndb/include/mgmapi/mgmapi.h:
        WL#3704 mgmapi timeouts: clarify multiple mgmd connect timeout semantics
      storage/ndb/src/mgmapi/mgmapi.cpp:
        WL#3704 mgmapi timeouts: clarify multiple mgmd connect timeout semantics
      97b6cc1a
    • unknown's avatar
      [PATCH] WL#3704 mgmapi timeouts: consolidate NdbMgmHandle timeouts into one · 9691712d
      unknown authored
      Only one timeout value is needed. Also saves 8bytes per NdbMgmHandle :)
      
      Index: ndb-work/storage/ndb/include/mgmapi/mgmapi.h
      ===================================================================
      
      
      storage/ndb/include/mgmapi/mgmapi.h:
        WL#3704 mgmapi timeouts: consolidate NdbMgmHandle timeouts into one
      storage/ndb/src/mgmapi/mgmapi.cpp:
        WL#3704 mgmapi timeouts: consolidate NdbMgmHandle timeouts into one
      9691712d
    • unknown's avatar
      [PATCH] WL#3704 mgmapi timeouts: Test for structured events timeouts (with err injection). · 989df529
      unknown authored
      Index: ndb-work/storage/ndb/test/ndbapi/testMgm.cpp
      ===================================================================
      
      
      storage/ndb/test/ndbapi/testMgm.cpp:
        WL#3704 mgmapi timeouts: Test for structured events timeouts (with err injection).
      989df529
    • unknown's avatar
      [PATCH] WL#3704 mgmapi timeouts: manipulate some things to get infrastructure for event timeouts · 1b9b780e
      unknown authored
      Index: ndb-work/storage/ndb/src/mgmsrv/MgmtSrvr.cpp
      ===================================================================
      
      
      storage/ndb/src/mgmsrv/ERROR_codes.txt:
        WL#3704 mgmapi timeouts: manipulate some things to get infrastructure for event timeouts
      storage/ndb/src/mgmsrv/MgmtSrvr.cpp:
        WL#3704 mgmapi timeouts: manipulate some things to get infrastructure for event timeouts
      storage/ndb/src/mgmsrv/Services.cpp:
        WL#3704 mgmapi timeouts: manipulate some things to get infrastructure for event timeouts
      storage/ndb/test/ndbapi/testMgm.cpp:
        WL#3704 mgmapi timeouts: manipulate some things to get infrastructure for event timeouts
      1b9b780e
    • unknown's avatar
      [PATCH] WL#3704 mgmapi timeouts: renumber mgmd err insert to not have duplicates. · 4b2c073d
      unknown authored
      Also add an ERROR_codes.txt file for mgmd
      
      Index: ndb-work/storage/ndb/src/mgmsrv/ERROR_codes.txt
      ===================================================================
      
      
      storage/ndb/src/mgmsrv/Services.cpp:
        WL#3704 mgmapi timeouts: renumber mgmd err insert to not have duplicates.
      storage/ndb/test/ndbapi/testMgm.cpp:
        WL#3704 mgmapi timeouts: renumber mgmd err insert to not have duplicates.
      storage/ndb/src/mgmsrv/ERROR_codes.txt:
        WL#3704 mgmapi timeouts: renumber mgmd err insert to not have duplicates.
      4b2c073d
    • unknown's avatar
      [PATCH] WL#3704 mgmapi timeouts: Return sane errors for timeout in mgmapi · b4ae169e
      unknown authored
      In ndb_mgm_call, add checks for expired timeout in (Input|Output)Stream.
      In case of timeout, we set NdbMgmHandle->last_error and return NULL.
      
      In api calls not using ndb_mgm_call (or using it in conjunction with
      own IO), they'll need to check for timeouts manually. Macros are provided
      to do this.
      
      Add ndb_mgm_disconnect_quiet(h) to disconnect without checking errors
      (so we don't clobber NdbMgmHandle->last_error). This helps us provide
      the *consistent* semantic that on timeout we leave the NdbMgmHandle
      *disconnected*. We check for this in testMgm.
      
      Change CHECK_REPLY in mgmapi to also check for set error in handle->last_error
      This will pick up the ETIMEDOUT errors and return them to client (through
      returning correct failure code for API call and setting NdbMgmHandle error).
      Applications written to MGMAPI before this patch will behave as before,
      and even hopefully check get_last_error and report the error back to the
      end user!
      
      Adding the last CHECK_TIMEDOUT_RET and delete in ndb_mgm_call() we
      slightly change behaviour of mgmapi. Previously, if disconnect
      midway through a reply, where there were only optional parameters left,
      we'd get a Properties object from ndb_mgm_call() containing NULLs for
      the optional parameters, leading to interesting error messages. This
      enables the returning of the *real* message and actually improves the API
      without breaking compatibility.
      
      ndb_mgm_start_signallog
      ndb_mgm_stop_signallog
      ndb_mgm_log_signals
      ndb_mgm_set_trace
      ndb_mgm_insert_error
      ndb_mgm_set_int64_parameter [1]
      ndb_mgm_set_string_parameter [1]
      ndb_mgm_purge_stale_sessions [2]
       - return error code on error during ndb_mgm_call
      
      TODO:
      ndb_mgm_report_event [2]
      
      [1] marked for removal, unused.
      [2] return codes incorrect in CHECK_HANDLE/CONNECTED. undocumented.
      
      
      Server side:
       in Services (per session) add macro for injecting timeout error
       (just waiting 10 seconds before continuing... it does work!)
      
       We inject these errors in a number of critical places - including
       the tricky api functions that don't just use ndb_mgm_call but do
       their own thing (get_config, get_status and friends)
      
      ATRT:
       Expand testMgm to add timout tests for API. Fully automated.
       *THEORETICALLY* timing dependent - an ultra-slow network will
       cause problems and "fake" failures... I welcome other solutions.
      
       Tests aren't exhaustive, but cover the generics and the tricky bits.
       Also test some calling semantics (incl disconnected on error).
      
       It is encouraged to add *more* mgmapi tests, not less :)
      
      InputStream:
        Fix where timedout error is set
      
      
      Index: ndb-work/storage/ndb/src/mgmapi/mgmapi.cpp
      ===================================================================
      
      
      storage/ndb/src/common/util/InputStream.cpp:
        WL#3704 mgmapi timeouts: Return sane errors for timeout in mgmapi
      storage/ndb/src/mgmapi/mgmapi.cpp:
        WL#3704 mgmapi timeouts: Return sane errors for timeout in mgmapi
      storage/ndb/src/mgmapi/mgmapi_internal.h:
        WL#3704 mgmapi timeouts: Return sane errors for timeout in mgmapi
      storage/ndb/src/mgmsrv/Services.cpp:
        WL#3704 mgmapi timeouts: Return sane errors for timeout in mgmapi
      storage/ndb/test/ndbapi/testMgm.cpp:
        WL#3704 mgmapi timeouts: Return sane errors for timeout in mgmapi
      b4ae169e