Changeset: 0ed83d6c325b for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0ed83d6c325b
Modified Files:
monetdb5/mal/mal_import.c
Branch: int128
Log Message:
mal_import.c / malLoadScript(): double buffer size for MAL (module) script
As suggested by Martin (Thanks!),
we increase (double) the buffer size for reading MAL (modules) scripts
in malLoadScript() such that files larger than 1 MB (now up to 2 MB)
can be handled.
TODO:
Properly detect and report (exception / error)
if a file exceeds the buffer size
(or automatically load the file incrementally in that case).
diffs (12 lines):
diff --git a/monetdb5/mal/mal_import.c b/monetdb5/mal/mal_import.c
--- a/monetdb5/mal/mal_import.c
+++ b/monetdb5/mal/mal_import.c
@@ -97,7 +97,7 @@ malLoadScript(Client c, str name, bstrea
mnstr_destroy(fd);
throw(MAL, "malInclude", "could not open file: %s", name);
}
- *fdin = bstream_create(fd, 128 * BLOCK);
+ *fdin = bstream_create(fd, 2 * 128 * BLOCK);
if (bstream_next(*fdin) < 0)
mnstr_printf(c->fdout, "!WARNING: could not read %s\n", name);
return MAL_SUCCEED;
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list