Changeset: 7314fdb21a58 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/7314fdb21a58
Modified Files:
clients/Tests/exports.stable.out
monetdb5/mal/mal_client.c
monetdb5/mal/mal_client.h
Branch: default
Log Message:
Remove unused function MCforkClient.
diffs (81 lines):
diff --git a/clients/Tests/exports.stable.out b/clients/Tests/exports.stable.out
--- a/clients/Tests/exports.stable.out
+++ b/clients/Tests/exports.stable.out
@@ -753,7 +753,6 @@ MALfcn MANIFOLDtypecheck(Client cntxt, M
int MCactiveClients(void);
str MCawakeClient(int id);
void MCcloseClient(Client c);
-Client MCforkClient(Client father);
Client MCgetClient(int id);
Client MCinitClient(oid user, bstream *fin, stream *fout);
int MCpushClientInput(Client c, bstream *new_input, int listing, const char
*prompt);
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
@@ -343,55 +343,6 @@ MCinitClientThread(Client c)
return 0;
}
-/*
- * Forking is a relatively cheap way to create a new client. The new
- * client record shares the IO descriptors. To avoid interference, we
- * limit children to only produce output by closing the input-side.
- *
- * If the father itself is a temporary client, let the new child depend
- * on the grandfather.
- */
-Client
-MCforkClient(Client father)
-{
- /* TO BE REMOVED: this function is not used anywhere */
- Client son = NULL;
-
- if (father == NULL)
- return NULL;
- if (father->father != NULL)
- father = father->father;
- if ((son = MCinitClient(father->user, father->fdin, father->fdout))) {
- son->fdin = NULL;
- son->fdout = father->fdout;
- son->bak = NULL;
- son->yycur = 0;
- son->father = father;
- son->login = father->login;
- son->idle = father->idle;
- son->scenario = father->scenario;
- strcpy_len(father->optimizer, son->optimizer,
sizeof(father->optimizer));
- son->workerlimit = father->workerlimit;
- son->memorylimit = father->memorylimit;
- son->qryctx.querytimeout = father->qryctx.querytimeout;
- son->qryctx.maxmem = father->qryctx.maxmem;
- son->maxmem = father->maxmem;
- son->sessiontimeout = father->sessiontimeout;
-
- son->prompt = father->prompt;
- son->promptlength = strlen(son->prompt);
- /* reuse the scopes wherever possible */
- if (son->usermodule == 0) {
- son->usermodule = userModule();
- if (son->usermodule == 0) {
- MCcloseClient(son);
- return NULL;
- }
- }
- }
- return son;
-}
-
static bool shutdowninprogress = false;
bool
diff --git a/monetdb5/mal/mal_client.h b/monetdb5/mal/mal_client.h
--- a/monetdb5/mal/mal_client.h
+++ b/monetdb5/mal/mal_client.h
@@ -179,7 +179,6 @@ mal_export ClientRec *mal_clients;
mal_export Client MCgetClient(int id);
mal_export Client MCinitClient(oid user, bstream *fin, stream *fout);
-mal_export Client MCforkClient(Client father);
mal_export void MCstopClients(Client c);
mal_export int MCactiveClients(void);
mal_export void MCcloseClient(Client c);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]