forked from carrierwaveuploader/carrierwave
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Manage transaction rollback"
This commit attempts to fix leftover files in failed transactions, but in the process introduces three problems: - Uploader state is inconsistent between `save` and `commit`. For example, reading `my_object.file_url.url` will return a bogus url if I read before commit. - A file might not be uploaded after a successful commit. For example, if there is a network failure. This causes the transaction to not be rolled back and invalid records being recorded. - Even if the upload eventually completes, it can take an arbitrary amount of time, during which the record is invalid. This reverts commit 665f225. Fixes: carrierwaveuploader#2544
- Loading branch information
Showing
2 changed files
with
12 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters