@@ -75,7 +75,7 @@ void BGTaskProcessor::Process() {
75
75
running = false ;
76
76
break ;
77
77
}
78
- case BGTaskType::kNewCheckpoint : {
78
+ case BGTaskType::kCheckpoint : {
79
79
StorageMode storage_mode = InfinityContext::instance ().storage ()->GetStorageMode ();
80
80
if (storage_mode == StorageMode::kUnInitialized ) {
81
81
UnrecoverableError (" Uninitialized storage mode" );
@@ -102,7 +102,7 @@ void BGTaskProcessor::Process() {
102
102
}
103
103
break ;
104
104
}
105
- case BGTaskType::kNewCleanup : {
105
+ case BGTaskType::kCleanup : {
106
106
StorageMode storage_mode = InfinityContext::instance ().storage ()->GetStorageMode ();
107
107
if (storage_mode == StorageMode::kUnInitialized ) {
108
108
UnrecoverableError (" Uninitialized storage mode" );
@@ -122,8 +122,8 @@ void BGTaskProcessor::Process() {
122
122
CleanupTxnStore *cleanup_txn_store = static_cast <CleanupTxnStore *>(new_txn_shared->GetTxnStore ());
123
123
if (cleanup_txn_store != nullptr ) {
124
124
TxnTimeStamp clean_ts = cleanup_txn_store->timestamp_ ;
125
- std::shared_ptr<BGTaskInfo> bg_task_info = std::make_shared<BGTaskInfo>(BGTaskType::kNewCleanup );
126
- std::string task_text = fmt::format (" NewCleanup task, cleanup timestamp: {}" , clean_ts);
125
+ std::shared_ptr<BGTaskInfo> bg_task_info = std::make_shared<BGTaskInfo>(BGTaskType::kCleanup );
126
+ std::string task_text = fmt::format (" Cleanup task, cleanup timestamp: {}" , clean_ts);
127
127
bg_task_info->task_info_list_ .emplace_back (task_text);
128
128
if (status.ok ()) {
129
129
bg_task_info->status_list_ .emplace_back (" OK" );
@@ -133,7 +133,7 @@ void BGTaskProcessor::Process() {
133
133
}
134
134
new_txn_mgr->AddTaskInfo (bg_task_info);
135
135
}
136
- LOG_DEBUG (" NewCleanup task in background done" );
136
+ LOG_DEBUG (" Cleanup task in background done" );
137
137
}
138
138
break ;
139
139
}
0 commit comments