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

Issue 1753993002: [sqlite] Allow recover.c to compile independently. (Closed)

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

Description

[sqlite] Allow recover.c to compile independently. Last step to removing recover.c's dependency on SQLite internals. recover_varint.c copies the getVarint() implementation from fts5_varint.c, and renames to recoverGetVarint(). Copied from fts5 because I hope to upstream this to SQLite's ext/ directory someday. In recover.c, cribbed some typedefs from fts5Int.h. Replaced Pgno with u32 (pager.h defines it as u32). Renamed getVarint() calls. Virtual table creation parser assumes "main" db rather than "name of first db" (they should be the same). At this point, recover.c can be compiled outside the amalgamation, but doing so would break Chromium's build. BUG=584407 Committed: https://crrev.com/481e5587ab14da2fcea690288421499d762ed32f Cr-Commit-Position: refs/heads/master@{#379902}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Comment change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+271 lines, -199 lines) Patch
M third_party/sqlite/amalgamation/sqlite3.c View 1 9 chunks +228 lines, -20 lines 0 comments Download
M third_party/sqlite/src/Makefile.in View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/sqlite/src/Makefile.linux-gcc View 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/sqlite/src/main.mk View 4 chunks +4 lines, -1 line 0 comments Download
M third_party/sqlite/src/src/recover.c View 8 chunks +24 lines, -20 lines 0 comments Download
A + third_party/sqlite/src/src/recover_varint.c View 1 4 chunks +13 lines, -154 lines 0 comments Download
M third_party/sqlite/src/tool/mksqlite3c.tcl View 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 18 (6 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1753993002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1753993002/1
4 years, 9 months ago (2016-03-01 23:41:57 UTC) #2
Scott Hess - ex-Googler
Annotate the various changes. https://codereview.chromium.org/1753993002/diff/1/third_party/sqlite/amalgamation/sqlite3.c File third_party/sqlite/amalgamation/sqlite3.c (right): https://codereview.chromium.org/1753993002/diff/1/third_party/sqlite/amalgamation/sqlite3.c#newcode136714 third_party/sqlite/amalgamation/sqlite3.c:136714: +/* #include <stdint.h> */ This ...
4 years, 9 months ago (2016-03-02 01:12:08 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/189903)
4 years, 9 months ago (2016-03-02 01:13:04 UTC) #5
Scott Hess - ex-Googler
Thanks for volunteering!
4 years, 9 months ago (2016-03-02 18:45:20 UTC) #7
sdefresne
lgtm https://codereview.chromium.org/1753993002/diff/1/third_party/sqlite/src/src/recover_varint.c File third_party/sqlite/src/src/recover_varint.c (right): https://codereview.chromium.org/1753993002/diff/1/third_party/sqlite/src/src/recover_varint.c#newcode28 third_party/sqlite/src/src/recover_varint.c:28: ** Bitmasks used by sqlite3GetVarint(). These precomputed constants ...
4 years, 9 months ago (2016-03-08 15:42:37 UTC) #8
Scott Hess - ex-Googler
Thanks! https://codereview.chromium.org/1753993002/diff/1/third_party/sqlite/src/src/recover_varint.c File third_party/sqlite/src/src/recover_varint.c (right): https://codereview.chromium.org/1753993002/diff/1/third_party/sqlite/src/src/recover_varint.c#newcode28 third_party/sqlite/src/src/recover_varint.c:28: ** Bitmasks used by sqlite3GetVarint(). These precomputed constants ...
4 years, 9 months ago (2016-03-08 18:37:36 UTC) #9
Scott Hess - ex-Googler
Comment change
4 years, 9 months ago (2016-03-08 18:38:17 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1753993002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1753993002/20001
4 years, 9 months ago (2016-03-08 18:39:13 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-08 20:41:29 UTC) #14
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/481e5587ab14da2fcea690288421499d762ed32f Cr-Commit-Position: refs/heads/master@{#379902}
4 years, 9 months ago (2016-03-08 20:42:57 UTC) #16
evgeny.s.sidorenko
Hi Scott, it looks like you forgot to add your patch to third_party/sqlite/patches/ as mentioned ...
4 years, 6 months ago (2016-06-16 13:06:29 UTC) #17
Scott Hess - ex-Googler
4 years, 6 months ago (2016-06-16 23:38:41 UTC) #18
Message was sent while issue was closed.
On 2016/06/16 13:06:29, evgeny.s.sidorenko wrote:
> it looks like you forgot to add your patch to third_party/sqlite/patches/ as
> mentioned in README.chromium file.

OK, I'll go look at that.  I may have forgotten to land a final CL to move the
module from sqlite/src/src to something Chromium-local like sqlite/ext/ .

Powered by Google App Engine
This is Rietveld 408576698