[SCN] fix farm failure

This commit is contained in:
obdev
2022-11-28 02:58:33 +00:00
committed by ob-robot
parent 87a9357186
commit 51de5b5911
594 changed files with 9722 additions and 7770 deletions

View File

@ -80,7 +80,7 @@ public:
}
virtual void reset() override
{
if (pos_ > MAX_RESERVE_SIZE - 1) {
if (allocator_.used() > 0) {
allocator_.reset();
}
pos_ = 0;
@ -88,7 +88,7 @@ public:
}
virtual void reuse() override
{
if (pos_ > MAX_RESERVE_SIZE - 1) {
if (allocator_.used() > 0) {
allocator_.reuse();
}
pos_ = 0;