Below is the list of changes that have just been committed into a local
4.1 repository of jonas. When jonas does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet
1.2503 06/04/26 14:53:43 jonas@stripped +2 -0
ndb - bug#17150
ndb_mgmd limited no of api nodes, by restricting no of mgmsessions
(these are used for dynamic port allocation)
ndb/src/common/util/SocketServer.cpp
1.13 06/04/26 14:53:42 jonas@stripped +2 -2
Increase default max session to ~0
ndb/include/util/SocketServer.hpp
1.7 06/04/26 14:53:41 jonas@stripped +1 -1
Increase default max session to ~0
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: jonas
# Host: perch.ndb.mysql.com
# Root: /home/jonas/src/41-work
--- 1.6/ndb/include/util/SocketServer.hpp 2005-07-14 17:54:32 +02:00
+++ 1.7/ndb/include/util/SocketServer.hpp 2006-04-26 14:53:41 +02:00
@@ -74,7 +74,7 @@
/**
* Constructor / Destructor
*/
- SocketServer(int maxSessions = 32);
+ SocketServer(unsigned maxSessions = ~(unsigned)0);
~SocketServer();
/**
--- 1.12/ndb/src/common/util/SocketServer.cpp 2005-07-14 17:54:32 +02:00
+++ 1.13/ndb/src/common/util/SocketServer.cpp 2006-04-26 14:53:42 +02:00
@@ -27,7 +27,7 @@
#define DEBUG(x) ndbout << x << endl;
-SocketServer::SocketServer(int maxSessions) :
+SocketServer::SocketServer(unsigned maxSessions) :
m_sessions(10),
m_services(5)
{
@@ -124,7 +124,7 @@
DBUG_RETURN(false);
}
- if (listen(sock, m_maxSessions) == -1){
+ if (listen(sock, m_maxSessions > 32 ? 32 : m_maxSessions) == -1){
DBUG_PRINT("error",("listen() - %d - %s",
errno, strerror(errno)));
NDB_CLOSE_SOCKET(sock);
Thread |
---|
• bk commit into 4.1 tree (jonas:1.2503) BUG#17150 | jonas | 26 Apr |