* Turn on read-only mode in queries. This prevents redundant store I/O.
This commit is contained in:
		
							parent
							
								
									c7bea941b0
								
							
						
					
					
						commit
						f09618b63a
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -516,6 +516,8 @@ static void opQuery(Globals & globals,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    enum { sInstalled, sAvailable } source = sInstalled;
 | 
					    enum { sInstalled, sAvailable } source = sInstalled;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    readOnlyMode = true; /* makes evaluation a bit faster */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    for (Strings::iterator i = opFlags.begin();
 | 
					    for (Strings::iterator i = opFlags.begin();
 | 
				
			||||||
         i != opFlags.end(); ++i)
 | 
					         i != opFlags.end(); ++i)
 | 
				
			||||||
        if (*i == "--status" || *i == "-s") printStatus = true;
 | 
					        if (*i == "--status" || *i == "-s") printStatus = true;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue