]> git.hungrycats.org Git - bees/commitdiff
roots: don't access a shared variable after releasing a lock
authorZygo Blaxell <bees@furryterror.org>
Sat, 4 Jan 2025 00:56:37 +0000 (19:56 -0500)
committerZygo Blaxell <bees@furryterror.org>
Sat, 4 Jan 2025 04:36:53 +0000 (23:36 -0500)
Access the local copy of `m_root_crawl_map` instead.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
src/bees-roots.cc

index 6294768f5a4a06d167b569ea51fa7ab08463b71a..1c010872d1f3efeddaf0a27289c5157f7813b048 100644 (file)
@@ -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!");
        }