* nix-store --dump-db: be more streamy.
This commit is contained in:
		
							parent
							
								
									7509d70f9d
								
							
						
					
					
						commit
						5d250ad1ea
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -417,9 +417,9 @@ static void opDumpDB(Strings opFlags, Strings opArgs)
 | 
			
		|||
    if (!opArgs.empty())
 | 
			
		||||
        throw UsageError("no arguments expected");
 | 
			
		||||
    PathSet validPaths = store->queryValidPaths();
 | 
			
		||||
    /* !!! this isn't streamy; makeValidityRegistration() builds a
 | 
			
		||||
       potentially gigantic string. */
 | 
			
		||||
    cout << makeValidityRegistration(validPaths, true, true);
 | 
			
		||||
    foreach (PathSet::iterator, i, validPaths) {
 | 
			
		||||
        cout << makeValidityRegistration(singleton<PathSet>(*i), true, true);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue