]> git.sesse.net Git - plocate/commitdiff
Don't flush the cache on plocate.db.
authorSteinar H. Gunderson <steinar+git@gunderson.no>
Wed, 14 Oct 2020 22:56:37 +0000 (00:56 +0200)
committerSteinar H. Gunderson <steinar+git@gunderson.no>
Wed, 14 Oct 2020 22:56:37 +0000 (00:56 +0200)
This was changed by mistake in an earlier patch.

plocate.cpp

index b63fefa4e8cdd1dd7e6e0753b0af51e3bf9954d8..dfb12d42573d4c32dac3d8b0b9aaf4311535f2ac 100644 (file)
@@ -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");