From 594594ec72f123fa4a2fe27e3e1cba2f387c627e Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Mon, 2 Jun 2025 15:28:26 -0700 Subject: [PATCH] adjust ctrl memory cache committing condition to be more robust to bad regions. otherwise we were flooding new request to repeatedly recopy from the client, when we effectively already knew it would never be valid. --- src/ctrl/ctrl_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ctrl/ctrl_core.c b/src/ctrl/ctrl_core.c index 4121be7c..135f14a1 100644 --- a/src/ctrl/ctrl_core.c +++ b/src/ctrl/ctrl_core.c @@ -6745,7 +6745,7 @@ ASYNC_WORK_DEF(ctrl_mem_stream_work) { if(hs_id_match(range_n->id, key.id)) { - if(!u128_match(u128_zero(), hash)) + if(pre_read_mem_gen == post_read_mem_gen) { range_n->mem_gen = post_read_mem_gen; }