mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02: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:
parent
6705cd9c26
commit
d1f1c386bc
@ -517,12 +517,6 @@ BeesTempFile::BeesTempFile(shared_ptr<BeesContext> ctx) :
|
|||||||
void
|
void
|
||||||
BeesTempFile::realign()
|
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) {
|
if (m_end_offset & BLOCK_MASK_CLONE) {
|
||||||
// BEESTRACE("temporary file size " << to_hex(m_end_offset) << " not aligned");
|
// BEESTRACE("temporary file size " << to_hex(m_end_offset) << " not aligned");
|
||||||
BEESCOUNT(tmp_realign);
|
BEESCOUNT(tmp_realign);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user