Changeset: 2df5326011d7 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=2df5326011d7
Modified Files:
gdk/gdk_batop.c
Branch: Mar2018
Log Message:
Fix position of property setting.
Set properties such as nonil before call to BATtseqbase which may set
them again.
diffs (25 lines):
diff --git a/gdk/gdk_batop.c b/gdk/gdk_batop.c
--- a/gdk/gdk_batop.c
+++ b/gdk/gdk_batop.c
@@ -972,6 +972,10 @@ BATslice(BAT *b, BUN l, BUN h)
bn->tnokey[0] = bn->tnokey[1] = 0;
}
}
+ bn->tnonil = b->tnonil || bn->batCount == 0;
+ bn->tnil = 0; /* we just don't know */
+ bn->tnosorted = 0;
+ bn->tnokey[0] = bn->tnokey[1] = 0;
bni = bat_iterator(bn);
if (BATtdense(b)) {
bn->tdense = TRUE;
@@ -996,10 +1000,6 @@ BATslice(BAT *b, BUN l, BUN h)
bn->trevsorted = b->trevsorted;
BATkey(bn, BATtkey(b));
}
- bn->tnonil = b->tnonil || bn->batCount == 0;
- bn->tnil = 0; /* we just don't know */
- bn->tnosorted = 0;
- bn->tnokey[0] = bn->tnokey[1] = 0;
return bn;
bunins_failed:
BBPreclaim(bn);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list