From d1f1c386bc755807b0b1f7128a8499190e739aff Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Mon, 2 Nov 2020 12:19:15 -0500 Subject: [PATCH] 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 --- src/bees.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/bees.cc b/src/bees.cc index 44d4ab1..31d9ac6 100644 --- a/src/bees.cc +++ b/src/bees.cc @@ -517,12 +517,6 @@ BeesTempFile::BeesTempFile(shared_ptr 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);