diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/local-store.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index f3b779dd05f3..950e6e7608f1 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -968,6 +968,8 @@ void LocalStore::registerValidPath(const ValidPathInfo & info) void LocalStore::registerValidPaths(const ValidPathInfos & infos) { + if (queryBoolSetting("sync-before-registering", true)) + sync(); while (1) { try { SQLiteTxn txn(db); |