Changeset: 97566bcc7aa1 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=97566bcc7aa1
Modified Files:
gdk/gdk_bbp.c
Branch: default
Log Message:
More accurately set revsorted property.
diffs (21 lines):
diff --git a/gdk/gdk_bbp.c b/gdk/gdk_bbp.c
--- a/gdk/gdk_bbp.c
+++ b/gdk/gdk_bbp.c
@@ -1142,13 +1142,13 @@ BBPreadEntries(FILE *fp, int *min_stamp,
if (bs->S.count > 1) {
/* fix result of bug in BATappend not clearing
* revsorted property */
- if (bs->H.type == TYPE_void && bs->H.seq != oid_nil &&
bs->H.revsorted) {
- bs->H.revsorted = 0;
+ if (bs->H.type == TYPE_void && bs->H.seq != oid_nil &&
bs->H.revsorted != (bs->S.count <= 1)) {
+ bs->H.revsorted = bs->S.count <= 1;
bs->S.descdirty = 1;
needcommit = 1;
}
- if (bs->T.type == TYPE_void && bs->T.seq != oid_nil &&
bs->T.revsorted) {
- bs->T.revsorted = 0;
+ if (bs->T.type == TYPE_void && bs->T.seq != oid_nil &&
bs->T.revsorted != (bs->S.count <= 1)) {
+ bs->T.revsorted = bs->S.count <= 1;
bs->S.descdirty = 1;
needcommit = 1;
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list