Changeset: 6e9b14b06f1b for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/6e9b14b06f1b
Modified Files:
        monetdb5/mal/mal_runtime.c
Branch: userprofile
Log Message:

make sure we clear the USRstats when a new user (with the same old (r)id) 
starts for the first time.


diffs (13 lines):

diff --git a/monetdb5/mal/mal_runtime.c b/monetdb5/mal/mal_runtime.c
--- a/monetdb5/mal/mal_runtime.c
+++ b/monetdb5/mal/mal_runtime.c
@@ -81,7 +81,8 @@ updateUserStats(Client cntxt, MalBlkPtr 
                return;
        }
 
-       if (USRstats[idx].username == NULL) {
+       if (USRstats[idx].username == NULL || USRstats[idx].user != cntxt->user 
|| strcmp(USRstats[idx].username, cntxt->username) != 0) {
+               clearUSRstats(idx);
                USRstats[idx].user = cntxt->user;
                USRstats[idx].username = GDKstrdup(cntxt->username);
        }
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to