Changeset: f8fcdfa15c0e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f8fcdfa15c0e
Modified Files:
        monetdb5/mal/mal.h
        monetdb5/mal/mal_instruction.c
Branch: SciQL-2
Log Message:

activeClients added in MalBlkPtr


diffs (30 lines):

diff --git a/monetdb5/mal/mal.h b/monetdb5/mal/mal.h
--- a/monetdb5/mal/mal.h
+++ b/monetdb5/mal/mal.h
@@ -212,6 +212,7 @@ typedef struct MALBLK {
        lng runtime;                            /* average execution time of 
block in ticks */
        int calls;                                      /* number of calls */
        lng optimize;                           /* total optimizer time */
+       int activeClients;                      /* load during mitosis 
optimization */
 } *MalBlkPtr, MalBlkRecord;
 
 #define STACKINCR   128
diff --git a/monetdb5/mal/mal_instruction.c b/monetdb5/mal/mal_instruction.c
--- a/monetdb5/mal/mal_instruction.c
+++ b/monetdb5/mal/mal_instruction.c
@@ -132,6 +132,7 @@ newMalBlk(int maxvars, int maxstmts)
        mb->calls = 0;
        mb->optimize = 0;
        mb->stmt = NULL;
+       mb->activeClients = 1;
        if (newMalBlkStmt(mb, maxstmts) < 0) {
                GDKfree(mb->var);
                GDKfree(mb->stmt);
@@ -235,6 +236,7 @@ copyMalBlk(MalBlkPtr old)
        mb->dotfile = old->dotfile;
        mb->marker = 0;
        mb->var = (VarPtr *) GDKzalloc(sizeof(VarPtr) * old->vsize);
+       mb->activeClients = 1;
 
        if (mb->var == NULL) {
                GDKfree(mb);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to