Skip to content

Commit d32bda0

Browse files
committed
Bug fixes
1 parent 499ed0b commit d32bda0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ if (SIST_DEBUG)
1515
add_compile_definitions(
1616
"SIST_DEBUG=${SIST_DEBUG}"
1717
)
18+
set(VCPKG_BUILD_TYPE debug)
19+
else ()
20+
set(VCPKG_BUILD_TYPE release)
1821
endif ()
1922

2023
if (SIST_DEBUG_INFO)

src/database/database.c

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ void database_open(database_t *db) {
8383
LOG_DEBUGF("database.c", "Opening database %s (%d)", db->filename, db->type);
8484

8585
CRASH_IF_NOT_SQLITE_OK(sqlite3_open(db->filename, &db->db));
86+
sqlite3_busy_timeout(db->db, 1000);
8687

8788
CRASH_IF_NOT_SQLITE_OK(sqlite3_exec(db->db, "PRAGMA cache_size = -200000;", NULL, NULL, NULL));
8889
CRASH_IF_NOT_SQLITE_OK(sqlite3_exec(db->db, "PRAGMA synchronous = OFF;", NULL, NULL, NULL));

0 commit comments

Comments
 (0)