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

Issue 1685073003: [sqlite] Replace sqlite3Btree* calls with info from header. (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_review1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[sqlite] Replace sqlite3Btree* calls with info from header. Replace sqlite3BtreeGetOptimalReserve() with reading directly from the SQLite header. Also use the header to replace sqlite3BtreeGetPageSize(), though it could also be replaced with "PRAGMA page_size". Also read the encoding from the header rather than using a PRAGMA. BUG=584407 Committed: https://crrev.com/01e4fcc8143e031d29b94ab412eeb902a90191a3 Cr-Commit-Position: refs/heads/master@{#375083}

Patch Set 1 #

Total comments: 7

Patch Set 2 : No static const as array size. Silly Visual Studio. #

Total comments: 1

Patch Set 3 : And apparently clang is less pedantic than Visual Studio about unused variables. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -148 lines) Patch
M third_party/sqlite/amalgamation/sqlite3.c View 1 2 7 chunks +51 lines, -74 lines 0 comments Download
M third_party/sqlite/src/src/recover.c View 1 2 7 chunks +51 lines, -74 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 24 (10 generated)
Scott Hess - ex-Googler
Getting to the end of the line, here. https://codereview.chromium.org/1685073003/diff/1/third_party/sqlite/src/src/recover.c File third_party/sqlite/src/src/recover.c (left): https://codereview.chromium.org/1685073003/diff/1/third_party/sqlite/src/src/recover.c#oldcode658 third_party/sqlite/src/src/recover.c:658: static ...
4 years, 10 months ago (2016-02-11 00:53:57 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1685073003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1685073003/1
4 years, 10 months ago (2016-02-11 00:54:27 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/172408) win_chromium_x64_rel_ng on ...
4 years, 10 months ago (2016-02-11 01:37:36 UTC) #6
Ryan Hamilton
lgtm Nice improvements. Thanks for the annotations in the CL.
4 years, 10 months ago (2016-02-11 20:32:59 UTC) #7
Scott Hess - ex-Googler
No static const as array size. Silly Visual Studio.
4 years, 10 months ago (2016-02-11 21:02:14 UTC) #8
Scott Hess - ex-Googler
Thanks for the review. Minor fix posted based on compile failures in previous dry run, ...
4 years, 10 months ago (2016-02-11 21:10:32 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1685073003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1685073003/20001
4 years, 10 months ago (2016-02-11 21:11:38 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/102444)
4 years, 10 months ago (2016-02-11 21:49:41 UTC) #13
Scott Hess - ex-Googler
And apparently clang is less pedantic than Visual Studio about unused variables.
4 years, 10 months ago (2016-02-11 22:19:34 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1685073003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1685073003/40001
4 years, 10 months ago (2016-02-11 22:23:06 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-11 23:39:00 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1685073003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1685073003/40001
4 years, 10 months ago (2016-02-12 01:36:40 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-12 01:44:18 UTC) #22
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:40:41 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/01e4fcc8143e031d29b94ab412eeb902a90191a3
Cr-Commit-Position: refs/heads/master@{#375083}

Powered by Google App Engine
This is Rietveld 408576698