Changeset: 46579ce1b110 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/46579ce1b110
Modified Files:
        sql/storage/objectset.c
Branch: Jul2021
Log Message:

make sure we only create a hash when it become usefull (also solve problems on 
power)


diffs (12 lines):

diff --git a/sql/storage/objectset.c b/sql/storage/objectset.c
--- a/sql/storage/objectset.c
+++ b/sql/storage/objectset.c
@@ -343,7 +343,7 @@ static objectset *
 os_append_node_id(objectset *os, versionhead  *n)
 {
        lock_writer(os);
-       if (!os->id_map || (os->id_map->size*16 < os->id_based_cnt && 
os->id_based_cnt > HASH_MIN_SIZE))
+       if ((!os->id_map || os->id_map->size*16 < os->id_based_cnt) && 
os->id_based_cnt > HASH_MIN_SIZE)
                os_append_id_map(os); /* on failure just fall back too slow 
method */
 
        if (os->id_map) {
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to