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

fix: update to newer mtdb version to fix resource issues. #183

Merged
merged 4 commits into from
Dec 1, 2023

Conversation

ronoaldo
Copy link
Contributor

@ronoaldo ronoaldo commented Nov 30, 2023

This fixes a regression from #181 by moving the log statement to be executed after nil check.
This should also fixe #180 as there is now a defer to close the Sqlite database at the end of export.

@ronoaldo ronoaldo marked this pull request as draft November 30, 2023 14:29
Gracefully flushes the remaining transactions
for Sqlite.
Requires new release of minetest-go/mtdb.
Fixes minetest-go#180
@ronoaldo ronoaldo changed the title fix: misplaced log could cause panic/nil pointer. fix: update to newer mtdb version to fix resource issues. Nov 30, 2023
@ronoaldo
Copy link
Contributor Author

Blocked until a newer release of mtdb with minetest-go/mtdb#78 is made.

@ronoaldo
Copy link
Contributor Author

I believe this will also fix #179 - the recent commits from mtdb that release read rows from Sqlite backend should no longer retain memory there.

Copy link
Member

@BuckarooBanzay BuckarooBanzay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍

@BuckarooBanzay BuckarooBanzay merged commit c98c3d6 into minetest-go:master Dec 1, 2023
3 checks passed
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.

2 participants