Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 52b46dd

Browse files
author
Aaron Tian
committed
Specify whether to turn on recovery mode at initilization
1 parent d539040 commit 52b46dd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/common/init.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ void PelotonInit::Initialize() {
9999
}
100100
}
101101

102-
logging::LogManager::GetInstance().DoRecovery();
103-
104-
105-
102+
bool enable_recovery = settings::SettingsManager::GetBool(settings::SettingId::enable_recovery);
103+
if(enable_recovery){
104+
logging::LogManager::GetInstance().DoRecovery();
105+
}
106106

107107
threadpool::LoggerQueuePool::GetInstance().Startup();
108108

0 commit comments

Comments
 (0)