Make 'nix copy --to ssh://...' run in constant memory
This commit is contained in:
		
							parent
							
								
									47f7e5585b
								
							
						
					
					
						commit
						11898d6a37
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -120,7 +120,7 @@ struct LegacySSHStore : public Store
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    void addToStore(const ValidPathInfo & info, const ref<std::string> & nar,
 | 
					    void addToStore(const ValidPathInfo & info, Source & source,
 | 
				
			||||||
        RepairFlag repair, CheckSigsFlag checkSigs,
 | 
					        RepairFlag repair, CheckSigsFlag checkSigs,
 | 
				
			||||||
        std::shared_ptr<FSAccessor> accessor) override
 | 
					        std::shared_ptr<FSAccessor> accessor) override
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
| 
						 | 
					@ -131,7 +131,7 @@ struct LegacySSHStore : public Store
 | 
				
			||||||
        conn->to
 | 
					        conn->to
 | 
				
			||||||
            << cmdImportPaths
 | 
					            << cmdImportPaths
 | 
				
			||||||
            << 1;
 | 
					            << 1;
 | 
				
			||||||
        conn->to(*nar);
 | 
					        copyNAR(source, conn->to);
 | 
				
			||||||
        conn->to
 | 
					        conn->to
 | 
				
			||||||
            << exportMagic
 | 
					            << exportMagic
 | 
				
			||||||
            << info.path
 | 
					            << info.path
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue