Changeset: 6d65e3baf2cd for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=6d65e3baf2cd
Modified Files:
        gdk/gdk_batop.c
Branch: Mar2018
Log Message:

Only check for capacity once.


diffs (22 lines):

diff --git a/gdk/gdk_batop.c b/gdk/gdk_batop.c
--- a/gdk/gdk_batop.c
+++ b/gdk/gdk_batop.c
@@ -583,18 +583,6 @@ BATappend(BAT *b, BAT *n, BAT *s, bit fo
 
        b->batDirty = 1;
 
-       if (cnt > BATcapacity(b) - BUNlast(b)) {
-               /* if needed space exceeds a normal growth extend just
-                * with what's needed */
-               BUN ncap = BUNlast(b) + cnt;
-               BUN grows = BATgrows(b);
-
-               if (ncap > grows)
-                       grows = ncap;
-               if (BATextend(b, grows) != GDK_SUCCEED)
-                       goto bunins_failed;
-       }
-
        IMPSdestroy(b);         /* imprints do not support updates yet */
        OIDXdestroy(b);
        PROPdestroy(b->tprops);
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to