Changeset: b4f60ed45b0a for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b4f60ed45b0a Modified Files: monetdb5/mal/mal_client.c monetdb5/mal/mal_client.h monetdb5/mal/mal_session.c Branch: default Log Message:
Client: remove unused mypid field diffs (58 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 @@ -193,7 +193,6 @@ MCnewClient(void) return c; } /* - * @- * You can always retrieve a client record using the thread identifier, * because we maintain a 1-1 mapping between client and thread of control. * Therefore, we don't need locks either. @@ -305,15 +304,13 @@ int MCinitClientThread(Client c) snprintf(cname, 11, OIDFMT, c->user); cname[11] = '\0'; - c->mypid = MT_getpid(); - t = THRnew(c->mypid,cname); + t = THRnew(MT_getpid(),cname); if ( t==0) { showException(c->fdout, MAL, "initClientThread", "Failed to initialize client"); MPresetProfiler(c->fdout); return -1; } /* - * @- * The GDK thread administration should be set to reflect use of * the proper IO descriptors. */ @@ -423,7 +420,6 @@ void freeClient(Client c) */ c->user = oid_nil; c->mythread = 0; - c->mypid = 0; c->mode = FREECLIENT; GDKfree(c->glb); c->glb = NULL; 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 @@ typedef struct CLIENT { */ MT_Sema s; /* sema to (de)activate thread */ Thread mythread; - MT_Id mypid; str errbuf; /* location of GDK exceptions */ struct CLIENT *father; /* diff --git a/monetdb5/mal/mal_session.c b/monetdb5/mal/mal_session.c --- a/monetdb5/mal/mal_session.c +++ b/monetdb5/mal/mal_session.c @@ -412,7 +412,6 @@ MSserveClient(void *dummy) return; } /* - * @- * A stack frame is initialized to keep track of global variables. * The scenarios are run until we finally close the last one. */ _______________________________________________ Checkin-list mailing list Checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list