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

Issue 885473002: [sql] Rewrite sqlite patching "system". (Closed)

Created:
5 years, 11 months ago by Scott Hess - ex-Googler
Modified:
5 years, 10 months ago
Reviewers:
michaeln
CC:
chromium-reviews, jshin+watch_chromium.org
Base URL:
http://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[sql] Rewrite sqlite patching "system". Rewrite the patch system to leverage git. The patches are generated by git-format-patch in a sub-directory. A developer can regenerate a version-control history using git-am, then use regular git tools to work with the changelists. Hopefully this will make it easier to keep track of patches going forward, and also make it easier to merge Chromium changes with upstream changes when importing new SQLite versions. This CL should not materially modify Chromium's SQLite. sqlite3.c has these changes: - An ancient change to func.c has been dropped for lack of current support. - Code for initializing the recover virtual table was added for testing. Chromium does not set DEFAULT_ENABLE_RECOVER to enable this, instead sql/recovery.cc enables it as needed. - Some comment changes which hadn't propagated from recover.c. Otherwise, minor cleanup changes. SQLite's tests compile and run under Ububntu 14.04.01 and OSX 10.9 with Xcode 5.0, with most tests passing. See README.Chromium for more information. BUG=340757 Committed: https://crrev.com/42cee4198cb450ceff63b2442f55dd606a17faa5 Cr-Commit-Position: refs/heads/master@{#313849}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Annotate patch authors, light changes to readme. #

