about summary refs log tree commit diff
path: root/src/libstore/local-store.hh
diff options
context:
space:
mode:
authorWout Mertens <Wout.Mertens@gmail.com>2014-05-15T07·02+0200
committerWout Mertens <Wout.Mertens@gmail.com>2014-05-15T07·02+0200
commit3b9ea8452f102595874826e349fa38f85c00aa39 (patch)
tree6218f965e71e345c0dbdc23a8dbf21a637cea651 /src/libstore/local-store.hh
parentd73ffc552f78e0d9048e3bcc1e84452d1e8d2ede (diff)
Shortcut store files before lstat
readdir() already returns the inode numbers, so we don't need to call
lstat to know if a file was already linked or not.
Diffstat (limited to 'src/libstore/local-store.hh')
-rw-r--r--src/libstore/local-store.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/local-store.hh b/src/libstore/local-store.hh
index b335092a20..487bb711ea 100644
--- a/src/libstore/local-store.hh
+++ b/src/libstore/local-store.hh
@@ -315,6 +315,7 @@ private:
 #endif
 
     InodeHash loadInodeHash();
+    Strings readDirectoryIgnoringInodes(const Path & path, const InodeHash & inodeHash, OptimiseStats & stats);
     void optimisePath_(OptimiseStats & stats, const Path & path, InodeHash & inodeHash);
 
     // Internal versions that are not wrapped in retry_sqlite.