X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=access_rx_cache.cpp;h=b6db4eaf101c9faa288e3d0ac005b946c1a68e15;hb=498466c6434e479cd973fe7655b4feb51dd2c378;hp=c6f56347e8ecf543ebfeb4af567c351d5039f77f;hpb=d5ba26d705460a7e37213eeb4954b2efed8bebf0;p=plocate diff --git a/access_rx_cache.cpp b/access_rx_cache.cpp index c6f5634..b6db4ea 100644 --- a/access_rx_cache.cpp +++ b/access_rx_cache.cpp @@ -11,6 +11,11 @@ using namespace std; void AccessRXCache::check_access(const char *filename, bool allow_async, function cb) { + if (!check_visibility) { + cb(true); + return; + } + lock_guard lock(mu); if (engine == nullptr || !engine->get_supports_stat()) { allow_async = false;