提交 d71cfe04 编写于 作者: Z Zhichao Cao 提交者: Facebook GitHub Bot

Add flush_job_test to the list of ASSERT_STATUS_CHECKED tests (#7445)

Summary: Pull Request resolved: https://github.com/facebook/rocksdb/pull/7445

Test Plan: pass ASSERT_STATUS_CHECKED=1 make -j48 flush_job_test

Reviewed By: akankshamahajan15

Differential Revision: D23969372

Pulled By: zhichao-cao

fbshipit-source-id: 498ff45ef84e07ec27a8f35d0874d3371412afe9
上级 1abbc56a
......@@ -641,6 +641,7 @@ ifdef ASSERT_STATUS_CHECKED
io_tracer_test \
merge_helper_test \
memtable_list_test \
flush_job_test \
ifeq ($(USE_FOLLY_DISTRIBUTED_MUTEX),1)
TESTS_PASSING_ASC += folly_synchronization_distributed_mutex_test
......
......@@ -130,6 +130,7 @@ FlushJob::FlushJob(
}
FlushJob::~FlushJob() {
io_status_.PermitUncheckedError();
ThreadStatusUtil::ResetThreadStatus();
}
......
......@@ -111,6 +111,7 @@ class FlushJobTest : public testing::Test {
ASSERT_OK(s);
// Make "CURRENT" file that points to the new manifest file.
s = SetCurrentFile(fs_.get(), dbname_, 1, nullptr);
ASSERT_OK(s);
}
Env* env_;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册