!1907 fix:双写模式调用周期恢复双写库表丢失

Merge pull request !1907 from 邓俊/master
This commit is contained in:
openharmony_ci 2024-11-20 02:53:43 +00:00 committed by Gitee
commit a23232c6f1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -2215,6 +2215,7 @@ int RdbStoreImpl::Restore(const std::string &backupPath, const std::vector<uint8
}
#endif
if (errCode == E_OK) {
ExchangeSlaverToMaster();
Reportor::ReportRestore(Reportor::Create(config_, E_OK), corrupt);
rebuild_ = RebuiltType::NONE;
}