Patch Set 3 : Fixed typo in readme. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3832 lines, -6616 lines) Patch
M third_party/sqlite/README.chromium View 1 2 1 chunk +226 lines, -176 lines 0 comments Download
M third_party/sqlite/amalgamation/sqlite3.c View 3 chunks +19 lines, -5 lines 0 comments Download
D third_party/sqlite/fts2.patch View 1 chunk +0 lines, -1950 lines 0 comments Download
D third_party/sqlite/fts3.patch View 1 chunk +0 lines, -68 lines 0 comments Download
D third_party/sqlite/fts3_85522.patch View 1 chunk +0 lines, -21 lines 0 comments Download
D third_party/sqlite/icu-shell.patch View 1 chunk +0 lines, -92 lines 0 comments Download
D third_party/sqlite/mac_time_machine.patch View 1 chunk +0 lines, -103 lines 0 comments Download
D third_party/sqlite/memcmp.patch View 1 chunk +0 lines, -87 lines 0 comments Download
D third_party/sqlite/misalignment.patch View 1 chunk +0 lines, -48 lines 0 comments Download
D third_party/sqlite/misc.patch View 1 chunk +0 lines, -28 lines 0 comments Download
A third_party/sqlite/patches/0001-test-SQLite-tests-compiling-on-Linux.patch View 1 1 chunk +107 lines, -0 lines 0 comments Download
A third_party/sqlite/patches/0002-Fix-expr.c-linker-error.patch View 1 1 chunk +30 lines, -0 lines 0 comments Download
A + third_party/sqlite/patches/0003-backport-SQLite-memcmp-patch.patch View 1 5 chunks +43 lines, -26 lines 0 comments Download
A + third_party/sqlite/patches/0004-Use-seperate-page-cache-pools-for-each-sqlite-connec.patch View 1 2 chunks +23 lines, -3 lines 0 comments Download
A third_party/sqlite/patches/0005-Exclude-journal-file-from-Time-Machine-if-database-i.patch View 1 1 chunk +155 lines, -0 lines 0 comments Download
A + third_party/sqlite/patches/0006-Modify-default-VFS-to-support-WebDatabase.patch View 1 7 chunks +41 lines, -20 lines 0 comments Download
A third_party/sqlite/patches/0007-backport-SQLite-os-intercept-changes.patch View 1 1 chunk +475 lines, -0 lines 0 comments Download
A + third_party/sqlite/patches/0008-Virtual-table-supporting-recovery-of-corrupted-datab.patch View 1 10 chunks +1466 lines, -53 lines 0 comments Download
A third_party/sqlite/patches/0009-Custom-shell.c-helpers-to-load-Chromium-s-ICU-data.patch View 1 1 chunk +145 lines, -0 lines 0 comments Download
A third_party/sqlite/patches/0010-fts3-Disable-fts3_tokenizer-and-fts4.patch View 1 1 chunk +57 lines, -0 lines 0 comments Download
A third_party/sqlite/patches/0011-fts3-backport-ICU-tokenizer-iterate-by-UTF16.patch View 1 1 chunk +29 lines, -0 lines 0 comments Download
A third_party/sqlite/patches/0012-fts3-backport-Fix-bug-when-PRAGMA-is-not-authorized.patch View 1 1 chunk +36 lines, -0 lines 0 comments Download
A + third_party/sqlite/patches/0013-fts3-backport-Fix-out-of-scope-reference.patch View 1 2 chunks +24 lines, -2 lines 0 comments Download
A third_party/sqlite/patches/0014-fts3-backport-Fix-misaligned-address-in-icu-tokenize.patch View 1 1 chunk +48 lines, -0 lines 0 comments Download
A third_party/sqlite/patches/0015-fts3-Interior-node-corruption-detection.patch View 1 1 chunk +44 lines, -0 lines 0 comments Download
A third_party/sqlite/patches/0016-fts2-test-Add-fts2-to-testfixture.patch View 1 1 chunk +112 lines, -0 lines 0 comments Download
A third_party/sqlite/patches/0017-fts2-Disable-fts2_tokenizer-for-security-reasons.patch View 1 1 chunk +53 lines, -0 lines 0 comments Download
A third_party/sqlite/patches/0018-fts2-backport-ICU-tokenizer-iterate-by-UTF16.patch View 1 1 chunk +29 lines, -0 lines 0 comments Download
A third_party/sqlite/patches/0019-fts2-backport-Fix-misaligned-address-in-icu-tokenize.patch View 1 1 chunk +48 lines, -0 lines 0 comments Download
A third_party/sqlite/patches/0020-fts2-Interpret-foo-as-a-prefix-search.patch View 1 1 chunk +48 lines, -0 lines 0 comments Download
A third_party/sqlite/patches/0021-fts2-Detect-and-handle-certain-corruption-cases.patch View 1 1 chunk +309 lines, -0 lines 0 comments Download
A third_party/sqlite/patches/0022-fts2-Fix-a-crasher-in-full-text-search-sqlite.patch View 1 1 chunk +89 lines, -0 lines 0 comments Download
A + third_party/sqlite/patches/0023-fts2-Fix-numerous-out-of-bounds-bugs-reading-corrupt.patch View 1 61 chunks +116 lines, -455 lines 0 comments Download
D third_party/sqlite/recover.patch View 1 chunk +0 lines, -2194 lines 0 comments Download
D third_party/sqlite/separate_cache_pool.patch View 1 chunk +0 lines, -29 lines 0 comments Download
D third_party/sqlite/sqlite-3.7.6.3-fix-out-of-scope-memory-reference.patch View 1 chunk +0 lines, -26 lines 0 comments Download
M third_party/sqlite/src/Makefile.linux-gcc View 4 chunks +22 lines, -8 lines 0 comments Download
M third_party/sqlite/src/ext/fts2/fts2.c View 6 chunks +5 lines, -6 lines 0 comments Download
M third_party/sqlite/src/main.mk View 8 chunks +23 lines, -23 lines 0 comments Download
M third_party/sqlite/src/src/func.c View 1 chunk +1 line, -1 line 0 comments Download
M third_party/sqlite/src/src/main.c View 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/sqlite/src/src/shell.c View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/sqlite/src/test/permutations.test View 1 chunk +0 lines, -1 line 0 comments Download
A + third_party/sqlite/src/test/releasetest.mk View 0 chunks +-1 lines, --1 lines 0 comments Download
D third_party/sqlite/system-sqlite.patch View 1 chunk +0 lines, -880 lines 0 comments Download
D third_party/sqlite/test.patch View 1 chunk +0 lines, -149 lines 0 comments Download
D third_party/sqlite/webdb.patch View 1 chunk +0 lines, -163 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
Scott Hess - ex-Googler
OK, I found the WebDatabase problem with 3.8.7, so pulling the trigger. This just sets ...
5 years, 11 months ago (2015-01-27 22:09:37 UTC) #2
Scott Hess - ex-Googler
On 2015/01/27 22:09:37, Scott Hess wrote: > AFAICT this approach _could_ > maintain attribution as ...
5 years, 11 months ago (2015-01-27 22:49:55 UTC) #3
michaeln
lgtm > With a little experimentation, it looks like it will easily support attribution. > ...
5 years, 10 months ago (2015-01-29 02:40:09 UTC) #4
Scott Hess - ex-Googler
On 2015/01/29 02:40:09, michaeln wrote: > lgtm > > > With a little experimentation, it ...
5 years, 10 months ago (2015-01-29 22:08:33 UTC) #5
michaeln
This new process and the readme looks great. Do you think it will ever make ...
5 years, 10 months ago (2015-01-29 23:12:36 UTC) #6
Scott Hess - ex-Googler
On 2015/01/29 23:12:36, michaeln wrote: > This new process and the readme looks great. > ...
5 years, 10 months ago (2015-01-29 23:24:19 UTC) #7
Scott Hess - ex-Googler
On 2015/01/29 23:24:19, Scott Hess wrote: > On 2015/01/29 23:12:36, michaeln wrote: > > This ...
5 years, 10 months ago (2015-01-29 23:25:27 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/885473002/40001
5 years, 10 months ago (2015-01-29 23:28:56 UTC) #10
michaeln
> > I'm experimenting with whether a vfs based on base/ APIs will work. Dumi ...
5 years, 10 months ago (2015-01-29 23:36:22 UTC) #11
Scott Hess - ex-Googler
On 2015/01/29 23:36:22, michaeln wrote: > > > I'm experimenting with whether a vfs based ...
5 years, 10 months ago (2015-01-29 23:45:31 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-01-30 01:14:45 UTC) #13
commit-bot: I haz the power
5 years, 10 months ago (2015-01-30 01:15:53 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/42cee4198cb450ceff63b2442f55dd606a17faa5
Cr-Commit-Position: refs/heads/master@{#313849}

Powered by Google App Engine
This is Rietveld 408576698