From 07ffdc28629e537c3811f86b83a93655b73909ec Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 29 Jan 2010 12:22:58 +0000 Subject: * Added an option "fsync-metadata" to fsync() changes to /nix/var/nix/db. * Removed the function writeStringToFile since it does (almost) the same thing as writeFile. --- src/libstore/local-store.hh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libstore/local-store.hh') diff --git a/src/libstore/local-store.hh b/src/libstore/local-store.hh index ef585fdaa8a2..31f8d91096a3 100644 --- a/src/libstore/local-store.hh +++ b/src/libstore/local-store.hh @@ -158,12 +158,17 @@ private: /* Store paths for which the referrers file must be purged. */ PathSet delayedUpdates; + /* Whether to do an fsync() after writing Nix metadata. */ + bool doFsync; + int getSchema(); void registerValidPath(const ValidPathInfo & info, bool ignoreValidity = false); ValidPathInfo queryPathInfo(const Path & path, bool ignoreErrors = false); + void appendReferrer(const Path & from, const Path & to, bool lock); + void rewriteReferrers(const Path & path, bool purge, PathSet referrers); void flushDelayedUpdates(); -- cgit 1.4.1