]> source.dussan.org Git - nextcloud-server.git/commitdiff
call cache->insert directly instead of going trough cache->put first when scanning
authorRobin Appelman <robin@icewind.nl>
Fri, 14 Feb 2020 21:10:09 +0000 (22:10 +0100)
committerRobin Appelman <robin@icewind.nl>
Wed, 1 Apr 2020 12:17:28 +0000 (14:17 +0200)
Signed-off-by: Robin Appelman <robin@icewind.nl>
lib/private/Files/Cache/Scanner.php

index 99f334c635063c631e4538195f87f74e68b75de6..f2c998eeeed1eb972d8e0ba75acdf686fb558aef 100644 (file)
@@ -292,7 +292,7 @@ class Scanner extends BasicEmitter implements IScanner {
                                $this->cache->update($fileId, $data);
                                return $fileId;
                        } else {
-                               return $this->cache->put($path, $data);
+                               return $this->cache->insert($path, $data);
                        }
                } else {
                        return -1;