diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-06-21T07·38+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-06-21T07·38+0000 |
commit | daf0a923c7c77300dfb09ee34c1ae31c87002a0e (patch) | |
tree | d72b2533082046b3f02a8e8d2a54423af823c8cf /src/libstore/store.hh | |
parent | 15c60ca1b64a4e5dc874f60c764f0ccc8899d740 (diff) |
* Wrap calls to registerSubstitute() in a single transaction to
improve throughput. * Don't build the `substitute-rev' table for now, since it caused Theta(N^2) time and log file consumption when adding N substitutes. Maybe we can do without it.
Diffstat (limited to 'src/libstore/store.hh')
-rw-r--r-- | src/libstore/store.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/store.hh b/src/libstore/store.hh index e09a4a94b70d..40d1859e533d 100644 --- a/src/libstore/store.hh +++ b/src/libstore/store.hh @@ -63,8 +63,8 @@ bool querySuccessor(const Path & srcPath, Path & sucPath); Paths queryPredecessors(const Path & sucPath); /* Register a substitute. */ -void registerSubstitute(const Path & srcPath, - const Substitute & sub); +void registerSubstitute(const Transaction & txn, + const Path & srcPath, const Substitute & sub); /* Return the substitutes expression for the given path. */ Substitutes querySubstitutes(const Path & srcPath); |