- 12 Jan, 2005 1 commit
-
-
unknown authored
When a node restarts it starts over again with fetching the configuration - It is not sure that it can use the "old dynamically allocated port number" again. - It should however try to reuse the old one, if not possible it should allocate a new one. One has to be able to distinguish between portnumbers specified originally in the config, and ones that has been dynamically added (the latter may be changed if "busy", but the first cannot be changed). We use negative portnumbers for ports that are ok to change. ndb/include/mgmapi/mgmapi_debug.h: change prototype for: ndb_mgm_set_connection_int_parameter ndb_mgm_get_connection_int_parameter Accept/set an int instead of an unsigned ndb/include/transporter/TransporterRegistry.hpp: Use an int (signed) to represent a port number. Zero means dynamic (but unassigned) >0 means static (defined in configuration) <0 means dynamic (and should be converted to positive before use) ndb/src/common/mgmcommon/IPCConfig.cpp: Set up the Transporter with a port number of the correct sign. ndb/src/common/transporter/TransporterRegistry.cpp: start_clients_thread: - handle negative port numbers add_transporter_interface: - accept signed integer as port number start_service: - If port is dynamic (<0), try to bind to it. if that fails (e.g. some other process has taken that port), then get a new dynamic port number. ndb/src/mgmapi/mgmapi.cpp: Use a signed integer for value in: ndb_mgm_set_connection_int_parameter ndb_mgm_get_connection_int_parameter Cast to a Uint32 for storage/retrieval to/from Properties ndb/src/mgmsrv/MgmtSrvr.cpp: getConnectionDbParameter - return value as integer (signed) - cast as Uint32 for iter.get ndb/src/mgmsrv/MgmtSrvr.hpp: Update prototype of getConnectionDbParameter int value (not unsigned anymore) ndb/src/mgmsrv/Services.cpp: MgmApiSession::getConnectionParameter - value is now signed
-
- 11 Jan, 2005 1 commit
-
-
unknown authored
ndb/src/common/transporter/TransporterRegistry.cpp: Report an error if connect_client fails. This should never really happen, except if strange things are going on. Hit this case during development, probably good to report if it happens.
-
- 09 Jan, 2005 2 commits
-
-
unknown authored
ndb/src/common/util/SocketServer.cpp: Check for errors from getsockname (and error display). use SOCKET_SIZE_TYPE (as discovered by configure) instead of socklen_t
-
unknown authored
ndb/include/util/SocketClient.hpp: Add SocketClient::set_port(unsigned short port) - Sets both m_port and m_servaddr.sin_port ndb/src/common/transporter/Transporter.hpp: Fix set_r_port to call m_socket_client->set_port(port) (if there's a socket client). ndb/src/common/transporter/TransporterRegistry.cpp: Handle non-TCP Transporter nodes correctly ndb/src/mgmsrv/main.cpp: Better document and error check connecting back to our own ndb_mgmd
-
- 07 Jan, 2005 2 commits
-
-
unknown authored
into mysql.com:/home/stewart/Documents/MySQL/5.0/ndb-dynamic-ports-impl3
-
unknown authored
ndb/src/common/transporter/TransporterRegistry.cpp: Only try to get dynamic port number for TCP transporters. ndb/src/mgmapi/mgmapi.cpp: DBUG_RETURN in ndb_mgm_set_connection_int_parameter Unique negative error codes for ndb_mgm_get_connection_int_parameter ndb/src/mgmsrv/MgmtSrvr.cpp: add MgmtSrvr::set_connect_string(const char *str) ndb/src/mgmsrv/MgmtSrvr.hpp: Add: - prototype for set_connect_string - get_config_retriever ndb/src/mgmsrv/main.cpp: Fake a connect string and connect back to ourselves. This enables us to use mgmapi routines to get configuration information. i.e. ndb_mgm_get_connection_int_parameter for getting dynamic port numbers to connect to.
-
- 06 Jan, 2005 3 commits
- 05 Jan, 2005 5 commits
-
-
unknown authored
+ some more docs on event ndb/examples/ndbapi_event_example/ndbapi_event.cpp: ndbapi event code cleanup ndb/include/kernel/signaldata/CreateEvnt.hpp: ndbapi event code cleanup ndb/include/ndbapi/NdbDictionary.hpp: ndbapi event code cleanup ndb/src/ndbapi/NdbDictionaryImpl.cpp: ndbapi event code cleanup ndb/src/ndbapi/ndberror.c: ndbapi event code cleanup
-
unknown authored
+ some docs update on events ndb/examples/ndbapi_simple_example/ndbapi_simple.cpp: updated example somewhat ndb/include/ndbapi/NdbDictionary.hpp: fixed some docs ndb/src/ndbapi/NdbDictionary.cpp: last go at enabling using const NdbDictionary didn't work ndb/tools/desc.cpp: last go at enabling using const NdbDictionary didn't work ndb/tools/listTables.cpp: last go at enabling using const NdbDictionary didn't work
-
unknown authored
and removed usage of Ndb::waitUntilReady()
-
unknown authored
ndb/src/ndbapi/NdbDictionaryImpl.cpp: getTable retry if DICT busy BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
-
unknown authored
and provided some backwards compat functions
-
- 04 Jan, 2005 13 commits
-
-
unknown authored
into mysql.com:/usr/local/home/marty/MySQL/mysql-5.0-ndb
-
unknown authored
+ some extra docs on the area updated docs by removing som async stuff ndb/include/ndbapi/NdbTransaction.hpp: mostly reformatting but also some more explicit references to objects and methods
-
unknown authored
-
unknown authored
and updated some docs
-
unknown authored
BitKeeper/deleted/.del-select_all.cpp~de02d1231f741270: Delete: ndb/examples/select_all/select_all.cpp BitKeeper/deleted/.del-Makefile~a3c445ed68365196: Delete: ndb/examples/select_all/Makefile
-
unknown authored
-
unknown authored
-
unknown authored
-
unknown authored
-
unknown authored
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
-
unknown authored
-
unknown authored
into mysql.com:/home/stewart/Documents/MySQL/5.0/ndb-dynamic-ports-impl3 ndb/src/common/transporter/TransporterRegistry.cpp: Auto merged ndb/src/mgmsrv/ConfigInfo.cpp: Auto merged ndb/src/mgmsrv/MgmtSrvr.cpp: Auto merged ndb/src/mgmsrv/main.cpp: Auto merged
-
unknown authored
- Change configuration handling so that no default ports are given, but instead 0 is set (port to be dynamic) - TransporterRegistry::start_service now only tries to connect when fetched port number > 0 ndb/include/util/SocketServer.hpp: Update prototype of setup() to take a pointer to the port (so we can return the port we bound to) ndb/src/common/transporter/TransporterRegistry.cpp: Only try to connect_client when we have a valid port number (i.e. > 0) ndb/src/common/util/SocketServer.cpp: ::setup(): Return the port we bound to ndb/src/cw/cpcd/main.cpp: Use new SocketServer::setup() api - returns port we bound to. ndb/src/mgmsrv/main.cpp: Conform to new SocketServer::setup() API (port is a pointer, returning the port we bound to) ndb/src/mgmsrv/ConfigInfo.cpp: fixPortNumber: Don't create port numbers when none are specified, just set 0 (dynamic) ndb/src/mgmsrv/MgmtSrvr.cpp: use DBUG_RETURN correctly in setConnectionDbParameter
-
- 03 Jan, 2005 13 commits
-
-
unknown authored
into mysql.com:/home/jonas/src/mysql-5.0-ndb BitKeeper/etc/logging_ok: auto-union sql/ha_ndbcluster.cc: Auto merged sql/ha_ndbcluster.h: Auto merged
-
unknown authored
-
unknown authored
ndb/include/ndb_types.h: SCCS merged
-
unknown authored
into mysql.com:/home/jonas/src/mysql-5.0
-
unknown authored
-
unknown authored
BitKeeper/etc/logging_ok: auto-union ndb/test/tools/Makefile.am: Auto merged
-
unknown authored
into intelp4d.mysql.com:/users/vtkachenko/bk/mysql-5.0
-
unknown authored
Fix Bug#7624 innobase/include/sync0rw.h: Fix Bug#7624 innobase/include/sync0sync.h: Fix Bug#7624
-
unknown authored
into sanja.is.com.ua:/home/bell/mysql/bk/work-5.0
-
unknown authored
-
unknown authored
into mysql.com:/home/jonas/src/mysql-5.0
-
unknown authored
into mysql.com:/home/jonas/src/mysql-5.0 ndb/include/ndb_global.h.in: Auto merged ndb/include/ndb_types.h: Auto merged
-
unknown authored
-