Changeset: 6833e685dbfd for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/6833e685dbfd
Modified Files:
        gdk/gdk_batop.c
Branch: default
Log Message:

No need to unshare heap of destination if shared with source.


diffs (13 lines):

diff --git a/gdk/gdk_batop.c b/gdk/gdk_batop.c
--- a/gdk/gdk_batop.c
+++ b/gdk/gdk_batop.c
@@ -222,7 +222,8 @@ insert_string_bat(BAT *b, BAT *n, struct
                                }
                        }
                }
-       } else if (unshare_varsized_heap(b) != GDK_SUCCEED)
+       } else if (b->tvheap != n->tvheap &&
+                  unshare_varsized_heap(b) != GDK_SUCCEED)
                return GDK_FAIL;
 
        /* make sure there is (vertical) space in the offset heap, we
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to