forked from ShadowNinja/minetest-mapper-cpp
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an option to prevent keeping sqlite3 database locked for too long
While prescanning a large database, minetestmapper may keep the database locked for too long, causing minetest to complain, and even bail out sometimes. Minetest will print warnings like: SQLite3 database has been locked for <duration> The new option --sqlite3-limit-prescan-query-size limits the number of records queried from the database in a single query, thus limiting the duration of the lock. If minetest kept the database locked for 1 second or more, *and* if the database was modified in that time, minetestmapper will issue a warning, and suggest using --sqlite3-limit-prescan-query-size.
- Loading branch information
Showing
5 changed files
with
285 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.