mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
added single call for db check at time of db creation
This commit is contained in:
parent
2124c0935d
commit
6d11abc0f3
@ -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,9 +178,7 @@ 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()
|
||||
|
Loading…
Reference in New Issue
Block a user