Adding a nix option to sync before registering a path, for non-ext*
filesystems.
This commit is contained in:
parent
19d9762ad5
commit
25de80e2b6
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue