summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorKeith Bostic <keith.bostic@mongodb.com>2017-04-07 16:55:32 -0400
committerAlex Gorrod <alexander.gorrod@mongodb.com>2017-04-07 16:55:32 -0400
commitab281e0a4f312f99494cdb381264196278c18a2f (patch)
tree080909f5d00561bfe78e78dc0c96cd2d1aa2e1d1 /ext
parent84e6ac0e67019bba22af87b99b40bb0bc0e21157 (diff)
downloadmongo-ab281e0a4f312f99494cdb381264196278c18a2f.tar.gz
WT-3269 Miscellaneous cleanup (#3377)
I missed two copyright notices when updating from 2016 to 2017. * Cleanup, one of the temporary copyright files wasn't being removed on exit. * Don't use S2C/S2BT if there's already a local conn/btree variable. * Fix some indentation, minor whitespace. * clang warning: Value stored to 'pgs_evicted_cur' is never read * __wt_thread_group_start_one and __wt_thread_group_stop_one no longer return errors, clean up error handling and comments in __evict_tune_workers, and __evict_tune_workers itself no longer returns an error. * Give test/syscall/wt2336_base/base.run a standard copyright notice, so dist/s_copyright doesn't have to treat it as a special case.
Diffstat (limited to 'ext')
-rw-r--r--ext/compressors/lz4/lz4_compress.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/compressors/lz4/lz4_compress.c b/ext/compressors/lz4/lz4_compress.c
index 7fe72942f1e..e99d125b69f 100644
--- a/ext/compressors/lz4/lz4_compress.c
+++ b/ext/compressors/lz4/lz4_compress.c
@@ -141,7 +141,7 @@ lz4_compress(WT_COMPRESSOR *compressor, WT_SESSION *session,
/* Compress, starting after the prefix bytes. */
lz4_len = LZ4_compress(
- (const char *)src, (char *)dst + sizeof(LZ4_PREFIX), (int)src_len);
+ (const char *)src, (char *)dst + sizeof(LZ4_PREFIX), (int)src_len);
/*
* If compression succeeded and the compressed length is smaller than
@@ -214,7 +214,7 @@ lz4_decompress(WT_COMPRESSOR *compressor, WT_SESSION *session,
*/
if (dst_len < prefix.uncompressed_len) {
if ((dst_tmp = wt_api->scr_alloc(
- wt_api, session, (size_t)prefix.uncompressed_len)) == NULL)
+ wt_api, session, (size_t)prefix.uncompressed_len)) == NULL)
return (ENOMEM);
decoded = LZ4_decompress_safe(