[SCN REFACTOR] replace flash back snapshot and remove read snapshot session

This commit is contained in:
wangt1xiuyi
2022-11-28 01:54:50 +00:00
committed by ob-robot
parent c4c13f6296
commit 11485d6a98
268 changed files with 6763 additions and 7737 deletions

View File

@ -80,15 +80,19 @@ public:
}
virtual void reset() override
{
if (pos_ > MAX_RESERVE_SIZE - 1) {
allocator_.reset();
}
pos_ = 0;
buf_[0] = '\0';
allocator_.reset();
}
virtual void reuse() override
{
if (pos_ > MAX_RESERVE_SIZE - 1) {
allocator_.reuse();
}
pos_ = 0;
buf_[0] = '\0';
allocator_.reuse();
}
virtual void set_attr(const ObMemAttr &attr) { UNUSED(attr); }