Changeset: 5278f4cadd32 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=5278f4cadd32
Modified Files:
        sql/backends/monet5/sql_result.c
Branch: protocol
Log Message:

Prevent the writes from exactly filling up the buffer.

If the buffer is exactly filled up, the write will itself perform a flush, 
after which we do a manual flush. The two flushes mess up our reading on the 
client side.


diffs (12 lines):

diff --git a/sql/backends/monet5/sql_result.c b/sql/backends/monet5/sql_result.c
--- a/sql/backends/monet5/sql_result.c
+++ b/sql/backends/monet5/sql_result.c
@@ -2002,7 +2002,7 @@ static int mvc_export_resultset_prot10(r
 
        while (row < (size_t) count)    {
                size_t crow = 0;
-               size_t bytes_left = bsize - sizeof(lng);
+               size_t bytes_left = bsize - sizeof(lng) - 1;
                char cont_req, dummy;
 #ifdef PROT10_DEBUG
                size_t bufpos;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to