Changeset: 5d7f6a2e157b for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/5d7f6a2e157b
Modified Files:
monetdb5/mal/mal_runtime.c
Branch: userprofile
Log Message:
reinitialize the USRstats seems needed.
diffs (14 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
@@ -85,7 +85,9 @@ 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) {
+ if (USRstats[idx].username)
+ GDKfree(USRstats[idx].username);
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]