Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: pkg/analyzer/lib/src/dart/analysis/file_byte_store.dart

Issue 2821683002: Flush on write in FileByteStore. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/analysis/file_byte_store.dart
diff --git a/pkg/analyzer/lib/src/dart/analysis/file_byte_store.dart b/pkg/analyzer/lib/src/dart/analysis/file_byte_store.dart
index fba6fbfb8af1516f845e95420894a019237c5c38..5b79b503bf684d411c490ba3029fb352d6e6f348 100644
--- a/pkg/analyzer/lib/src/dart/analysis/file_byte_store.dart
+++ b/pkg/analyzer/lib/src/dart/analysis/file_byte_store.dart
@@ -159,7 +159,7 @@ class FileByteStore implements ByteStore {
void put(String key, List<int> bytes) {
try {
File tempFile = _getFileForKey(_tempName);
- tempFile.writeAsBytesSync(bytes);
+ tempFile.writeAsBytesSync(bytes, flush: true);
File file = _getFileForKey(key);
tempFile.renameSync(file.path);
} catch (_) {}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698