X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=access_rx_cache.cpp;h=7633c3112530ff67fc52b8305ae67ff3d6b8ea0e;hb=fb7b94545366926f6cb2f09dcda51365e301eda9;hp=b6db4eaf101c9faa288e3d0ac005b946c1a68e15;hpb=d0f2469aedf852ba2d6949e59bfc1fff565960c9;p=plocate diff --git a/access_rx_cache.cpp b/access_rx_cache.cpp index b6db4ea..7633c31 100644 --- a/access_rx_cache.cpp +++ b/access_rx_cache.cpp @@ -55,7 +55,7 @@ void AccessRXCache::check_access(const char *filename, bool allow_async, functio it->second.emplace_back(PendingStat{ filename, move(cb) }); } else { it = pending_stats.emplace(filename, vector{}).first; - engine->submit_stat(filename, [this, it, filename{ strdup(filename) }, cb{ move(cb) }] { + engine->submit_stat(filename, [this, it, filename{ strdup(filename) }, cb{ move(cb) }](bool) { // The stat returned, so now do the actual access() calls. // All of them should be in cache, so don't fire off new statx() // calls during that check.