Changeset: 8baef1987c68 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8baef1987c68
Modified Files:
monetdb5/modules/mal/remote.mx
Branch: default
Log Message:
Fix of binary BAT transfer to work with views result of BATslice in read-only
mode.
diffs (21 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
@@ -1210,7 +1210,7 @@
throw(MAL, "remote.bincopyto", RUNTIME_OBJECT_UNDEFINED);
if (!(b->htype == TYPE_void || (b->htype == TYPE_oid && b->H->dense)))
throw(ILLARG, "remote.bincopyto", "only void-headed BATs are
supported");
-
+ BPincref(bid, FALSE);
mnstr_printf(cntxt->fdout, /*JSON*/"{"
"\"version\":1,"
"\"htype\":%d,"
@@ -1233,7 +1233,7 @@
mnstr_write(cntxt->fdout, /* theap */
Tbase(b), b->T->vheap->free, 1);
/* flush is done by the calling environment (MAL) */
-
+ BPdecref(bid, FALSE);
return(MAL_SUCCEED);
}
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list