diff --git a/include/bitcoin/database/impl/memory/mmap_private.ipp b/include/bitcoin/database/impl/memory/mmap_private.ipp index 1f3e7f2ae..70674dc4e 100644 --- a/include/bitcoin/database/impl/memory/mmap_private.ipp +++ b/include/bitcoin/database/impl/memory/mmap_private.ipp @@ -300,8 +300,9 @@ void CLASS::worker_start_() NOEXCEPT limit_ = system_memory() / throttle_factor; #else - // Only heads steer residency; bodies are the cache manager's to place. - if (staged_) + // Only managed heads steer residency; bodies and a shared head are the + // cache manager's to place. + if (staged_ || head_shared_) return; #endif