This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Prepare for more DefaultFileSource changes #12072
Merged
Merged
Commits on Jun 12, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 77cf898 - Browse repository at this point
Copy the full SHA 77cf898View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9709e72 - Browse repository at this point
Copy the full SHA 9709e72View commit details -
Configuration menu - View commit details
-
Copy full SHA for 45b196b - Browse repository at this point
Copy the full SHA 45b196bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b12a177 - Browse repository at this point
Copy the full SHA b12a177View commit details -
Configuration menu - View commit details
-
Copy full SHA for 432b559 - Browse repository at this point
Copy the full SHA 432b559View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0f24a9 - Browse repository at this point
Copy the full SHA b0f24a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 06bb3ae - Browse repository at this point
Copy the full SHA 06bb3aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 56cf8e7 - Browse repository at this point
Copy the full SHA 56cf8e7View commit details -
[core] consolidate database opening workflow
Before this change, we've tried to open the database in read/write, but not create mode. In situations where the database didn't exist yet, this logged an error to the console, and we proceeded to opening it again in read/write/create mode, which actually created the file. The reason we did this is so that we could detect really old caching databases from January 2016 in case a developer upgraded from an older SDK (iOS v3.1 and earlier, Android v3.2 and earlier) that didn't have #3715 yet. However, these error messages, while innocent, look scary in the console and some users suspect that it's a bug. This change opens the file directly in read/write/create mode, omitting the first failed attempt. To handle old cache databases, we're now deleting the `http_cache` table, which was the only table in those old databases, and create the new schema, rather than deleting the entire file and recreating the Database object. In most scenarios, this will lead to one fewer opening attempt, while the database migration will continue to work for the few users who upgrade all the way from a January 2016 SDK. Additionally, this fixes a mismatch between the Qt and non-Qt implementation: Qt doesn't support opening a file in read/write mode without the create flag. This means that we've seen a different control flow on Qt compared to the non-Qt implementation when opening a database.
Configuration menu - View commit details
-
Copy full SHA for 4b7ec06 - Browse repository at this point
Copy the full SHA 4b7ec06View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.