dan
4a0baed049
Update zonefile README.md file to mention the frame cache.
...
FossilOrigin-Name: 84e9351bbd0a9bf9e1d64a441366a90276c231b44548cbc947f7fb2842f82490
2018-02-27 20:09:45 +00:00
dan
f736acd40c
Rationalize some code in zonefile.c. Fix other minor issues in the same.
...
FossilOrigin-Name: f11beb16a87cc967e896cf67121b1e4045e427ebdc6a424e9f009ffced955d36
2018-02-27 19:50:28 +00:00
mistachkin
d276b00554
Enhance test 'zonefile1-6.5' to account for platform differences.
...
FossilOrigin-Name: 8b6178403fb6a7f87502c42026caf3da1c355b2ed9e780b347f4a05d7ffc1e18
2018-02-27 15:47:41 +00:00
mistachkin
fd9a916c4a
Adjustments to test numbers for the 'zonefile' extension.
...
FossilOrigin-Name: 55de6f14d49342394397c0dc29c1e98c927ef99d57ec1f71c79099f584be20d1
2018-02-27 15:42:29 +00:00
dan
4ec163f7ae
Have the zonefile extension use binary instead of text keys.
...
FossilOrigin-Name: 39a4267fc9cec77fd8d9be25c73b848e77a68906253cc75d61fe90e549bafa27
2018-02-27 14:26:33 +00:00
dan
6c3e64e653
Add extra parameter to zonefileCodecCreate() to indicate whether the new
...
object will be used for mock-encryption or mock-decryption.
FossilOrigin-Name: 231832c4cb15862e61dfcc00fba9ab78ca7e2442a0d4aa1a98a191f5f8b4cff3
2018-02-26 07:58:39 +00:00
dan
87f1670de8
Test edge cases in the zonefile module. Fix a broken error message in the same.
...
FossilOrigin-Name: 1764ade22b52eba0226ae2e6e837a1b0967023eabd7d50e9f87c5e7042ea2f12
2018-02-24 08:26:21 +00:00
dan
e68ffadbf4
Fix a problem with handling "k >= ?" constraints in the zonefile module.
...
FossilOrigin-Name: 9a99afafa3fb9ec4823e5030cb04a685d64942ec04a1154b729dc4c0f313dc4a
2018-02-23 21:01:15 +00:00
dan
9f908122af
Add test cases and minor fixes for the zonefile module.
...
FossilOrigin-Name: dbbcbf0066ef82c789981feff78d95861a836e6e23a22ad3bb698dd257062f75
2018-02-23 19:21:19 +00:00
dan
2e2bc60300
Fix a problem causing SQLITE_HAVE_LZ4 builds of zonefile to fail unless
...
SQLITE_HAVE_ZLIB is also defined.
FossilOrigin-Name: 994aa77d7826ab220727595a6a21f1f95a8f7590798879706016665ca1934dd1
2018-02-23 14:09:59 +00:00
dan
d9cad97389
Fix a problem with DROP TABLE statements on zonefile virtual tables.
...
FossilOrigin-Name: d2ed6910b86a086911d3c0670c9778e222186d8733fc81bcc081932d70e0452a
2018-02-23 14:02:37 +00:00
mistachkin
7f837b66fa
Fix harmless compiler warnings in the zonefile extension seen with MSVC.
...
FossilOrigin-Name: d28003941ceca7fb707fcdb09bf8b00a6c1b728956e018d7ecfb6852d7dd469b
2018-02-23 14:00:38 +00:00
dan
241676abcc
Avoid running a test case that requires zstd in non-SQLITE_HAVE_ZSTD builds.
...
FossilOrigin-Name: d716dff4441b4d28e0184ce06508bc9122451103ead8edbfbf3c87b666445ee6
2018-02-23 13:58:17 +00:00
mistachkin
c0905baac8
Merge updates from trunk.
...
FossilOrigin-Name: 53f2100a296f64d206f1caf2d754820a7898bb33b31a6ab2169957d228d5d2a0
2018-02-23 13:45:05 +00:00
mistachkin
5facffbc70
Fix harmless compiler warnings in the zipfile extension seen with MSVC.
...
FossilOrigin-Name: 15c587cf6ffc920dc37f67cacb4f0db6a603fb998a22a639f755387910516414
2018-02-23 13:38:54 +00:00
mistachkin
fda0867873
Enable the JSON1 extension when compiling the test fixture with MSVC.
...
FossilOrigin-Name: e9e9f27b3d496531905ad7459cf60366ad3798f507266134dd6388cdec50fdc4
2018-02-23 13:38:20 +00:00
dan
563d3242d7
Add tests cases and fix some minor zonefile problems.
...
FossilOrigin-Name: f4d42162fa2196078cea4db9c2247a08f5439d29e49f5e8dc23db317b8101865
2018-02-22 21:06:08 +00:00
drh
4f46b58a2d
For the "SQLite archive" link in the README.md file, point to the
...
CLI .archive command documentation, not the original "sqlar" website.
FossilOrigin-Name: 4290faf5f7223ebe35b8ed5c4f0ba2444c1764501cabc09a79000f9c1d0890c7
2018-02-22 18:30:53 +00:00
drh
d6ec7a6ab3
Updates to the README.md file. Mention the ability to use SQLite-archives for
...
download.
FossilOrigin-Name: ab9a7ae4eec0aaa5e0b472998f6de7212055d93c163f0b66da60b956bcc45add
2018-02-22 18:28:19 +00:00
dan
2707b56334
Add an LRU cache of uncompressed frame content to the zonefile virtual table
...
implementation.
FossilOrigin-Name: 883e7e75d65622e8d06c46e48b7cc756cc0e3345b8124a8038cab0a8d51d0458
2018-02-22 16:46:42 +00:00
dan
86a1bf4815
Modifications to the zonefile module to make it easier to add a cache of
...
uncompressed frame content.
FossilOrigin-Name: d9d5cc62f11058f9ba560381367ff4765dbbde08184e55abdb50ae1b6bf4a016
2018-02-21 21:15:45 +00:00
dan
d98b4b24f2
Have zonefile store encryption keys in a hash-table instead of a linked list.
...
Add extra tests for key management.
FossilOrigin-Name: 3a63ea652546a4c63eccd72665becff38a97a0e39d2f11703cb6899451570fd4
2018-02-21 16:36:08 +00:00
dan
92c01308cc
In zonefile, change the "file TEXT" column back to "fileid INTEGER". The
...
fileid can be used as a key with the associated zonefile_files table, which
contains more information than just the filename.
FossilOrigin-Name: 38d23888cf5a7117c51bd9211bd93ec52a30360f7eb2bc83a13910c5d85fe739
2018-02-21 10:43:19 +00:00
drh
c0ec2f7762
Remove an unreachable branch in the walIndexPage() logic.
...
FossilOrigin-Name: 4e61a9731f5949dcf05c541106b56be16add04a7730613481fc8519d3e4f493b
2018-02-21 01:48:22 +00:00
drh
8d3e15eec4
Small performance improvement in sqltie3WalFindFrame().
...
FossilOrigin-Name: 52013cad0e6ce2d694f25e2984a76d438cef724f0e07c8bb9d3dce8a3caf4350
2018-02-21 01:05:37 +00:00
drh
4f4e49a98b
Remove an unnecessary memset().
...
FossilOrigin-Name: e7b7f5884a78630c6ba6a217c36247397e62f1928d4b480df929efcfc4a01893
2018-02-21 00:48:02 +00:00
drh
2e178d7321
Make the walIndexPage() routine about 3x faster by factoring out the seldom
...
used reallocation logic into a separate subroutine.
FossilOrigin-Name: e2b107141cd97bd4ab240748a9ce43fc2ec950ea74610697a4a7a3d7a6441e6b
2018-02-20 22:20:57 +00:00
dan
cc6cece39a
Update README.md in ext/zonefile.
...
FossilOrigin-Name: a13b2b38137025d04bbfc1b12f0d0563dcf7e0ab1d4b06ffc7cacf994f00e188
2018-02-20 20:57:20 +00:00
dan
92c7c98ac4
Fix a problem with reading the "file" column of a zonefile virtual table.
...
FossilOrigin-Name: d8d0bdcb405610978393bb8f3ef30ee868fddda0d129036f8d0102012fe0d5d4
2018-02-20 19:25:49 +00:00
dan
b0e7fff492
Instead of just the frame number, store frame sizes and offsets in zonefile
...
shadow table %_shadow_idx.
FossilOrigin-Name: 56801c461c5d19cf96146fe0fa7f725c81da5cd7495c9608cd044125d00fecfe
2018-02-20 18:47:24 +00:00
drh
7436f1e491
In the speed-check.sh script, make WAL mode the default. Add the --legacy
...
option to do DELETE mode. Continue to use DELETE mode for long-term performance
graphs since WAL mode was not always available, but use WAL mode for
day-to-day performance measurements.
FossilOrigin-Name: cd81613850c0458b4b5b2460b9b38ce7ff6e557f7add9615058bb96f5a344ccd
2018-02-20 17:02:31 +00:00
drh
3993678d3d
Remove a superfluous "#if 1". No logic changes.
...
FossilOrigin-Name: caaffd32001ff44c31f2d6dbe921f9d294f869c2c4a81e943fdf3f43f8d9313c
2018-02-20 16:39:11 +00:00
drh
cc398969e0
Optimize calls to sqlite3_mprintf("%z...") so that they attempt to append
...
text onto the end of the existing memory allocation rather than reallocating
and copying.
FossilOrigin-Name: 4bc8a48e644562f6e6192f4c6fc4a70f6bb59f8126ed6c6dc876bedf65d74cda
2018-02-20 15:23:37 +00:00
drh
b0b6f8783c
Remove a lot of the text describing extended format options from the
...
documentation on sqlite3_mprintf() and friends, since that information is
now covered by the separate printf.html document. Provide links to that
other document. No changes to code.
FossilOrigin-Name: 99eec556f065ad19548e48d1f4ae0a3767b4e82e1c83fa2365062e3c5e0071fb
2018-02-20 13:46:20 +00:00
drh
57a93fa38c
Enhance the string formatter (used by printf()) so that the width and
...
precision of string substitution operators refer to characters instead of
bytes when the alternate-form-2 flag ("!") is used. Also fix the %c
substition to always work within unicode, regardless of the
alternate-form-2 flag.
FossilOrigin-Name: c883c4d33f4cd722982aca17eeb355d19eeed793991d923b5494d173b1d0c73a
2018-02-19 22:46:19 +00:00
drh
a15a7c352c
Printing a value of 0 using %c terminates the string.
...
FossilOrigin-Name: 255612f0a131f2f522cbca3cc5a1edcf7e38938abca25ba421e7e38a422db9c9
2018-02-19 21:58:16 +00:00
dan
ccc9acc059
Add support for invoking encryption hooks to zonefile. And mock encryption
...
method "xor" for testing.
FossilOrigin-Name: 55cf920c5a13473d04f0cb885117c04b2bc054bfed6ee549be84cb9485c104d2
2018-02-19 21:07:20 +00:00
drh
57f29b7bfb
More test cases for unicode handling in printf.
...
FossilOrigin-Name: ac188211119bfd77f43e4aba8acab733a56aac90b4c8a11f7ef8e6388582438f
2018-02-19 20:41:01 +00:00
drh
cf7c8370d1
Test cases and a bug fix on the new unicode handling in %c.
...
FossilOrigin-Name: e41d64e95b9b6fec5dc329553822925e7d648a41912b420cfa1ba198736e6bab
2018-02-19 20:23:20 +00:00
drh
136102beda
Fix the %c substitution in printf() so that it works with unicode characters.
...
FossilOrigin-Name: c35be1d9e9132fbadc74d207c1088e5a710a151c0835c38a63bf3c8e6fd711a0
2018-02-19 18:56:52 +00:00
drh
57e3ba7623
Make the alternate-form-2 flag ("!") change the meaning of width and precision
...
from bytes to characters for the %q, %Q, and %w extensions of printf().
FossilOrigin-Name: 391540acbea34eb88c75b1152b458d8936b3fdfff47633b9ec897775b015ba4c
2018-02-19 18:03:10 +00:00
drh
62856465f2
In the printf() library, measure width and precision in characters rather
...
than bytes if the "!" (alternate-form-2) flag is present on a %s or %z
substitution.
FossilOrigin-Name: ca31c6630422fca70e626dd38aae96296bd8535d491ca52391624a5e7e663636
2018-02-19 17:03:23 +00:00
drh
26f625fbf4
Only try to use the geteuid() interface on unix if HAVE_FCHOWN is defined.
...
This fixes the build for vxWorks, we are told.
FossilOrigin-Name: 38f654dc117bb11d61407327884b5c913cfaf920547bebc4ce5a4cf983e5c20e
2018-02-19 16:34:31 +00:00
dan
cbce846ea5
Add support for the ExtendedHeaderSize header field to zonefile.
...
FossilOrigin-Name: 78267a091307e2c29a4fb1606fa9c79939fe010b801749614f4c48dc8715810e
2018-02-19 16:28:42 +00:00
dan
c65faba468
Modify the zonefile format in order to avoid depending on the filesize to
...
determine the extent of the final frame. See README.md for details.
FossilOrigin-Name: 4dbe0cba3fad9a752834d795127cf35eed21fab63b18a48f75d5c1e96ca77447
2018-02-19 14:27:24 +00:00
drh
a224ee2a1b
Fix an assert so that it compares two CellInfo objects field by field
...
instead of using memcmp(). Memcmp() does not work on x86
because of uninitialized padding bytes.
FossilOrigin-Name: 88258770adead70fa101c74e266a37bb9aaffac0ba738a4b345617feb8c46477
2018-02-19 13:53:56 +00:00
drh
e28eb64d09
Fix a memory leak in the processing of nested row values. This problem has
...
existed every since row values support was added (version 3.15.0, 2016-10-14)
but was only just now detected by OSSFuzz.
FossilOrigin-Name: 2df6bbf1b8ca881c8a465d6624de66fde4c5975ccae6b2f2dda392b137f577de
2018-02-18 17:50:03 +00:00
mistachkin
091881bbb0
Port mutex enhancments from check-in [f53b8a573b] to the Win32 implementation.
...
FossilOrigin-Name: 74bb7225d132c80fd5758bb8c120448e3b3e951d0ca2fa0c57cac0a9c6c27045
2018-02-18 00:54:06 +00:00
dan
a88b05361c
Add support for "brotli" compression to the zonefile module.
...
FossilOrigin-Name: 3eb25b3fa5733b4418e7e2633be34b763e2c70342bb9c418a07c9f7d4b196fac
2018-02-17 20:22:23 +00:00
dan
aac12cb868
Add support for compression types "lz4" and "lz4hc" to the zonefile module.
...
FossilOrigin-Name: bbe5b21ffab3cd312680ca9f179c5847790c17fb91d4174985153c6c398d48e3
2018-02-17 19:38:02 +00:00