Changeset: 09fd696e026e for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=09fd696e026e Modified Files: monetdb5/modules/mal/remote.mx Branch: default Log Message:
remote.get: only read when there is something to read Reading 0 bytes is no problem, unless it is the last bit, in which case we read our flush/prompt, which means we hang when looking for it afterwards. diffs (13 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 @@ -1343,7 +1343,8 @@ if (bb.headsize > 0) mnstr_read(in, b->H->heap.base, bb.headsize, 1); - mnstr_read(in, b->T->heap.base, bb.tailsize, 1); + if (bb.size > 0) + mnstr_read(in, b->T->heap.base, bb.tailsize, 1); b->batCount = bb.size; if (bb.theapsize > 0) { if (b->T->vheap->size < bb.theapsize) { _______________________________________________ Checkin-list mailing list Checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list