Safe blanket to clean DB if wrong conflicts keep stored

This commit is contained in:
David A. Velasco 2015-08-21 14:20:50 +02:00
parent 95bebe9382
commit b8a3dc71e4

View file

@ -263,7 +263,11 @@ public class SynchronizeFileOperation extends SyncOperation {
result = new RemoteOperationResult(ResultCode.OK);
}
}
// safe blanket: sync'ing a not in-conflict file will clean wrong conflict markers in ancestors
if (result.getCode() != ResultCode.SYNC_CONFLICT) {
getStorageManager().saveConflict(mLocalFile, false);
}
}
}