From 3a9fe1a085edc8db3e3cd35531829ddab51bcd81 Mon Sep 17 00:00:00 2001 From: Ben Radford Date: Wed, 26 Jul 2023 14:44:14 +0100 Subject: [PATCH] Made remountRequired atomic to avoid concurrency issues. --- src/libstore/local-overlay-store.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/local-overlay-store.hh b/src/libstore/local-overlay-store.hh index a26392523..66a43d84a 100644 --- a/src/libstore/local-overlay-store.hh +++ b/src/libstore/local-overlay-store.hh @@ -128,7 +128,7 @@ private: void remountIfNecessary(); - bool _remountRequired = false; + std::atomic_bool _remountRequired = false; }; }