Description[sql] Validate database files before enabling memory-mapping.
With regular I/O, filesystem corruption would cause SQLite to return
SQLITE_IOERR codes. With memory-mapping, filesystem errors can cause a
crash when accessed. There are databases with filesystem corruption,
this CL only enables memory-mapped I/O for parts of the database which
have been successfully read at some point using regular I/O.
[Relands https://codereview.chromium.org/1426743006 which was reverted at
https://codereview.chromium.org/1432953002 . CL is identical, fix to
sql::Connection was landed at https://codereview.chromium.org/1426743006 .]
BUG=537742
TBR=rmcilroy@chromium.org, isherman+reviewer@chromium.org
Committed: https://crrev.com/d90aeea87619c019f8b4be171b65476748868ece
Cr-Commit-Position: refs/heads/master@{#359478}
Patch Set 1 #
Messages
Total messages: 5 (1 generated)
|