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

GPKG: fix threaded RTree building when creating several layers (3.6.0 regression) #6959

Merged
merged 3 commits into from
Dec 21, 2022

Conversation

rouault
Copy link
Member

@rouault rouault commented Dec 21, 2022

Async RTree building doesn't play well with multiple layers: SQLite3 locks being hold for a long time, random failed commits, etc

… regression)

Before this fix, an error message like "sqlite3_exec(ATTACH DATABASE 'my.gpkg.tmp_rtree_bar.db' AS temp_rtree) failed: database temp_rtree is already in use"
was emitted. Luckily, the code detects this error and falls back to the
non-threaded RTree implementation, so no data corruption occurs. Just an
annoying error message, and a suboptimal behaviour since only the first
layer is created with threaded RTree building.
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.

None yet

1 participant