Changeset: bc8c76dd4f2f for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=bc8c76dd4f2f Modified Files: monetdb5/mal/mal_client.c monetdb5/mal/mal_client.h Branch: wlcr Log Message:
Keep the replaylog in a SQL variable. diffs (32 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 @@ -244,6 +244,7 @@ MCinitClientRecord(Client c, oid user, b c->error_row = c->error_fld = c->error_msg = c->error_input = NULL; c->wlcr_kind = 0; c->wlcr = NULL; + c->wlcr_replaylog = NULL; #ifndef HAVE_EMBEDDED /* no authentication in embedded mode */ { str msg = AUTHgetUsername(&c->username, c); @@ -400,6 +401,9 @@ freeClient(Client c) freeMalBlk(c->wlcr); c->wlcr_kind = 0; c->wlcr = NULL; + if( c->wlcr_replaylog) + GDKfree(c->wlcr_replaylog); + c->wlcr_replaylog = NULL; } if (t) THRdel(t); /* you may perform suicide */ 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 @@ -176,6 +176,7 @@ typedef struct CLIENT { */ int wlcr_kind; int wlcr_mode; + str wlcr_replaylog; MalBlkPtr wlcr; /* * Errors during copy into are collected in a user specific column set _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list