Skip to content

Improve MySQL balance consistency across multiple servers#74

Open
LuckyODO wants to merge 1 commit into
nulli0n:masterfrom
LuckyODO:master
Open

Improve MySQL balance consistency across multiple servers#74
LuckyODO wants to merge 1 commit into
nulli0n:masterfrom
LuckyODO:master

Conversation

@LuckyODO

Copy link
Copy Markdown

Summary

This PR improves balance consistency when ExcellentEconomy is used with MySQL across multiple servers.

Previously, balances were updated in local memory and later saved through dirty user-data updates. In a high-concurrency multi-server setup, this could allow stale cached balances to overwrite newer values, cause race conditions during player payments, or create duplicate user rows during concurrent first-login inserts.

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.

1 participant