fix:双写模式下恢复表丢失

Signed-off-by: 邓俊 <dengjun39@huawei.com>
This commit is contained in:
邓俊 2024-11-15 11:34:00 +08:00
parent 849475a25e
commit 094af7af7c

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;
}