Changeset: ae92119ae369 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ae92119ae369
Modified Files:
        gdk/gdk_join.c
Branch: Jun2020
Log Message:

Make name of temporary hash file not dependent on bat id, but thread id.
Multiple threads could be creating/using their own temporary hash
files on the same bat.


diffs (12 lines):

diff --git a/gdk/gdk_join.c b/gdk/gdk_join.c
--- a/gdk/gdk_join.c
+++ b/gdk/gdk_join.c
@@ -2553,7 +2553,7 @@ hashjoin(BAT **r1p, BAT **r2p, BAT *l, B
                          r->thash ? " ignoring existing hash" : "",
                          swapped ? " (swapped)" : "");
                if (snprintf(ext, sizeof(ext), "thshjn%x",
-                            (unsigned) rci->s->batCacheid) >= (int) 
sizeof(ext))
+                            (unsigned) THRgettid()) >= (int) sizeof(ext))
                        goto bailout;
                if ((hsh = BAThash_impl(r, rci, ext)) == NULL) {
                        goto bailout;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to