mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Use DB write server for /load
This commit is contained in:
parent
3e1324dd0a
commit
d71bf5cef1
|
@ -1423,10 +1423,10 @@ void CScore::LoadTeam(const char* Code, int ClientID)
|
|||
Tmp->m_NumPlayer++;
|
||||
}
|
||||
}
|
||||
m_pPool->Execute(LoadTeamThread, std::move(Tmp), "load team");
|
||||
m_pPool->ExecuteWrite(LoadTeamThread, std::move(Tmp), "load team");
|
||||
}
|
||||
|
||||
bool CScore::LoadTeamThread(IDbConnection *pSqlServer, const ISqlData *pGameData)
|
||||
bool CScore::LoadTeamThread(IDbConnection *pSqlServer, const ISqlData *pGameData, bool Failure)
|
||||
{
|
||||
const CSqlTeamLoad *pData = dynamic_cast<const CSqlTeamLoad *>(pGameData);
|
||||
pData->m_pResult->m_Status = CScoreSaveResult::LOAD_FAILED;
|
||||
|
|
|
@ -291,7 +291,7 @@ class CScore
|
|||
static bool GetSavesThread(IDbConnection *pSqlServer, const ISqlData *pGameData);
|
||||
|
||||
static bool SaveTeamThread(IDbConnection *pSqlServer, const ISqlData *pGameData, bool Failure);
|
||||
static bool LoadTeamThread(IDbConnection *pSqlServer, const ISqlData *pGameData);
|
||||
static bool LoadTeamThread(IDbConnection *pSqlServer, const ISqlData *pGameData, bool Failure);
|
||||
|
||||
static bool SaveScoreThread(IDbConnection *pSqlServer, const ISqlData *pGameData, bool Failure);
|
||||
static bool SaveTeamScoreThread(IDbConnection *pSqlServer, const ISqlData *pGameData, bool Failure);
|
||||
|
|
Loading…
Reference in a new issue