Changeset: 4f0f3a15236c for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=4f0f3a15236c
Modified Files:
monetdb5/mal/mal_client.c
Branch: Jul2012
Log Message:
MCinit: adjust MAX_CLIENTS to match what's actually used
Each client connection, holds one Client record for itself, and forks
threads workers, which all also hold a Client record. The console
(admin) always has the first slot.
With this new limit, one can actually connect max_client clients to the
server, instead of that amount roughly divided by threads.
diffs (14 lines):
diff --git a/monetdb5/mal/mal_client.c b/monetdb5/mal/mal_client.c
--- a/monetdb5/mal/mal_client.c
+++ b/monetdb5/mal/mal_client.c
@@ -125,8 +125,8 @@ MCinit(void)
MAL_MAXCLIENTS =
/* console */ 1 +
- /* workers */ threads +
- /* client connections */ maxclients;
+ /* client connections */ maxclients +
+ /* workers per client */ (maxclients * threads);
mal_clients = GDKzalloc(sizeof(ClientRec) * MAL_MAXCLIENTS);
}
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list