Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[CP][core][android] Decouple vacuum from other operations on offline database #16029

Merged
merged 8 commits into from
Dec 9, 2019

Conversation

pozdnyakov
Copy link
Contributor

This pull request CPs pieces of #15899 and #15967 and introduces OfflineManager.runPackDatabaseAutomatically(boolean) and OfflineManager. packDatabase(boolean) API in order to enable decoupling vacuum operation from other operations run on the offline database file (delete offline region, clear ambient cache)

- introduce `OfflineDatabase::pack()` standing for incremental vacuum
- make pack optional at offline region deletion
- update `OfflineDatabase.DeleteRegion` test accordingly to the items above
Add `packDatabase()` method and `bool pack` argument to the `deleteOfflineRegion()` method.
- added a unit test
- Updated inline comments in default_file_source.hpp
@pozdnyakov pozdnyakov added Android Mapbox Maps SDK for Android offline Core The cross-platform C++ core, aka mbgl 🍒 cherry pick Indicates that a PR is a cherry pick. labels Dec 9, 2019
@pozdnyakov pozdnyakov self-assigned this Dec 9, 2019
@pozdnyakov pozdnyakov merged commit b7cc4f1 into release-sangria Dec 9, 2019
@pozdnyakov pozdnyakov deleted the cp_15899_15967_release_sangria branch December 9, 2019 12:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android 🍒 cherry pick Indicates that a PR is a cherry pick. Core The cross-platform C++ core, aka mbgl offline
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants