提交 bb7ba0bc 编写于 作者: W wangyi.ywq 提交者: 奏之章

[feature] add config check #5

上级 e5b93a43
......@@ -784,7 +784,7 @@ void DBImpl::ScheduleGCTTL() {
};
ROCKS_LOG_INFO(immutable_db_options_.info_log, "Start ScheduleGCTTL");
for (auto cfd : *versions_->GetColumnFamilySet()) {
// if(cfd->GetLatestCFOptions().ttl_extractor_factory == nullptr) continue;
if(cfd->GetLatestCFOptions().ttl_extractor_factory == nullptr) continue;
if (cfd->initialized()) {
VersionStorageInfo* vsi = cfd->current()->storage_info();
for (int l = 0; l < vsi->num_levels(); l++) {
......
......@@ -73,6 +73,7 @@ TEST_F(DBImplGCTTL_Test, L0FileExpiredTest) {
ASSERT_TRUE(flag);
ASSERT_EQ(L0FilesNums,mark);
dbfull()->TEST_WaitForCompact();
dbfull()->Close();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册