mirror of
				https://github.com/Zygo/bees.git
				synced 2025-11-04 04:00:36 +01:00 
			
		
		
		
	tempfile: remove size limit in realign()
Now that tempfiles are using pool checkin functions to control their size, we don't need a size limit in realign(). We keep the limit in make_copy because it's a sanity check against letting a multi-terabyte copy operation slip through. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
		@@ -517,12 +517,6 @@ BeesTempFile::BeesTempFile(shared_ptr<BeesContext> ctx) :
 | 
			
		||||
void
 | 
			
		||||
BeesTempFile::realign()
 | 
			
		||||
{
 | 
			
		||||
	if (m_end_offset > BLOCK_SIZE_MAX_TEMP_FILE) {
 | 
			
		||||
		BEESLOGINFO("temporary file size " << to_hex(m_end_offset) << " > max " << BLOCK_SIZE_MAX_TEMP_FILE);
 | 
			
		||||
		BEESCOUNT(tmp_trunc);
 | 
			
		||||
		reset();
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
	if (m_end_offset & BLOCK_MASK_CLONE) {
 | 
			
		||||
		// BEESTRACE("temporary file size " << to_hex(m_end_offset) << " not aligned");
 | 
			
		||||
		BEESCOUNT(tmp_realign);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user