about summary refs log tree commit diff
path: root/src/libstore/local-store.hh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-16T13·58+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-16T13·58+0200
commita737f51fd96be2866a33eb67732e034bcc65a659 (patch)
tree2e46e11fbc12c0fcbf2025aabba1486d8dd4c91f /src/libstore/local-store.hh
parentff02f5336cd0cff0e97fbcf3c54b5b23827702d6 (diff)
Retry all SQLite operations
To deal with SQLITE_PROTOCOL, we also need to retry read-only
operations.
Diffstat (limited to 'src/libstore/local-store.hh')
-rw-r--r--src/libstore/local-store.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstore/local-store.hh b/src/libstore/local-store.hh
index 162bfc6819..adba52fd46 100644
--- a/src/libstore/local-store.hh
+++ b/src/libstore/local-store.hh
@@ -304,6 +304,10 @@ private:
     void checkDerivationOutputs(const Path & drvPath, const Derivation & drv);
 
     void optimisePath_(OptimiseStats & stats, const Path & path);
+
+    // Internal versions that are not wrapped in retry_sqlite.
+    bool isValidPath_(const Path & path);
+    void queryReferrers_(const Path & path, PathSet & referrers);
 };