diff --git a/core/deps/SQLiteCpp b/core/deps/SQLiteCpp index eb065bf741..4e3d36af2d 160000 --- a/core/deps/SQLiteCpp +++ b/core/deps/SQLiteCpp @@ -1 +1 @@ -Subproject commit eb065bf741c2422a84de0766fe7fb38cea53f195 +Subproject commit 4e3d36af2d4a612d548f5959532a7b97c9724e6b diff --git a/core/src/data/mbtilesDataSource.cpp b/core/src/data/mbtilesDataSource.cpp index 6997003bf0..cc8c75910d 100644 --- a/core/src/data/mbtilesDataSource.cpp +++ b/core/src/data/mbtilesDataSource.cpp @@ -233,11 +233,11 @@ bool MBTilesDataSource::loadNextSource(std::shared_ptr _task, TileTask void MBTilesDataSource::openMBTiles() { try { - auto mode = SQLite::OPEN_READONLY; + auto mode = SQLite::OPEN_READONLY | SQLite::OPEN_FULLMUTEX; if (m_cacheMode) { // Need to explicitly open a SQLite DB with OPEN_READWRITE // and OPEN_CREATE flags to make a file and write. - mode = SQLite::OPEN_READWRITE | SQLite::OPEN_CREATE; + mode = SQLite::OPEN_READWRITE | SQLite::OPEN_CREATE | SQLite::OPEN_FULLMUTEX; } auto url = Url(m_path);