Skip to content
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

feat: fully async saves #1560

Merged
merged 6 commits into from
Oct 19, 2023
Merged

feat: fully async saves #1560

merged 6 commits into from
Oct 19, 2023

Conversation

luan
Copy link
Contributor

@luan luan commented Sep 4, 2023

Credits: @beats-dh. This is highly inspired and done with Beats' help.

Save intervals are pretty frustrating, they lock the server up and no one is excited to see them come. This makes that whole process asynchronous and speeds everything up.

Only saves that happen during the interval will be async, everything else stays the same. This means that logging out, using the market, etc, will still directly save the player. When that happens, the player is then automatically removed from the save queue.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
3.0% 3.0% Duplication

@beo-code
Copy link

fatal error kv/kv.hpp: No such file or directory.
when building, seems to be line 13 on save_manager.hpp

@luan
Copy link
Contributor Author

luan commented Sep 10, 2023

fatal error kv/kv.hpp: No such file or directory.

when building, seems to be line 13 on save_manager.hpp

This file exists in main. You must be trying this pr on an outdated copy of the repo.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

0.0% 0.0% Coverage
0.9% 0.9% Duplication

@luan luan merged commit 51eb0b2 into opentibiabr:main Oct 19, 2023
@luan luan deleted the luan/save-async branch October 19, 2023 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants