提交 e43d803a 编写于 作者: O obdev 提交者: ob-robot

fix merge sort OOM when add merge ways

上级 229e7c1e
......@@ -1846,7 +1846,7 @@ void ObChunkDatumStore::ChunkIterator::try_free_cached_blocks()
const int64_t age = *((int64_t *)((char *)b + b->blk_size_ - sizeof(int64_t)));
if (age < read_age) {
b = cached_.remove_first();
if (b->blk_size_ == default_block_size_) {
if (b->blk_size_ == default_block_size_ && 0 == free_list_.get_size()) {
#ifndef NDEBUG
memset((char *)b + sizeof(*b), 0xAA, b->blk_size_ - sizeof(*b));
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册