From: Zygo Blaxell Date: Sat, 4 Jan 2025 00:56:37 +0000 (-0500) Subject: roots: don't access a shared variable after releasing a lock X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1af5fcdf34777070e8f646d28af2ca0b38afa908;p=bees roots: don't access a shared variable after releasing a lock Access the local copy of `m_root_crawl_map` instead. Signed-off-by: Zygo Blaxell --- diff --git a/src/bees-roots.cc b/src/bees-roots.cc index 6294768f..1c010872 100644 --- a/src/bees-roots.cc +++ b/src/bees-roots.cc @@ -1632,7 +1632,7 @@ BeesRoots::insert_new_crawl() lock.unlock(); // Nothing to crawl? Seems suspicious... - if (m_root_crawl_map.empty()) { + if (crawl_map_copy.empty()) { BEESLOGINFO("crawl map is empty!"); }