From 306f473ffa4a42ed99ee5beaea3fcbea79879af1 Mon Sep 17 00:00:00 2001 From: "Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)" Date: Fri, 17 Sep 2021 12:24:12 +0100 Subject: [PATCH] Fix map_handle::set_cache_disable() recursing forever. --- include/llfio/v2.0/detail/impl/map_handle.ipp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llfio/v2.0/detail/impl/map_handle.ipp b/include/llfio/v2.0/detail/impl/map_handle.ipp index e03587a70..bba67b623 100644 --- a/include/llfio/v2.0/detail/impl/map_handle.ipp +++ b/include/llfio/v2.0/detail/impl/map_handle.ipp @@ -317,7 +317,7 @@ map_handle::cache_statistics map_handle::trim_cache(std::chrono::steady_clock::t bool map_handle::set_cache_disabled(bool disabled) noexcept { auto *c = detail::map_handle_cache(); - return (c != nullptr) ? set_cache_disabled(disabled) : true; + return (c != nullptr) ? c->set_cache_disabled(disabled) : true; } LLFIO_V2_NAMESPACE_END