diff options
author | Wout Mertens <Wout.Mertens@gmail.com> | 2014-05-14 22:52:10 +0200 |
---|---|---|
committer | Wout Mertens <Wout.Mertens@gmail.com> | 2014-05-14 22:52:10 +0200 |
commit | d73ffc552f78e0d9048e3bcc1e84452d1e8d2ede (patch) | |
tree | 0273f4f7d4f73b92cd77a03f14f8170aee5d0c3f /src/libstore/local-store.hh | |
parent | e974f20c9811c3efe09cfca9bda7816f9091c0d5 (diff) |
Use the inodes given by readdir directly
Diffstat (limited to 'src/libstore/local-store.hh')
-rw-r--r-- | src/libstore/local-store.hh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstore/local-store.hh b/src/libstore/local-store.hh index 71229f7a6..b335092a2 100644 --- a/src/libstore/local-store.hh +++ b/src/libstore/local-store.hh @@ -309,13 +309,13 @@ private: void checkDerivationOutputs(const Path & drvPath, const Derivation & drv); #if HAVE_TR1_UNORDERED_SET - typedef std::tr1::unordered_set<ino_t> Hashes; + typedef std::tr1::unordered_set<ino_t> InodeHash; #else - typedef std::set<ino_t> Hashes; + typedef std::set<ino_t> InodeHash; #endif - void loadHashes(Hashes & hashes); - void optimisePath_(OptimiseStats & stats, const Path & path, Hashes & hashes); + InodeHash loadInodeHash(); + void optimisePath_(OptimiseStats & stats, const Path & path, InodeHash & inodeHash); // Internal versions that are not wrapped in retry_sqlite. bool isValidPath_(const Path & path); |