mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
Adding a nix option to sync before registering a path, for non-ext*
filesystems.
This commit is contained in:
parent
19d9762ad5
commit
25de80e2b6
1 changed files with 2 additions and 0 deletions
|
@ -968,6 +968,8 @@ void LocalStore::registerValidPath(const ValidPathInfo & info)
|
||||||
|
|
||||||
void LocalStore::registerValidPaths(const ValidPathInfos & infos)
|
void LocalStore::registerValidPaths(const ValidPathInfos & infos)
|
||||||
{
|
{
|
||||||
|
if (queryBoolSetting("sync-before-registering", true))
|
||||||
|
sync();
|
||||||
while (1) {
|
while (1) {
|
||||||
try {
|
try {
|
||||||
SQLiteTxn txn(db);
|
SQLiteTxn txn(db);
|
||||||
|
|
Loading…
Reference in a new issue