mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-26 13:20:48 +00:00
Fix sqlite3 threadpool exhaustion with db.serialize() on startup
This commit is contained in:
committed by
Josh Perez
parent
246ca86319
commit
021b54cb75
@@ -236,6 +236,9 @@ async function openDatabase(filePath: string): Promise<sql.Database> {
|
||||
};
|
||||
|
||||
instance = new sql.Database(filePath, callback);
|
||||
|
||||
// See: https://github.com/mapbox/node-sqlite3/issues/1395
|
||||
instance.serialize();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user