From 90955ac2a8c7e8ca4aaac240cb55dd58f1e464f7 Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Sun, 18 May 2025 15:24:56 -0700 Subject: [PATCH] fix incorrect lock type in hs key closing path --- src/hash_store/hash_store.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hash_store/hash_store.c b/src/hash_store/hash_store.c index fff4e2fa..55903601 100644 --- a/src/hash_store/hash_store.c +++ b/src/hash_store/hash_store.c @@ -285,7 +285,7 @@ hs_key_close(U128 key) U64 hash_stripe_idx = hash_slot_idx%hs_shared->stripes_count; HS_Slot *hash_slot = &hs_shared->slots[hash_slot_idx]; HS_Stripe *hash_stripe = &hs_shared->stripes[hash_stripe_idx]; - OS_MutexScope(hash_stripe->rw_mutex) + OS_MutexScopeR(hash_stripe->rw_mutex) { for(HS_Node *n = hash_slot->first; n != 0; n = n->next) {