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.
BUG=537742
Committed: https://crrev.com/de8784cf209f5c254f6c65718373985eb662b36f
Cr-Commit-Position: refs/heads/master@{#358672}
Patch Set 1 #Patch Set 2 : Uninit variable warning. #
Total comments: 4
Patch Set 3 : Rename helper and address truncate case. #
Total comments: 2
Patch Set 4 : rebase #
Messages
Total messages: 18 (4 generated)
|