Skip to content

Commit ed2c3c0

Browse files
committed
Flush at the end of each writeLock.
1 parent 3cdd5dd commit ed2c3c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/sqlite_async/lib/src/web/database.dart

+2
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ class WebDatabase
137137
return await callback(context);
138138
} finally {
139139
context.markClosed();
140+
await _database.fileSystem.flush();
140141
}
141142
});
142143
} else {
@@ -148,6 +149,7 @@ class WebDatabase
148149
return await callback(context);
149150
} finally {
150151
context.markClosed();
152+
await _database.fileSystem.flush();
151153
await _database.customRequest(
152154
CustomDatabaseMessage(CustomDatabaseMessageKind.releaseLock));
153155
}

0 commit comments

Comments
 (0)