Commit a85db36
Log error and assert in debug when multiple tilestores are created (#7556)
We often have an issue when multiple tilestores are created, that causes
slowness and problems with offline packs.
To help with this, added an error message in this case to log and in
debug it will also crash on an assert.
If you REALLY need to allow multiple tilestores, set this non persistent
setting to true before creating tilestores:
`"com.mapbox.common.tilestore.allow_multiple"`
Example error message:
Error, tile_store]: Creating duplicated TileStore in path
'/Users/olegfedorov/Documents/GitHub/mapbox-sdk/projects/common/test/tmp/TileStoreTest/CreateWithDuplicatePath/tile_store'.
You have now 2 TileStores created in these locations:
'/Users/olegfedorov/Documents/GitHub/mapbox-sdk/projects/common/test/tmp/TileStoreTest/CreateWithDuplicatePath,
/Users/olegfedorov/Documents/GitHub/mapbox-sdk/projects/common/test/tmp/TileStoreTest/CreateWithDuplicatePath/tile_store'.
This will cause performance issues, please use single TileStore for
everything.
see https://mapbox.atlassian.net/browse/CORESDK-4012
cc @mapbox/core-sdk
GitOrigin-RevId: 0242dbae2a6050132058be492bdcbb657161f6be1 parent ecfaf69 commit a85db36
1 file changed
Lines changed: 11 additions & 0 deletions
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
20 | 31 | | |
21 | 32 | | |
22 | 33 | | |
| |||
0 commit comments