database: flip to recursive_mutex to allow nested locks (#1937)
* Fix crash from db locking * Change db lock to use recursive_mutex
This commit is contained in:
@@ -71,7 +71,7 @@ public:
|
||||
void SetLastIDAndRows(unsigned int insertID, unsigned int affectedRows);
|
||||
private:
|
||||
PGconn *m_pgsql;
|
||||
std::mutex m_FullLock;
|
||||
std::recursive_mutex m_FullLock;
|
||||
|
||||
unsigned int m_lastInsertID;
|
||||
unsigned int m_lastAffectedRows;
|
||||
|
||||
Reference in New Issue
Block a user