Changeset: 18ff5923c775 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=18ff5923c775
Modified Files:
gdk/gdk_batop.c
monetdb5/modules/mal/iterator.c
Branch: default
Log Message:
Removed some unnecessary calls to BAThseqbase.
diffs (27 lines):
diff --git a/gdk/gdk_batop.c b/gdk/gdk_batop.c
--- a/gdk/gdk_batop.c
+++ b/gdk/gdk_batop.c
@@ -708,11 +708,10 @@ BATslice(BAT *b, BUN l, BUN h)
/* If the source BAT is readonly, then we can obtain a VIEW
* that just reuses the memory of the source. */
if (BAThrestricted(b) == BAT_READ && BATtrestricted(b) == BAT_READ) {
- bn = VIEWcreate_(b->hseqbase, b, TRUE);
+ bn = VIEWcreate_(b->hseqbase + low, b, TRUE);
if (bn == NULL)
return NULL;
VIEWbounds(b, bn, l - BUNfirst(b), h - BUNfirst(b));
- BAThseqbase(bn, (oid) (b->hseqbase + low));
} else {
/* create a new BAT and put everything into it */
BUN p = l;
diff --git a/monetdb5/modules/mal/iterator.c b/monetdb5/modules/mal/iterator.c
--- a/monetdb5/modules/mal/iterator.c
+++ b/monetdb5/modules/mal/iterator.c
@@ -61,7 +61,6 @@ ITRnewChunk(lng *res, bat *vid, bat *bid
/* printf("set bat chunk bound to " LLFMT " " BUNFMT " - " BUNFMT "\n",
*granule, first, MIN(cnt,(BUN) *granule)); */
VIEWbounds(b, view, (BUN) first, first + MIN(cnt, (BUN) * granule));
- BAThseqbase(view, b->hseqbase);
*vid = view->batCacheid;
BBPkeepref(view->batCacheid);
BBPunfix(b->batCacheid);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list