summaryrefslogtreecommitdiff
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
* Use Standard C type uint64_t for zlibMark Benvenuto2015-03-261-1/+1
|
* Merge pull request #1816 from wiredtiger/zlib-copy-streamsMichael Cahill2015-03-261-42/+70
|\ | | | | Use deflateCopy to copy zlib streams
| * Shuffle the logic and add a pointer to remove some deflateCopy/deflateEndKeith Bostic2015-03-251-51/+59
| | | | | | | | | | | | calls. Minor lint, whitespace while in the area.
| * Use deflateCopy to copy streams for rollback in case the compressed size is ↵Michael Cahill2015-03-251-5/+25
| | | | | | | | | | | | too large. refs SERVER-17713
* | Switch to using "safe mode" LZ4 decompression. We rely on it to detect ↵Michael Cahill2015-03-251-6/+8
|/ | | | | | errors, which can make fast mode sefault. refs #1800
* Add debugging code to compare the compressed buffer against the originalKeith Bostic2015-03-241-42/+63
| | | | source.
* Now lint is unhappy:Keith Bostic2015-03-211-0/+1
| | | | | snappy_compress.c 644: Variable 'msg' (line 59) may not have been initialized Try and make everybody happy.
* snappy_compress.c:73:9: warning: will never be executed [-Wunreachable-code]Keith Bostic2015-03-211-3/+0
| | | | The snappy_status type only has 3 values, all of which are listed.
* Fix a bug in lz4 decompression.Alex Gorrod2015-03-191-1/+1
| | | | | We switched to using the fast decompress method that returns the number of bytes read, rather than the size of the decompressed chunk.
* Fix a bug in lz4 compression - we were never compressing buffers.Alex Gorrod2015-03-191-1/+1
|
* Use LZ4_decompress_fast instead of LZ4_decompress_safe, we don't needKeith Bostic2015-03-181-2/+2
| | | | to defend against malicious input.
* Remove unnecessary "inline" #define.Keith Bostic2015-03-181-3/+2
| | | | | Add SNAPPY_OK return value to the error function -- never used, but keeps lint from complaining.
* Don't write out the error value twice in a row.Keith Bostic2015-03-181-4/+4
| | | | Minor lint cleanup to match LZ4 APIs.
* Fix build warning re: type conversion.Alex Gorrod2015-03-181-2/+2
|
* More fixes to lz4 source file.Alex Gorrod2015-03-181-11/+14
|
* Fix issues with unknown WT_UNUSEDdaveh862015-03-181-2/+2
|
* Update LZ4 source code to be more in-line with Snappy implementation.Alex Gorrod2015-03-181-78/+83
| | | | Update Windows build files to have LZ4 defines.
* Fixup lint in new lz4 source code.Alex Gorrod2015-03-181-68/+64
|
* remove erroneous Makefile.in produced by buildQuentin Conner2015-03-131-717/+0
|
* LZ4 external compressorQuentin Conner2015-03-123-0/+973
|
* Replace wiredtiger_strerror_r with WT_SESSION.strerror, reference #1516.Keith Bostic2015-02-022-28/+42
|
* Copyright notices: add MongoDB, update to 2015.Keith Bostic2015-01-047-0/+7
|
* Add the additional arguments for the custom collator support.Keith Bostic2014-11-101-3/+5
|
* Custom-extractor lint, whitespace, reference #1215.Keith Bostic2014-11-041-3/+3
|
* Rename WT_DEADLOCK to WT_ROLLBACK, reference #1204.Keith Bostic2014-10-171-1/+1
|
* add config validation for Windows configMark Benvenuto2014-10-132-8/+0
|
* Style script.Keith Bostic2014-10-092-2/+2
|
* Initial Windows PortMark Benvenuto2014-10-082-1/+15
|
* Limit the maximum compression ratio our raw zlib implementation will allow. ↵Michael Cahill2014-09-101-1/+8
| | | | Once we have taken 20x the maximum page size, stop. This prevents pathological behavior in sythetic workloads where a page is forced out of cache, then compresses into a single page on disk, and we repeat for every update.
* Add WT_COLLATOR::customize, allowing collators to be customized for specific ↵Michael Cahill2014-08-151-1/+1
| | | | data sources, or with application-managed metadata.
* Fix static linking of libraries with builtin extensions.Michael Cahill2014-07-152-4/+8
|
* Update the API exposed by extensions that can be builtin.Alex Gorrod2014-06-202-0/+24
| | | | | Otherwise multiple builtin extensions will conflict on the wiredtiger_extension_init function.
* More --with-builtins implementation.Alex Gorrod2014-06-202-2/+2
| | | | | Backout change to how builtins list is parsed, I was seeing: ../configure: line 5439: printf %s\n: command not found
* Fix zlib builtin build, simplify parsing the list of builtins, don't list ↵Michael Cahill2014-06-202-10/+14
| | | | "./Makefile" as a generated file.
* Link builtin extensions directly into libwiredtiger.la.Michael Cahill2014-06-202-9/+13
|
* More implementation of --with-builtins=Alex Gorrod2014-06-202-1/+27
| | | | Not yet linking in the library properly.
* Minor code shuffle to make the flow a little more obvious.Keith Bostic2014-06-041-2/+2
|
* We document collators must return -1, 0, 1, rewrite the reverse collatorKeith Bostic2014-06-041-4/+14
| | | | to translate byte differences into those values.
* Reserve more memory for zlib to finish a raw buffer -- it turns out to need ↵Michael Cahill2014-05-131-1/+1
| | | | | | 24 bytes instead of 12. refs #1007
* Fix a comment.Keith Bostic2014-05-121-1/+1
|
* Don't loop on calls to deflate until Z_OK isn't returned, we're not addingKeith Bostic2014-05-121-3/+3
| | | | | additional buffer memory so no progress can be made (in other words, a Z_OK return from deflate means compression wasn't successful).
* Remove decrement of the destination length by one, when setting up forKeith Bostic2014-05-121-1/+1
| | | | | | compression: one version of this code reserved a byte to figure out whether there were multiple blocks to inflate, but that isn't necessary for zlib.
* Don't ignore the return value from deflateEnd.Keith Bostic2014-05-121-1/+4
|
* If zlib compression fails because there's not enough room in the destinationKeith Bostic2014-05-101-7/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | buffer, deflateEnd will return Z_BUF_ERROR: From the docs (http://www.zlib.net/manual.html): deflate() returns Z_OK if some progress has been made (more input processed or more output produced), Z_STREAM_END if all input has been consumed and all output has been produced (only when flush is set to Z_FINISH), Z_STREAM_ERROR if the stream state was inconsistent (for example if next_in or next_out was NULL), Z_BUF_ERROR if no progress is possible (for example avail_in or avail_out was zero). Note that Z_BUF_ERROR is not fatal, and deflate() can be called again with more input and more output space to continue compressing. Also, I don't think there's any reason to loop around deflate calls when Z_FINISH is specified, I think deflate will return Z_OK the first time it's called, then return Z_BUF_ERROR the second time it's called, because no progress is possible. From the docs: If the parameter flush is set to Z_FINISH, pending input is processed, pending output is flushed and deflate returns with Z_STREAM_END if there was enough output space; if deflate returns with Z_OK, this function must be called again with Z_FINISH and more output space (updated avail_out) but no more input data, until it returns with Z_STREAM_END or an error. After deflate has returned Z_STREAM_END, the only possible operations on the stream are deflateReset or deflateEnd. Reference #1005.
* whitespaceKeith Bostic2014-05-101-8/+4
|
* Run the "standard" extensions through the style checks, mostly add aKeith Bostic2014-05-106-175/+247
| | | | | | | bunch of function header comments. Change the compression source files to all have roughly identical patterns.
* Fix typo when closing config_parser handle, complain if theKeith Bostic2014-02-261-5/+7
| | | | config_parser.close method errors.
* Add wiredtiger_config_parser_open and wiredtiger_version into extension API.Alex Gorrod2014-02-261-7/+7
| | | | | This is necessary so that statically linked applications can always find the symbols.
* Fix compiler warnings re: ignored return values.Alex Gorrod2014-02-261-3/+5
|
* Update the configuration string parsing in Helium data source.Alex Gorrod2014-02-251-25/+36
|