Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Source/WebCore/platform/sql/SQLiteDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ bool SQLiteDatabase::open(const String& filename, OpenMode openMode)
LOG_ERROR("SQLite database could not set temp_store to memory");
}

{
SQLiteTransactionInProgressAutoCounter transactionCounter;
// prevent wasting disk space, see https://www.sqlite.org/pragma.html#pragma_journal_size_limit
executeCommand("PRAGMA journal_size_limit = 0;"_s);
}

if (filename != inMemoryPath()) {
if (openMode != OpenMode::ReadOnly && !useWALJournalMode())
return false;
Expand Down