added single call for db check at time of db creation

This commit is contained in:
csoler 2021-01-05 20:35:58 +01:00
parent 2124c0935d
commit 6d11abc0f3

View File

@ -162,6 +162,15 @@ RsGenExchange::RsGenExchange(
VALIDATE_MAX_WAITING_TIME(60)
{
mDataAccess = new RsGxsDataAccess(gds);
std::vector<RsGxsGroupId> grpsToDel;
GxsMsgReq msgsToDel;
RsGxsSinglePassIntegrityCheck::check(mServType,mGixs,mDataStore,
#ifdef RS_DEEP_CHANNEL_INDEX
this, mSerialiser,
#endif
grpsToDel,msgsToDel);
}
void RsGenExchange::setNetworkExchangeService(RsNetworkExchangeService *ns)
@ -169,10 +178,8 @@ void RsGenExchange::setNetworkExchangeService(RsNetworkExchangeService *ns)
if(mNetService != NULL)
std::cerr << "(EE) Cannot override existing network exchange service. Make sure it has been deleted otherwise." << std::endl;
else
{
mNetService = ns ;
}
}
RsGenExchange::~RsGenExchange()
{