Changeset: 4ee6ba939d04 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=4ee6ba939d04
Modified Files:
        monetdb5/mal/mal_scenario.c
Branch: malparsing
Log Message:

Avoid too early flush

The flush should only be called on end of block, ie for the
stream (over the socket etc) protocol this sends the prompt etc.
So should be called only once after each statement output/resultset
is fully send.


diffs (19 lines):

diff --git a/monetdb5/mal/mal_scenario.c b/monetdb5/mal/mal_scenario.c
--- a/monetdb5/mal/mal_scenario.c
+++ b/monetdb5/mal/mal_scenario.c
@@ -574,14 +574,11 @@ runScenarioBody(Client c)
        wrapup:
                if (msg != MAL_SUCCEED){
                        mnstr_printf(c->fdout,"!%s%s",msg, (msg[strlen(msg)-1] 
== '\n'? "":"\n"));
-                       mnstr_flush(c->fdout);
                        freeException(msg);
                        msg = MAL_SUCCEED;
                }
-               if( GDKerrbuf && GDKerrbuf[0]){
+               if( GDKerrbuf && GDKerrbuf[0])
                        mnstr_printf(c->fdout,"!GDKerror: %s\n",GDKerrbuf);
-                       mnstr_flush(c->fdout);
-               }
                assert(c->curprg->def->errors == NULL);
                c->actions++;
        }
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to