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

Issue 1677193003: [sqlite] Implement RecoverPager in terms of sqlite3_file. (Closed)

Created:
4 years, 10 months ago by Scott Hess - ex-Googler
Modified:
4 years, 10 months ago
Reviewers:
Ryan Hamilton
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@zzsql_recover_handle_review0
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[sqlite] Implement RecoverPager in terms of sqlite3_file. SQLite's Pager structure is for internal use only, whereas sqlite3_file is a documented interface available to SQLite clients or extensions. Where Pager accesses the page cache with fallback to the disk file, sqlite3_file only accesses the disk file. This should not have significant performance impact (recover.c only reads a given block once), but the new version may not see modified pages in the page cache. For this reason, a shared lock is taken to guarantee that the on-disk format matches anything in the cache. BUG=584407 Committed: https://crrev.com/47438a34859463b1304f6cbef9fdf7ab0dbdddd5 Cr-Commit-Position: refs/heads/master@{#374820}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Pager doesn't need to know reserved space. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -44 lines) Patch
M third_party/sqlite/amalgamation/sqlite3.c View 1 5 chunks +63 lines, -22 lines 0 comments Download
M third_party/sqlite/src/src/recover.c View 1 5 chunks +63 lines, -22 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 16 (6 generated)
Scott Hess - ex-Googler
https://codereview.chromium.org/1677193003/diff/1/third_party/sqlite/src/src/recover.c File third_party/sqlite/src/src/recover.c (right): https://codereview.chromium.org/1677193003/diff/1/third_party/sqlite/src/src/recover.c#newcode412 third_party/sqlite/src/src/recover.c:412: const int kExcessSpace = 128; No particular justification for ...
4 years, 10 months ago (2016-02-08 22:53:20 UTC) #3
Scott Hess - ex-Googler
Hmm, like the outstanding review, recover.c is the meat, sqlite3.c should just replicate it.
4 years, 10 months ago (2016-02-08 22:53:46 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1677193003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1677193003/1
4 years, 10 months ago (2016-02-08 22:55:10 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-09 00:52:08 UTC) #7
Ryan Hamilton
lgtm
4 years, 10 months ago (2016-02-10 19:44:53 UTC) #8
Scott Hess - ex-Googler
Pager doesn't need to know reserved space.
4 years, 10 months ago (2016-02-10 23:53:22 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1677193003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1677193003/20001
4 years, 10 months ago (2016-02-10 23:57:30 UTC) #12
Scott Hess - ex-Googler
Thanks! https://codereview.chromium.org/1677193003/diff/1/third_party/sqlite/src/src/recover.c File third_party/sqlite/src/src/recover.c (right): https://codereview.chromium.org/1677193003/diff/1/third_party/sqlite/src/src/recover.c#newcode437 third_party/sqlite/src/src/recover.c:437: pPage->pData = sqlite3_malloc(pPage->nPageSize + kExcessSpace); When doing a ...
4 years, 10 months ago (2016-02-11 00:02:10 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 10 months ago (2016-02-11 01:12:03 UTC) #14
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:33:39 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/47438a34859463b1304f6cbef9fdf7ab0dbdddd5
Cr-Commit-Position: refs/heads/master@{#374820}

Powered by Google App Engine
This is Rietveld 408576698