Changeset: 2a76c9a8cb8b for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/2a76c9a8cb8b
Modified Files:
gdk/gdk_batop.c
Branch: Jul2021
Log Message:
Only save pertinent value.
diffs (19 lines):
diff --git a/gdk/gdk_batop.c b/gdk/gdk_batop.c
--- a/gdk/gdk_batop.c
+++ b/gdk/gdk_batop.c
@@ -39,12 +39,12 @@ unshare_varsized_heap(BAT *b)
}
ATOMIC_INIT(&h->refs, 1);
MT_lock_set(&b->theaplock);
- Heap *oldheap = b->tvheap;
+ int parent = b->tvheap->parentid;
HEAPdecref(b->tvheap, false);
b->tvheap = h;
MT_lock_unset(&b->theaplock);
- BBPunshare(oldheap->parentid);
- BBPunfix(oldheap->parentid);
+ BBPunshare(parent);
+ BBPunfix(parent);
}
return GDK_SUCCEED;
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list