Changeset: 90b034099450 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=90b034099450
Modified Files:
sql/src/backends/monet5/sql_optimizer.mx
Branch: default
Log Message:
Flush BATs to disk for sharing
diffs (29 lines):
diff -r 7389eb4412b5 -r 90b034099450 sql/src/backends/monet5/sql_optimizer.mx
--- a/sql/src/backends/monet5/sql_optimizer.mx Sun Oct 03 20:22:13 2010 +0200
+++ b/sql/src/backends/monet5/sql_optimizer.mx Sun Oct 03 20:23:07 2010 +0200
@@ -339,6 +339,9 @@
}
if (f == binddbatRef) {
mode = getVarConstant(mb, getArg(p,4)).val.ival;
+ } else
+ if (f == bindidxRef ) {
+ cname = getVarConstant(mb,
getArg(p,4)).val.sval;
} else {
cname = getVarConstant(mb,
getArg(p,4)).val.sval;
mode = getVarConstant(mb, getArg(p,5)).val.ival;
@@ -361,6 +364,7 @@
if ( ATTlocation(&loc,&b->batCacheid)
== MAL_SUCCEED && loc)
varSetProp(mb, k, fileProp,
op_eq, VALset(&vr, TYPE_str, loc));
cnt = BATcount(b);
+ BATsave(b); /* make sure it is visible
elsewhere */
BBPreleaseref(b->batCacheid);
}
rows = (wrd) cnt;
@@ -384,6 +388,7 @@
if (
ATTlocation(&loc,&b->batCacheid) == MAL_SUCCEED && loc)
varSetProp(mb, k,
fileProp, op_eq, VALset(&vr, TYPE_str, loc));
cnt = BATcount(b);
+ BATsave(b); /* make sure it is
visible elsewhere */
BBPreleaseref(b->batCacheid);
}
rows = (wrd) cnt;
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list