From 4c37e874f23767703f06db08194058b8fde0b4f0 Mon Sep 17 00:00:00 2001 From: Narciso Jaramillo Date: Mon, 3 Feb 2014 13:21:30 -0800 Subject: [PATCH] Temporary workaround for #6437: always allow blind writes (but log the issue) --- src/filesystem/impls/appshell/AppshellFileSystem.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/filesystem/impls/appshell/AppshellFileSystem.js b/src/filesystem/impls/appshell/AppshellFileSystem.js index 6bd90a8bd00..8273c8c8703 100644 --- a/src/filesystem/impls/appshell/AppshellFileSystem.js +++ b/src/filesystem/impls/appshell/AppshellFileSystem.js @@ -422,8 +422,12 @@ define(function (require, exports, module) { if (options.hasOwnProperty("expectedHash") && options.expectedHash !== stats._hash) { console.error("Blind write attempted: ", path, stats._hash, options.expectedHash); - callback(FileSystemError.CONTENTS_MODIFIED); - return; + + // Temporary change for release 36: allow the blind write anyway. We're getting + // spurious cases where file modification times are being changed without actually + // changing the content and without sending us a file change notification. + // callback(FileSystemError.CONTENTS_MODIFIED); + // return; } _finishWrite(false);