Changeset: ed3d9a3204c6 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ed3d9a3204c6
Modified Files:
        monetdb5/modules/mal/remote.mx
Branch: Aug2011
Log Message:

bincopyfrom: don't keep on reading forever on errors

Cause of generating 6 gigs of error output is most likely that the
stream has been closed or something like that.  Don't insist on reading
a prompt in that case.


diffs (12 lines):

diff --git a/monetdb5/modules/mal/remote.mx b/monetdb5/modules/mal/remote.mx
--- a/monetdb5/modules/mal/remote.mx
+++ b/monetdb5/modules/mal/remote.mx
@@ -1428,7 +1428,7 @@
        b->batDirty = TRUE;
 
        /* read blockmode flush */
-       while (mnstr_read(in, &tmp, 1, 1) != 0) {
+       while (mnstr_read(in, &tmp, 1, 1) > 0) {
                mnstr_printf(GDKout, "!MALexception:remote.bincopyfrom: 
expected flush, got: %c\n", tmp);
        }
 
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to