-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix double initialization of Database class #4482
Conversation
|
Good point, need to be checked |
So database tasks are no longer asynchronously? https://github.com/otland/forgottenserver/blob/master/src/luascript.cpp#L4184 |
They are, using the same instance doesn't make it synchronous, but in special cases where simultaneous access could occur it will not cause undefined behaviour. If you mean it will not execute at the same time, it never did, mysql has to queue these actions anyway for obvious reasons. Asynchronous in this case means |
AFAIK previous it had its own connection to mysql and you could execute two queries in same time if they were not to same table (then mysql would queue it). |
Yup, this PR is most likely a revert xD |
This reverts commit 56d1bc8.
Fix double initialization of
Database
class,Database
now become true singletonPull Request Prelude
Changes Proposed
Issues addressed: