From: Steinar H. Gunderson Date: Wed, 14 Oct 2020 22:56:37 +0000 (+0200) Subject: Don't flush the cache on plocate.db. X-Git-Tag: 1.0.4~9 X-Git-Url: https://git.sesse.net/?p=plocate;a=commitdiff_plain;h=436bb5d60934c534b2ddab599236493fbff4da23 Don't flush the cache on plocate.db. This was changed by mistake in an earlier patch. --- diff --git a/plocate.cpp b/plocate.cpp index b63fefa..dfb12d4 100644 --- a/plocate.cpp +++ b/plocate.cpp @@ -246,7 +246,7 @@ Corpus::Corpus(int fd, IOUringEngine *engine) : fd(fd), engine(engine) { // Enable to test cold-cache behavior (except for access()). - if (true) { + if (false) { off_t len = lseek(fd, 0, SEEK_END); if (len == -1) { perror("lseek");