[scn] fix failure of mittest after refresh feature scn

This commit is contained in:
obdev
2022-11-28 01:46:42 +00:00
committed by ob-robot
parent 49a02f3304
commit 54b64a7263
1898 changed files with 255804 additions and 280809 deletions

View File

@ -59,22 +59,6 @@ private:
int64_t bar_;
};
TEST(ObLogTransTaskPool, Init)
{
const int64_t part_trans_task_prealloc_count = 300000;
const int64_t page_size = 8 * 1024;
const int64_t prealloc_page_count = 20000;
ObConcurrentFIFOAllocator fifo;
int64_t G = 1024 * 1024 * 1024;
fifo.init(1 * G, 1 * G, OB_MALLOC_BIG_BLOCK_SIZE);
ObLogTransTaskPool<MockTransTask> pool;
int ret = pool.init(&fifo, part_trans_task_prealloc_count, page_size, true, prealloc_page_count);
EXPECT_EQ(OB_SUCCESS, ret);
}
TEST(ObLogTransTaskPool, Function1)
{
const int64_t task_cnt = 1024 * 32;