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 #
Dependent Patchsets: Messages
Total messages: 18 (6 generated)
|