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

compactRealmFile() doesn't cleanup properly #953

Closed
cmelchior opened this issue Mar 12, 2015 · 5 comments · Fixed by #955
Closed

compactRealmFile() doesn't cleanup properly #953

cmelchior opened this issue Mar 12, 2015 · 5 comments · Fixed by #955
Assignees
Labels

Comments

@cmelchior
Copy link
Contributor

If Realm.compactRealmFile() fails for some reason, the temporary files created might not get deleted. This can leave rather large copies of unused Realm files on the disc.

@cmelchior
Copy link
Contributor Author

Edit: Core has implemented its own compact method on ShareGroup. Use that instead.

@NielsMylle
Copy link

Any documentation on this?

@cmelchior
Copy link
Contributor Author

@cmelchior cmelchior added the PR label Mar 20, 2015
@Cilghal
Copy link

Cilghal commented Mar 27, 2015

How do we use the compact method on ShareGroup?

@cmelchior
Copy link
Contributor Author

You don't :)....SharedGroup is an concept used in the internal API's. From a user perspective you should be using:

Realm.compactRealmFile(context, "name");

This bug is about the current implementation of that API not cleaning up properly in some cases, but using it has not changed.

@cmelchior cmelchior assigned kneth and unassigned cmelchior Apr 15, 2015
@kneth kneth removed the PR label Apr 16, 2015
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants