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:
Corey D
2023-03-29 20:03:03 -07:00
committed by GitHub
parent 5ba9816377
commit c5087d7a39
4 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -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;