Changeset: b54c4a35d53a for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/b54c4a35d53a
Modified Files:
        monetdb5/modules/atoms/str.c
Branch: Jul2021
Log Message:

Deal with loosing hash right after successful creation.


diffs (15 lines):

diff --git a/monetdb5/modules/atoms/str.c b/monetdb5/modules/atoms/str.c
--- a/monetdb5/modules/atoms/str.c
+++ b/monetdb5/modules/atoms/str.c
@@ -3173,7 +3173,10 @@ str_case_hash_lock(bool upper)
        if (BAThash(b) != GDK_SUCCEED)
                throw(MAL, "str.str_case_hash_lock", GDK_EXCEPTION);
        MT_rwlock_rdlock(&b->thashlock);
-       return MAL_SUCCEED;
+       if (b->thash)
+               return MAL_SUCCEED;
+       MT_rwlock_rdunlock(&b->thashlock);
+       throw(MAL, "str.str_case_hash_lock", "Lost hash");
 }
 
 void
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to