You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using hiberlite,
There are two tables in database , two process trying to read separate table from database in loop.
I folllowed the sample.cpp code.
But after few minutes of execution, there is DB LOCK Error.
I don't understand, why while doing READ we are getting DBLOCK error.
Thanks.
The text was updated successfully, but these errors were encountered:
I've found I had to add locking mechanisms for this ORM.
Put a file-scoped mutex in Database.cpp
Add ScopeLock to
Database::dbSelectIds
Database::allocId
Database::dbExecQuery
Database::dbUpdate
Database::dbLoad
For the most part, this has solved the locking errors. I think there are still 2-3 places where they can happen, but locking out these sections has worked for about 2 weeks so far!
Hi ,
I'm using hiberlite,
There are two tables in database , two process trying to read separate table from database in loop.
I folllowed the sample.cpp code.
But after few minutes of execution, there is DB LOCK Error.
I don't understand, why while doing READ we are getting DBLOCK error.
Thanks.
The text was updated successfully, but these errors were encountered: