From 32cfe2809464504ea1fe1003ca5d01696e60462b Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Mon, 18 Nov 2024 09:58:34 -0800 Subject: [PATCH] exclusively lock search stripe when taking task & bumping work refcount --- src/dbgi/dbgi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dbgi/dbgi.c b/src/dbgi/dbgi.c index 58ac473c..1ada55ee 100644 --- a/src/dbgi/dbgi.c +++ b/src/dbgi/dbgi.c @@ -1354,7 +1354,7 @@ di_search_thread__entry_point(void *p) String8 query = {0}; DI_SearchParams params = {0}; U64 initial_bucket_write_gen = 0; - OS_MutexScopeR(stripe->rw_mutex) + OS_MutexScopeW(stripe->rw_mutex) { for(DI_SearchNode *n = slot->first; n != 0; n = n->next) {