* Eliminate all uses of the global variable ‘store’ from libstore.
This should also fix:
    nix-instantiate: ./../boost/shared_ptr.hpp:254: T* boost::shared_ptr<T>::operator->() const [with T = nix::StoreAPI]: Assertion `px != 0' failed.
  which was caused by hashDerivationModulo() calling the ‘store’
  object (during store upgrades) before openStore() assigned it.
			
			
This commit is contained in:
		
							parent
							
								
									5bcdc7e351
								
							
						
					
					
						commit
						93227ff65c
					
				
					 15 changed files with 95 additions and 89 deletions
				
			
		|  | @ -314,13 +314,13 @@ void removeTempRoots(); | |||
| 
 | ||||
| 
 | ||||
| /* Register a permanent GC root. */ | ||||
| Path addPermRoot(const Path & storePath, const Path & gcRoot, | ||||
|     bool indirect, bool allowOutsideRootsDir = false); | ||||
| Path addPermRoot(StoreAPI & store, const Path & storePath, | ||||
|     const Path & gcRoot, bool indirect, bool allowOutsideRootsDir = false); | ||||
| 
 | ||||
| 
 | ||||
| /* Sort a set of paths topologically under the references relation.
 | ||||
|    If p refers to q, then p follows q in this list. */ | ||||
| Paths topoSortPaths(const PathSet & paths); | ||||
| Paths topoSortPaths(StoreAPI & store, const PathSet & paths); | ||||
| 
 | ||||
| 
 | ||||
| /* For now, there is a single global store API object, but we'll
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue