Changeset: 55190feabdea for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=55190feabdea Modified Files: sql/backends/monet5/sql.mx Branch: Feb2013 Log Message:
Don't use ridiculously large buffer on 32-bit systems. This fixes bug 3334. diffs (16 lines): diff --git a/sql/backends/monet5/sql.mx b/sql/backends/monet5/sql.mx --- a/sql/backends/monet5/sql.mx +++ b/sql/backends/monet5/sql.mx @@ -4235,7 +4235,11 @@ mvc_import_table_wrap(Client cntxt, MalB throw(IO, "streams.open", "could not open file '%s': %s", filename, strerror(errnr)); } - s = bstream_create(ss, 33554432); +#if SIZEOF_VOID_P == 4 + s = bstream_create(ss, 0x20000); +#else + s = bstream_create(ss, 0x2000000); +#endif if (!s) throw(IO, "bstreams.create", "failed to create block stream"); b = mvc_import_table(cntxt, m, s, *sname, *tname, (char*)tsep, (char*)rsep, (char*)ssep, (char*)ns, *sz, *offset, *locked); _______________________________________________ checkin-list mailing list checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list