1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Handle SQLITE_BUSY errors gracefully

This allows other applications (e.g. minetestmapper) to interrogate
the database while minetest is running, without causing an almost
certain minetest crash.
This commit is contained in:
Rogier 2015-12-23 11:38:50 +01:00 committed by est31
parent 848b050a56
commit c6bb6f99d1
2 changed files with 64 additions and 0 deletions

View file

@ -63,6 +63,10 @@ private:
sqlite3_stmt *m_stmt_delete;
sqlite3_stmt *m_stmt_begin;
sqlite3_stmt *m_stmt_end;
s64 m_busy_handler_data[2];
static int busyHandler(void *data, int count);
};
#endif