Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Issue 1426743006: [sql] Validate database files before enabling memory-mapping. (Closed)

Created:
5 years, 1 month ago by Scott Hess - ex-Googler
Modified:
5 years, 1 month ago
Reviewers:
Ilya Sherman, rmcilroy
CC:
chromium-reviews, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -8 lines) Patch
M sql/connection.h View 1 2 2 chunks +23 lines, -0 lines 0 comments Download
M sql/connection.cc View 1 2 3 3 chunks +148 lines, -8 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
Scott Hess - ex-Googler
Uninit variable warning.
5 years, 1 month ago (2015-11-04 23:20:09 UTC) #1
Scott Hess - ex-Googler
I was trying to get the VFS option to this working sanely, but I kept ...
5 years, 1 month ago (2015-11-04 23:39:56 UTC) #3
rmcilroy
https://codereview.chromium.org/1426743006/diff/20001/sql/connection.cc File sql/connection.cc (right): https://codereview.chromium.org/1426743006/diff/20001/sql/connection.cc#newcode938 sql/connection.cc:938: amount = 0; If the database got truncated between ...
5 years, 1 month ago (2015-11-05 15:34:46 UTC) #4
Scott Hess - ex-Googler
Rename helper and address truncate case.
5 years, 1 month ago (2015-11-05 18:21:19 UTC) #5
Scott Hess - ex-Googler
PTAL? Thanks. https://codereview.chromium.org/1426743006/diff/20001/sql/connection.cc File sql/connection.cc (right): https://codereview.chromium.org/1426743006/diff/20001/sql/connection.cc#newcode938 sql/connection.cc:938: amount = 0; On 2015/11/05 15:34:46, rmcilroy ...
5 years, 1 month ago (2015-11-05 18:25:07 UTC) #6
rmcilroy
lgtm, thanks.
5 years, 1 month ago (2015-11-09 17:31:09 UTC) #7
Scott Hess - ex-Googler
rebase
5 years, 1 month ago (2015-11-09 18:03:32 UTC) #8
Scott Hess - ex-Googler
isherman@ for histograms.xml. The "success" case wasn't logged because that's the expected end point for ...
5 years, 1 month ago (2015-11-09 18:30:00 UTC) #10
Ilya Sherman
histograms.xml lgtm On 2015/11/09 18:30:00, Scott Hess wrote: > The "success" case wasn't logged because ...
5 years, 1 month ago (2015-11-09 19:17:58 UTC) #11
Scott Hess - ex-Googler
On 2015/11/09 19:17:58, Ilya Sherman wrote: > histograms.xml lgtm > > On 2015/11/09 18:30:00, Scott ...
5 years, 1 month ago (2015-11-09 20:08:10 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1426743006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1426743006/60001
5 years, 1 month ago (2015-11-09 20:08:51 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 1 month ago (2015-11-09 22:05:58 UTC) #16
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/de8784cf209f5c254f6c65718373985eb662b36f Cr-Commit-Position: refs/heads/master@{#358672}
5 years, 1 month ago (2015-11-09 22:06:47 UTC) #17
robliao
5 years, 1 month ago (2015-11-10 00:09:38 UTC) #18
Message was sent while issue was closed.
On 2015/11/09 22:06:47, commit-bot: I haz the power wrote:
> Patchset 4 (id:??) landed as
> https://crrev.com/de8784cf209f5c254f6c65718373985eb662b36f
> Cr-Commit-Position: refs/heads/master@{#358672}

A revert of this CL has been created:
https://codereview.chromium.org/1432953002/

Powered by Google App Engine
This is Rietveld 408576698