diff options
author | Wout Mertens <Wout.Mertens@gmail.com> | 2014-05-15T07·02+0200 |
---|---|---|
committer | Wout Mertens <Wout.Mertens@gmail.com> | 2014-05-15T07·02+0200 |
commit | 3b9ea8452f102595874826e349fa38f85c00aa39 (patch) | |
tree | 6218f965e71e345c0dbdc23a8dbf21a637cea651 /src/libstore/local-store.hh | |
parent | d73ffc552f78e0d9048e3bcc1e84452d1e8d2ede (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.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/local-store.hh b/src/libstore/local-store.hh index b335092a201a..487bb711ea5e 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. |