From d73ffc552f78e0d9048e3bcc1e84452d1e8d2ede Mon Sep 17 00:00:00 2001 From: Wout Mertens Date: Wed, 14 May 2014 22:52:10 +0200 Subject: Use the inodes given by readdir directly --- src/libstore/local-store.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libstore/local-store.hh') diff --git a/src/libstore/local-store.hh b/src/libstore/local-store.hh index 71229f7a69c0..b335092a201a 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 Hashes; + typedef std::tr1::unordered_set InodeHash; #else - typedef std::set Hashes; + typedef std::set 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); -- cgit 1.4.1