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…
	
	Add table
		Add a link
		
	
		Reference in a new issue