Skip to content

Possibly fixed all the MySQL errors from my previous pull request #2646

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

Merged
merged 7 commits into from
Dec 13, 2017

Conversation

tperalta82
Copy link
Contributor

Since I extended the mysqli class to implement read/write, i totally forgot to implement "a last used" connection in case of error, otherwise the errors would be bogus and totally untraceable.

Been running for days in a big pool, no issues so far

.gitignore composer.lock, and remove composer.lock from repo
…d of returning false it was returning the this->sqlError.... which by then was returning the return false, the problem was the log in the cron that was misleading, took 2 days figuring this one out
Had to rewrite all the mysqli->error/errno to mysqli->lastused because of the read/write splitting, shoud be working now
Reverted notifications code back to previous version
Added  the lastused property to mysqlms, so that when calling the error/errno we know what was the lsat connection used, same for insert_id
@TheSerapher
Copy link
Contributor

Looks promising so I merge into development, maybe you can find a few users to test on their own pools as well so we have a wider acceptance of it.

@TheSerapher TheSerapher merged commit 9628c34 into MPOS:development Dec 13, 2017
@tperalta82
Copy link
Contributor Author

Is there any official forum or somewhere I can post it?
I'll also add the sql_mode in the future for mysql 5.7 compat without changing mysql server itself

@tperalta82
Copy link
Contributor Author

so far i'm running it on https://hbc.multipools.club

@TheSerapher
Copy link
Contributor

No official forum since it’s not really maintained anymore other than pull requests by others.

The sql mode may help indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants