summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt Kangas <matt.kangas@mongodb.com>2015-01-06 08:58:01 -0500
committerMatt Kangas <matt.kangas@mongodb.com>2015-01-06 08:58:01 -0500
commitf9bdad71e16409017df02058d2579cf659ef2e44 (patch)
treebea79aa5d70bcdb81b1a0be6d7fefdbe249552ef /src
parent3ec53687da4702d348f1b55eda5e01bd26f36c4b (diff)
downloadmongo-f9bdad71e16409017df02058d2579cf659ef2e44.tar.gz
Import wiredtiger-wiredtiger-2.5.0-36-g94ac478.tar.gz from wiredtiger branch mongodb-2.8
Diffstat (limited to 'src')
-rw-r--r--src/third_party/wiredtiger/LICENSE1
-rw-r--r--src/third_party/wiredtiger/bench/wtperf/config.c1
-rw-r--r--src/third_party/wiredtiger/bench/wtperf/config_opt.h1
-rw-r--r--src/third_party/wiredtiger/bench/wtperf/doxy.c1
-rw-r--r--src/third_party/wiredtiger/bench/wtperf/misc.c1
-rwxr-xr-xsrc/third_party/wiredtiger/bench/wtperf/runners/get_ckpt.py1
-rw-r--r--src/third_party/wiredtiger/bench/wtperf/track.c1
-rw-r--r--src/third_party/wiredtiger/bench/wtperf/wtperf.c1
-rw-r--r--src/third_party/wiredtiger/bench/wtperf/wtperf.h1
-rw-r--r--src/third_party/wiredtiger/bench/wtperf/wtperf_opt.i1
-rw-r--r--src/third_party/wiredtiger/dist/api_data.py3
-rw-r--r--src/third_party/wiredtiger/dist/log.py3
-rwxr-xr-xsrc/third_party/wiredtiger/dist/s_copyright39
-rw-r--r--src/third_party/wiredtiger/dist/s_string.ok1
-rw-r--r--src/third_party/wiredtiger/ext/collators/reverse/reverse_collator.c1
-rw-r--r--src/third_party/wiredtiger/ext/compressors/bzip2/bzip2_compress.c1
-rw-r--r--src/third_party/wiredtiger/ext/compressors/nop/nop_compress.c1
-rw-r--r--src/third_party/wiredtiger/ext/compressors/snappy/snappy_compress.c1
-rw-r--r--src/third_party/wiredtiger/ext/compressors/zlib/zlib_compress.c1
-rw-r--r--src/third_party/wiredtiger/ext/datasources/helium/helium.c1
-rw-r--r--src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/AsyncCallback.java1
-rw-r--r--src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/PackFormatInputStream.java1
-rw-r--r--src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/PackInputStream.java1
-rw-r--r--src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/PackOutputStream.java1
-rw-r--r--src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/PackUtil.java1
-rw-r--r--src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/WiredTigerException.java1
-rw-r--r--src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/WiredTigerPackingException.java1
-rw-r--r--src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/WiredTigerPanicException.java1
-rw-r--r--src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/WiredTigerRollbackException.java1
-rw-r--r--src/third_party/wiredtiger/lang/java/wiredtiger.i1
-rw-r--r--src/third_party/wiredtiger/lang/python/setup.py1
-rw-r--r--src/third_party/wiredtiger/lang/python/wiredtiger.i1
-rw-r--r--src/third_party/wiredtiger/lang/python/wiredtiger/fpacking.py1
-rw-r--r--src/third_party/wiredtiger/lang/python/wiredtiger/intpack-test.py1
-rw-r--r--src/third_party/wiredtiger/lang/python/wiredtiger/intpacking.py1
-rw-r--r--src/third_party/wiredtiger/lang/python/wiredtiger/packing-test.py1
-rw-r--r--src/third_party/wiredtiger/lang/python/wiredtiger/packing.py1
-rw-r--r--src/third_party/wiredtiger/src/async/async_api.c1
-rw-r--r--src/third_party/wiredtiger/src/async/async_op.c1
-rw-r--r--src/third_party/wiredtiger/src/async/async_worker.c1
-rw-r--r--src/third_party/wiredtiger/src/block/block_addr.c1
-rw-r--r--src/third_party/wiredtiger/src/block/block_ckpt.c7
-rw-r--r--src/third_party/wiredtiger/src/block/block_compact.c1
-rw-r--r--src/third_party/wiredtiger/src/block/block_ext.c5
-rw-r--r--src/third_party/wiredtiger/src/block/block_map.c1
-rw-r--r--src/third_party/wiredtiger/src/block/block_mgr.c1
-rw-r--r--src/third_party/wiredtiger/src/block/block_open.c5
-rw-r--r--src/third_party/wiredtiger/src/block/block_read.c3
-rw-r--r--src/third_party/wiredtiger/src/block/block_session.c1
-rw-r--r--src/third_party/wiredtiger/src/block/block_slvg.c3
-rw-r--r--src/third_party/wiredtiger/src/block/block_vrfy.c1
-rw-r--r--src/third_party/wiredtiger/src/block/block_write.c1
-rw-r--r--src/third_party/wiredtiger/src/bloom/bloom.c1
-rw-r--r--src/third_party/wiredtiger/src/btree/bt_compact.c1
-rw-r--r--src/third_party/wiredtiger/src/btree/bt_curnext.c1
-rw-r--r--src/third_party/wiredtiger/src/btree/bt_curprev.c1
-rw-r--r--src/third_party/wiredtiger/src/btree/bt_cursor.c1
-rw-r--r--src/third_party/wiredtiger/src/btree/bt_debug.c19
-rw-r--r--src/third_party/wiredtiger/src/btree/bt_delete.c1
-rw-r--r--src/third_party/wiredtiger/src/btree/bt_discard.c1
-rw-r--r--src/third_party/wiredtiger/src/btree/bt_handle.c1
-rw-r--r--src/third_party/wiredtiger/src/btree/bt_huffman.c1
-rw-r--r--src/third_party/wiredtiger/src/btree/bt_io.c7
-rw-r--r--src/third_party/wiredtiger/src/btree/bt_misc.c1
-rw-r--r--src/third_party/wiredtiger/src/btree/bt_ovfl.c3
-rw-r--r--src/third_party/wiredtiger/src/btree/bt_page.c5
-rw-r--r--src/third_party/wiredtiger/src/btree/bt_read.c1
-rw-r--r--src/third_party/wiredtiger/src/btree/bt_ret.c1
-rw-r--r--src/third_party/wiredtiger/src/btree/bt_slvg.c15
-rw-r--r--src/third_party/wiredtiger/src/btree/bt_split.c7
-rw-r--r--src/third_party/wiredtiger/src/btree/bt_stat.c1
-rw-r--r--src/third_party/wiredtiger/src/btree/bt_sync.c1
-rw-r--r--src/third_party/wiredtiger/src/btree/bt_upgrade.c1
-rw-r--r--src/third_party/wiredtiger/src/btree/bt_vrfy.c9
-rw-r--r--src/third_party/wiredtiger/src/btree/bt_vrfy_dsk.c7
-rw-r--r--src/third_party/wiredtiger/src/btree/bt_walk.c1
-rw-r--r--src/third_party/wiredtiger/src/btree/col_modify.c1
-rw-r--r--src/third_party/wiredtiger/src/btree/col_srch.c1
-rw-r--r--src/third_party/wiredtiger/src/btree/row_key.c7
-rw-r--r--src/third_party/wiredtiger/src/btree/row_modify.c1
-rw-r--r--src/third_party/wiredtiger/src/btree/row_srch.c1
-rw-r--r--src/third_party/wiredtiger/src/config/config.c1
-rw-r--r--src/third_party/wiredtiger/src/config/config_api.c1
-rw-r--r--src/third_party/wiredtiger/src/config/config_check.c1
-rw-r--r--src/third_party/wiredtiger/src/config/config_collapse.c9
-rw-r--r--src/third_party/wiredtiger/src/config/config_concat.c3
-rw-r--r--src/third_party/wiredtiger/src/config/config_def.c41
-rw-r--r--src/third_party/wiredtiger/src/config/config_ext.c1
-rw-r--r--src/third_party/wiredtiger/src/config/config_upgrade.c1
-rw-r--r--src/third_party/wiredtiger/src/conn/api_version.c1
-rw-r--r--src/third_party/wiredtiger/src/conn/conn_api.c8
-rw-r--r--src/third_party/wiredtiger/src/conn/conn_cache.c1
-rw-r--r--src/third_party/wiredtiger/src/conn/conn_cache_pool.c1
-rw-r--r--src/third_party/wiredtiger/src/conn/conn_ckpt.c3
-rw-r--r--src/third_party/wiredtiger/src/conn/conn_dhandle.c1
-rw-r--r--src/third_party/wiredtiger/src/conn/conn_handle.c1
-rw-r--r--src/third_party/wiredtiger/src/conn/conn_log.c1
-rw-r--r--src/third_party/wiredtiger/src/conn/conn_open.c1
-rw-r--r--src/third_party/wiredtiger/src/conn/conn_stat.c5
-rw-r--r--src/third_party/wiredtiger/src/conn/conn_sweep.c1
-rw-r--r--src/third_party/wiredtiger/src/cursor/cur_backup.c3
-rw-r--r--src/third_party/wiredtiger/src/cursor/cur_bulk.c5
-rw-r--r--src/third_party/wiredtiger/src/cursor/cur_config.c1
-rw-r--r--src/third_party/wiredtiger/src/cursor/cur_ds.c1
-rw-r--r--src/third_party/wiredtiger/src/cursor/cur_dump.c1
-rw-r--r--src/third_party/wiredtiger/src/cursor/cur_file.c1
-rw-r--r--src/third_party/wiredtiger/src/cursor/cur_index.c3
-rw-r--r--src/third_party/wiredtiger/src/cursor/cur_json.c1
-rw-r--r--src/third_party/wiredtiger/src/cursor/cur_log.c13
-rw-r--r--src/third_party/wiredtiger/src/cursor/cur_metadata.c1
-rw-r--r--src/third_party/wiredtiger/src/cursor/cur_stat.c1
-rw-r--r--src/third_party/wiredtiger/src/cursor/cur_std.c1
-rw-r--r--src/third_party/wiredtiger/src/cursor/cur_table.c7
-rw-r--r--src/third_party/wiredtiger/src/evict/evict_file.c1
-rw-r--r--src/third_party/wiredtiger/src/evict/evict_lru.c1
-rw-r--r--src/third_party/wiredtiger/src/evict/evict_page.c1
-rw-r--r--src/third_party/wiredtiger/src/include/api.h1
-rw-r--r--src/third_party/wiredtiger/src/include/async.h1
-rw-r--r--src/third_party/wiredtiger/src/include/bitstring.i1
-rw-r--r--src/third_party/wiredtiger/src/include/block.h1
-rw-r--r--src/third_party/wiredtiger/src/include/bloom.h1
-rw-r--r--src/third_party/wiredtiger/src/include/btmem.h1
-rw-r--r--src/third_party/wiredtiger/src/include/btree.h1
-rw-r--r--src/third_party/wiredtiger/src/include/btree.i1
-rw-r--r--src/third_party/wiredtiger/src/include/buf.i10
-rw-r--r--src/third_party/wiredtiger/src/include/cache.h1
-rw-r--r--src/third_party/wiredtiger/src/include/cache.i1
-rw-r--r--src/third_party/wiredtiger/src/include/cell.i1
-rw-r--r--src/third_party/wiredtiger/src/include/column.i1
-rw-r--r--src/third_party/wiredtiger/src/include/compact.h1
-rw-r--r--src/third_party/wiredtiger/src/include/config.h1
-rw-r--r--src/third_party/wiredtiger/src/include/connection.h3
-rw-r--r--src/third_party/wiredtiger/src/include/cursor.h1
-rw-r--r--src/third_party/wiredtiger/src/include/cursor.i1
-rw-r--r--src/third_party/wiredtiger/src/include/dhandle.h1
-rw-r--r--src/third_party/wiredtiger/src/include/dlh.h1
-rw-r--r--src/third_party/wiredtiger/src/include/error.h1
-rw-r--r--src/third_party/wiredtiger/src/include/gcc.h1
-rw-r--r--src/third_party/wiredtiger/src/include/hardware.h1
-rw-r--r--src/third_party/wiredtiger/src/include/intpack.i1
-rw-r--r--src/third_party/wiredtiger/src/include/lint.h1
-rw-r--r--src/third_party/wiredtiger/src/include/log.h1
-rw-r--r--src/third_party/wiredtiger/src/include/lsm.h1
-rw-r--r--src/third_party/wiredtiger/src/include/meta.h1
-rw-r--r--src/third_party/wiredtiger/src/include/misc.h1
-rw-r--r--src/third_party/wiredtiger/src/include/misc.i1
-rw-r--r--src/third_party/wiredtiger/src/include/msvc.h1
-rw-r--r--src/third_party/wiredtiger/src/include/mutex.h1
-rw-r--r--src/third_party/wiredtiger/src/include/mutex.i1
-rw-r--r--src/third_party/wiredtiger/src/include/os.h1
-rw-r--r--src/third_party/wiredtiger/src/include/os_windows.h1
-rw-r--r--src/third_party/wiredtiger/src/include/packing.i1
-rw-r--r--src/third_party/wiredtiger/src/include/posix.h1
-rw-r--r--src/third_party/wiredtiger/src/include/schema.h1
-rw-r--r--src/third_party/wiredtiger/src/include/serial.i1
-rw-r--r--src/third_party/wiredtiger/src/include/session.h2
-rw-r--r--src/third_party/wiredtiger/src/include/stat.h1
-rw-r--r--src/third_party/wiredtiger/src/include/txn.h1
-rw-r--r--src/third_party/wiredtiger/src/include/txn.i1
-rw-r--r--src/third_party/wiredtiger/src/include/verify_build.h1
-rw-r--r--src/third_party/wiredtiger/src/include/wiredtiger.in1
-rw-r--r--src/third_party/wiredtiger/src/include/wiredtiger_ext.h1
-rw-r--r--src/third_party/wiredtiger/src/include/wt_internal.h1
-rw-r--r--src/third_party/wiredtiger/src/log/log.c25
-rw-r--r--src/third_party/wiredtiger/src/log/log_auto.c3
-rw-r--r--src/third_party/wiredtiger/src/log/log_slot.c1
-rw-r--r--src/third_party/wiredtiger/src/lsm/lsm_cursor.c5
-rw-r--r--src/third_party/wiredtiger/src/lsm/lsm_manager.c1
-rw-r--r--src/third_party/wiredtiger/src/lsm/lsm_merge.c1
-rw-r--r--src/third_party/wiredtiger/src/lsm/lsm_meta.c3
-rw-r--r--src/third_party/wiredtiger/src/lsm/lsm_stat.c3
-rw-r--r--src/third_party/wiredtiger/src/lsm/lsm_tree.c7
-rw-r--r--src/third_party/wiredtiger/src/lsm/lsm_work_unit.c1
-rw-r--r--src/third_party/wiredtiger/src/lsm/lsm_worker.c1
-rw-r--r--src/third_party/wiredtiger/src/meta/meta_apply.c1
-rw-r--r--src/third_party/wiredtiger/src/meta/meta_ckpt.c5
-rw-r--r--src/third_party/wiredtiger/src/meta/meta_ext.c1
-rw-r--r--src/third_party/wiredtiger/src/meta/meta_table.c1
-rw-r--r--src/third_party/wiredtiger/src/meta/meta_track.c1
-rw-r--r--src/third_party/wiredtiger/src/meta/meta_turtle.c11
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_abort.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_alloc.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_dir.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_dlopen.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_errno.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_exist.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_fallocate.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_filesize.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_flock.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_fsync.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_ftruncate.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_getenv.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_getline.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_getopt.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_map.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_mtx_cond.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_mtx_rw.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_once.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_open.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_path.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_priv.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_remove.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_rename.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_rw.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_sleep.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_strtouq.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_thread.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_time.c1
-rw-r--r--src/third_party/wiredtiger/src/os_posix/os_yield.c1
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_dir.c3
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_dlopen.c1
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_errno.c1
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_exist.c1
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_fallocate.c1
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_filesize.c1
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_flock.c1
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_fsync.c1
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_ftruncate.c1
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_getenv.c1
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_map.c1
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_mtx_cond.c1
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_once.c1
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_open.c1
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_path.c1
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_priv.c1
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_remove.c1
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_rename.c1
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_rw.c1
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_sleep.c1
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_snprintf.c1
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_thread.c1
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_time.c1
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_vsnprintf.c1
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_yield.c1
-rw-r--r--src/third_party/wiredtiger/src/packing/pack_api.c1
-rw-r--r--src/third_party/wiredtiger/src/packing/pack_impl.c1
-rw-r--r--src/third_party/wiredtiger/src/packing/pack_stream.c1
-rw-r--r--src/third_party/wiredtiger/src/reconcile/rec_track.c7
-rw-r--r--src/third_party/wiredtiger/src/reconcile/rec_write.c19
-rw-r--r--src/third_party/wiredtiger/src/schema/schema_create.c3
-rw-r--r--src/third_party/wiredtiger/src/schema/schema_drop.c1
-rw-r--r--src/third_party/wiredtiger/src/schema/schema_list.c1
-rw-r--r--src/third_party/wiredtiger/src/schema/schema_open.c11
-rw-r--r--src/third_party/wiredtiger/src/schema/schema_plan.c1
-rw-r--r--src/third_party/wiredtiger/src/schema/schema_project.c1
-rw-r--r--src/third_party/wiredtiger/src/schema/schema_rename.c9
-rw-r--r--src/third_party/wiredtiger/src/schema/schema_stat.c7
-rw-r--r--src/third_party/wiredtiger/src/schema/schema_truncate.c1
-rw-r--r--src/third_party/wiredtiger/src/schema/schema_util.c3
-rw-r--r--src/third_party/wiredtiger/src/schema/schema_worker.c1
-rw-r--r--src/third_party/wiredtiger/src/session/session_api.c1
-rw-r--r--src/third_party/wiredtiger/src/session/session_compact.c3
-rw-r--r--src/third_party/wiredtiger/src/session/session_dhandle.c1
-rw-r--r--src/third_party/wiredtiger/src/session/session_salvage.c1
-rw-r--r--src/third_party/wiredtiger/src/support/cksum.c1
-rw-r--r--src/third_party/wiredtiger/src/support/err.c1
-rw-r--r--src/third_party/wiredtiger/src/support/filename.c1
-rw-r--r--src/third_party/wiredtiger/src/support/global.c1
-rw-r--r--src/third_party/wiredtiger/src/support/hash_city.c1
-rw-r--r--src/third_party/wiredtiger/src/support/hash_fnv.c1
-rw-r--r--src/third_party/wiredtiger/src/support/hazard.c1
-rw-r--r--src/third_party/wiredtiger/src/support/hex.c1
-rw-r--r--src/third_party/wiredtiger/src/support/huffman.c5
-rw-r--r--src/third_party/wiredtiger/src/support/mutex.c1
-rw-r--r--src/third_party/wiredtiger/src/support/pow.c1
-rw-r--r--src/third_party/wiredtiger/src/support/rand.c1
-rw-r--r--src/third_party/wiredtiger/src/support/scratch.c7
-rw-r--r--src/third_party/wiredtiger/src/txn/txn.c1
-rw-r--r--src/third_party/wiredtiger/src/txn/txn_ckpt.c32
-rw-r--r--src/third_party/wiredtiger/src/txn/txn_ext.c1
-rw-r--r--src/third_party/wiredtiger/src/txn/txn_log.c3
-rw-r--r--src/third_party/wiredtiger/src/txn/txn_recover.c1
-rw-r--r--src/third_party/wiredtiger/src/utilities/util.h1
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_backup.c1
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_compact.c1
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_cpyright.c3
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_create.c1
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_drop.c1
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_dump.c1
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_list.c1
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_load.c1
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_load.h1
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_load_json.c1
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_loadtext.c1
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_main.c1
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_misc.c1
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_printlog.c1
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_read.c1
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_rename.c1
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_salvage.c1
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_stat.c1
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_upgrade.c1
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_verbose.c1
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_verify.c1
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_write.c1
-rw-r--r--src/third_party/wiredtiger/tools/statlog.py1
-rw-r--r--src/third_party/wiredtiger/tools/wt_nvd3_util.py1
-rw-r--r--src/third_party/wiredtiger/tools/wtperf_graph.py1
-rw-r--r--src/third_party/wiredtiger/tools/wtperf_stats.py1
-rw-r--r--src/third_party/wiredtiger/tools/wtstats.py1
300 files changed, 509 insertions, 177 deletions
diff --git a/src/third_party/wiredtiger/LICENSE b/src/third_party/wiredtiger/LICENSE
index 1b2196a4300..b8b3b2c2043 100644
--- a/src/third_party/wiredtiger/LICENSE
+++ b/src/third_party/wiredtiger/LICENSE
@@ -1,3 +1,4 @@
+Copyright (c) 2014-2015 MongoDB, Inc.
Copyright (c) 2008-2014 WiredTiger, Inc.
All rights reserved.
diff --git a/src/third_party/wiredtiger/bench/wtperf/config.c b/src/third_party/wiredtiger/bench/wtperf/config.c
index 92623f59f85..4c072b85c70 100644
--- a/src/third_party/wiredtiger/bench/wtperf/config.c
+++ b/src/third_party/wiredtiger/bench/wtperf/config.c
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/bench/wtperf/config_opt.h b/src/third_party/wiredtiger/bench/wtperf/config_opt.h
index 3de30e723b1..0fb1d988c3a 100644
--- a/src/third_party/wiredtiger/bench/wtperf/config_opt.h
+++ b/src/third_party/wiredtiger/bench/wtperf/config_opt.h
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/bench/wtperf/doxy.c b/src/third_party/wiredtiger/bench/wtperf/doxy.c
index 50cba9191e2..2921caea76c 100644
--- a/src/third_party/wiredtiger/bench/wtperf/doxy.c
+++ b/src/third_party/wiredtiger/bench/wtperf/doxy.c
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/bench/wtperf/misc.c b/src/third_party/wiredtiger/bench/wtperf/misc.c
index 0a9a1de73e2..1e47c76214c 100644
--- a/src/third_party/wiredtiger/bench/wtperf/misc.c
+++ b/src/third_party/wiredtiger/bench/wtperf/misc.c
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/bench/wtperf/runners/get_ckpt.py b/src/third_party/wiredtiger/bench/wtperf/runners/get_ckpt.py
index 38688870e7f..95354ece190 100755
--- a/src/third_party/wiredtiger/bench/wtperf/runners/get_ckpt.py
+++ b/src/third_party/wiredtiger/bench/wtperf/runners/get_ckpt.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python
#
+# Public Domain 2014-2015 MongoDB, Inc.
# Public Domain 2008-2014 WiredTiger, Inc.
#
# This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/bench/wtperf/track.c b/src/third_party/wiredtiger/bench/wtperf/track.c
index 3919d0eb1ab..8ea4201246a 100644
--- a/src/third_party/wiredtiger/bench/wtperf/track.c
+++ b/src/third_party/wiredtiger/bench/wtperf/track.c
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/bench/wtperf/wtperf.c b/src/third_party/wiredtiger/bench/wtperf/wtperf.c
index 74d9152f326..b9d72e45184 100644
--- a/src/third_party/wiredtiger/bench/wtperf/wtperf.c
+++ b/src/third_party/wiredtiger/bench/wtperf/wtperf.c
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/bench/wtperf/wtperf.h b/src/third_party/wiredtiger/bench/wtperf/wtperf.h
index cc70e76bd5d..976847e9a21 100644
--- a/src/third_party/wiredtiger/bench/wtperf/wtperf.h
+++ b/src/third_party/wiredtiger/bench/wtperf/wtperf.h
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/bench/wtperf/wtperf_opt.i b/src/third_party/wiredtiger/bench/wtperf/wtperf_opt.i
index 3fec9bddac9..58d56e512ce 100644
--- a/src/third_party/wiredtiger/bench/wtperf/wtperf_opt.i
+++ b/src/third_party/wiredtiger/bench/wtperf/wtperf_opt.i
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/dist/api_data.py b/src/third_party/wiredtiger/dist/api_data.py
index 7d9711c2b71..7e964252c83 100644
--- a/src/third_party/wiredtiger/dist/api_data.py
+++ b/src/third_party/wiredtiger/dist/api_data.py
@@ -541,6 +541,9 @@ common_wiredtiger_open = [
maximum expected number of sessions (including server
threads)''',
min='1'),
+ Config('session_scratch_max', '2MB', r'''
+ maximum memory to cache in each session''',
+ type='int', undoc=True),
Config('transaction_sync', '', r'''
how to sync log records when the transaction commits''',
type='category', subconfig=[
diff --git a/src/third_party/wiredtiger/dist/log.py b/src/third_party/wiredtiger/dist/log.py
index d2bc2f2442a..9091754ba0b 100644
--- a/src/third_party/wiredtiger/dist/log.py
+++ b/src/third_party/wiredtiger/dist/log.py
@@ -125,8 +125,7 @@ __wt_logrec_alloc(WT_SESSION_IMPL *session, size_t size, WT_ITEM **logrecp)
void
__wt_logrec_free(WT_SESSION_IMPL *session, WT_ITEM **logrecp)
{
-\tWT_UNUSED(session);
-\t__wt_scr_free(logrecp);
+\t__wt_scr_free(session, logrecp);
}
int
diff --git a/src/third_party/wiredtiger/dist/s_copyright b/src/third_party/wiredtiger/dist/s_copyright
index 15697ad4706..a0e3d588e18 100755
--- a/src/third_party/wiredtiger/dist/s_copyright
+++ b/src/third_party/wiredtiger/dist/s_copyright
@@ -11,7 +11,8 @@ trap 'rm -f $c1 $c2 $c3 $c4; exit 0' 0 1 2 3 13 15
year=`date +%Y`
cat > $c1 <<ENDOFTEXT
- * Copyright (c) 2008-$year WiredTiger, Inc.
+ * Copyright (c) 2014-$year MongoDB, Inc.
+ * Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
* See the file LICENSE for redistribution information.
@@ -19,20 +20,23 @@ ENDOFTEXT
# Copyright for files WiredTiger does not own.
cat > $c2 <<ENDOFTEXT
- * Public Domain 2008-$year WiredTiger, Inc.
+ * Public Domain 2014-$year MongoDB, Inc.
+ * Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
ENDOFTEXT
cat > $c3 <<ENDOFTEXT
-# Copyright (c) 2008-$year WiredTiger, Inc.
+# Copyright (c) 2014-$year MongoDB, Inc.
+# Copyright (c) 2008-2014 WiredTiger, Inc.
# All rights reserved.
#
# See the file LICENSE for redistribution information.
ENDOFTEXT
cat > $c4 <<ENDOFTEXT
-# Public Domain 2008-$year WiredTiger, Inc.
+# Public Domain 2014-$year MongoDB, Inc.
+# Public Domain 2008-2014 WiredTiger, Inc.
#
# This is free and unencumbered software released into the public domain.
ENDOFTEXT
@@ -49,19 +53,19 @@ check()
test -f ../$i || return
# Check for a correct copyright header.
- if `sed -e 2,4p -e 5q -e d ../$1 | diff - $c1 > /dev/null` ; then
+ if `sed -e 2,5p -e 6q -e d ../$1 | diff - $c1 > /dev/null` ; then
return;
fi
- if `sed -e 2,3p -e 4q -e d ../$1 | diff - $c2 > /dev/null` ; then
+ if `sed -e 2,4p -e 5q -e d ../$1 | diff - $c2 > /dev/null` ; then
return;
fi
- if `sed -e 3,5p -e 6q -e d ../$1 | diff - $c3 > /dev/null` ; then
+ if `sed -e 3,6p -e 7q -e d ../$1 | diff - $c3 > /dev/null` ; then
return;
fi
- if `sed -e 3,4p -e 5q -e d ../$1 | diff - $c4 > /dev/null` ; then
+ if `sed -e 3,5p -e 6q -e d ../$1 | diff - $c4 > /dev/null` ; then
return;
fi
- if `sed -e 1,2p -e 3q -e d ../$1 | diff - $c4 > /dev/null` ; then
+ if `sed -e 1,3p -e 4q -e d ../$1 | diff - $c4 > /dev/null` ; then
return;
fi
@@ -86,17 +90,20 @@ do
done
# A few special cases: LICENSE, documentation, wt utility, some of which
-# have more than one copyright notice in the file.
-s="Copyright (c) 2008-$year WiredTiger, Inc."
+# have more than one copyright notice in the file. For files that have
+# only a single copyright notice, we give it to MongoDB, from 2008 to now.
+string1="Copyright \(c\) 2014-$year MongoDB, Inc."
+string2="Copyright \(c\) 2008-$year MongoDB, Inc."
+string3="printf.*Copyright \(c\) 2008-$year MongoDB, Inc."
special_copyright()
{
- cnt=`grep "$s" ../$1 | wc -l`
+ cnt=`egrep "$3" ../$1 | wc -l`
if test $cnt -ne $2; then
echo "$1: copyright information is incorrect"
fi
}
-special_copyright LICENSE 1
-special_copyright src/docs/build-javadoc.sh 1
-special_copyright src/docs/style/footer.html 2
-special_copyright src/utilities/util_cpyright.c 2
+special_copyright LICENSE 1 "$string1"
+special_copyright src/docs/build-javadoc.sh 1 "$string2"
+special_copyright src/docs/style/footer.html 2 "$string2"
+special_copyright src/utilities/util_cpyright.c 1 "$string3"
diff --git a/src/third_party/wiredtiger/dist/s_string.ok b/src/third_party/wiredtiger/dist/s_string.ok
index 94f3ea6b6a5..db1114b77de 100644
--- a/src/third_party/wiredtiger/dist/s_string.ok
+++ b/src/third_party/wiredtiger/dist/s_string.ok
@@ -225,6 +225,7 @@ Mellor
Metadata
Mewhort
Mitzenmacher
+MongoDB
MoveFile
Multi
Multithreaded
diff --git a/src/third_party/wiredtiger/ext/collators/reverse/reverse_collator.c b/src/third_party/wiredtiger/ext/collators/reverse/reverse_collator.c
index 0ccebba7919..336519fe661 100644
--- a/src/third_party/wiredtiger/ext/collators/reverse/reverse_collator.c
+++ b/src/third_party/wiredtiger/ext/collators/reverse/reverse_collator.c
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/ext/compressors/bzip2/bzip2_compress.c b/src/third_party/wiredtiger/ext/compressors/bzip2/bzip2_compress.c
index cd73b237387..3f2e09de2f6 100644
--- a/src/third_party/wiredtiger/ext/compressors/bzip2/bzip2_compress.c
+++ b/src/third_party/wiredtiger/ext/compressors/bzip2/bzip2_compress.c
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/ext/compressors/nop/nop_compress.c b/src/third_party/wiredtiger/ext/compressors/nop/nop_compress.c
index e536c8fefd8..6b640adf777 100644
--- a/src/third_party/wiredtiger/ext/compressors/nop/nop_compress.c
+++ b/src/third_party/wiredtiger/ext/compressors/nop/nop_compress.c
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/ext/compressors/snappy/snappy_compress.c b/src/third_party/wiredtiger/ext/compressors/snappy/snappy_compress.c
index 7ed759e6807..63f6f87f7f6 100644
--- a/src/third_party/wiredtiger/ext/compressors/snappy/snappy_compress.c
+++ b/src/third_party/wiredtiger/ext/compressors/snappy/snappy_compress.c
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/ext/compressors/zlib/zlib_compress.c b/src/third_party/wiredtiger/ext/compressors/zlib/zlib_compress.c
index 8dd619d695c..8cf8ab4792e 100644
--- a/src/third_party/wiredtiger/ext/compressors/zlib/zlib_compress.c
+++ b/src/third_party/wiredtiger/ext/compressors/zlib/zlib_compress.c
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/ext/datasources/helium/helium.c b/src/third_party/wiredtiger/ext/datasources/helium/helium.c
index 4191163f20b..d62ecb846e9 100644
--- a/src/third_party/wiredtiger/ext/datasources/helium/helium.c
+++ b/src/third_party/wiredtiger/ext/datasources/helium/helium.c
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/AsyncCallback.java b/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/AsyncCallback.java
index 4f6fb5df133..c3640c1a47d 100644
--- a/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/AsyncCallback.java
+++ b/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/AsyncCallback.java
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/PackFormatInputStream.java b/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/PackFormatInputStream.java
index fc4b99ae435..c9d1c43d32d 100644
--- a/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/PackFormatInputStream.java
+++ b/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/PackFormatInputStream.java
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/PackInputStream.java b/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/PackInputStream.java
index f0e5bb9663d..75bdb3119a9 100644
--- a/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/PackInputStream.java
+++ b/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/PackInputStream.java
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/PackOutputStream.java b/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/PackOutputStream.java
index 185068d2093..60f40564afd 100644
--- a/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/PackOutputStream.java
+++ b/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/PackOutputStream.java
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/PackUtil.java b/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/PackUtil.java
index c8804891da5..bfc13d9a586 100644
--- a/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/PackUtil.java
+++ b/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/PackUtil.java
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/WiredTigerException.java b/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/WiredTigerException.java
index b437ab98eee..69ce031b6ef 100644
--- a/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/WiredTigerException.java
+++ b/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/WiredTigerException.java
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/WiredTigerPackingException.java b/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/WiredTigerPackingException.java
index 4f08f60b956..2af1c5ccc9f 100644
--- a/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/WiredTigerPackingException.java
+++ b/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/WiredTigerPackingException.java
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/WiredTigerPanicException.java b/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/WiredTigerPanicException.java
index 2b10beda752..8535af5d316 100644
--- a/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/WiredTigerPanicException.java
+++ b/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/WiredTigerPanicException.java
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/WiredTigerRollbackException.java b/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/WiredTigerRollbackException.java
index 0521b43aac9..2f620d95da3 100644
--- a/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/WiredTigerRollbackException.java
+++ b/src/third_party/wiredtiger/lang/java/src/com/wiredtiger/db/WiredTigerRollbackException.java
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/lang/java/wiredtiger.i b/src/third_party/wiredtiger/lang/java/wiredtiger.i
index 0b2b4cdd1d2..a922a7a6b2e 100644
--- a/src/third_party/wiredtiger/lang/java/wiredtiger.i
+++ b/src/third_party/wiredtiger/lang/java/wiredtiger.i
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/lang/python/setup.py b/src/third_party/wiredtiger/lang/python/setup.py
index 7d99c872bc3..28bbe4d07e8 100644
--- a/src/third_party/wiredtiger/lang/python/setup.py
+++ b/src/third_party/wiredtiger/lang/python/setup.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python
#
+# Public Domain 2014-2015 MongoDB, Inc.
# Public Domain 2008-2014 WiredTiger, Inc.
#
# This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/lang/python/wiredtiger.i b/src/third_party/wiredtiger/lang/python/wiredtiger.i
index 5e88855276a..974118d0f61 100644
--- a/src/third_party/wiredtiger/lang/python/wiredtiger.i
+++ b/src/third_party/wiredtiger/lang/python/wiredtiger.i
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/lang/python/wiredtiger/fpacking.py b/src/third_party/wiredtiger/lang/python/wiredtiger/fpacking.py
index 632c5c5a1c5..62d7af739b8 100644
--- a/src/third_party/wiredtiger/lang/python/wiredtiger/fpacking.py
+++ b/src/third_party/wiredtiger/lang/python/wiredtiger/fpacking.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python
#
+# Public Domain 2014-2015 MongoDB, Inc.
# Public Domain 2008-2014 WiredTiger, Inc.
#
# This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/lang/python/wiredtiger/intpack-test.py b/src/third_party/wiredtiger/lang/python/wiredtiger/intpack-test.py
index 6c1c991ddfd..8855dc4e72d 100644
--- a/src/third_party/wiredtiger/lang/python/wiredtiger/intpack-test.py
+++ b/src/third_party/wiredtiger/lang/python/wiredtiger/intpack-test.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python
#
+# Public Domain 2014-2015 MongoDB, Inc.
# Public Domain 2008-2014 WiredTiger, Inc.
#
# This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/lang/python/wiredtiger/intpacking.py b/src/third_party/wiredtiger/lang/python/wiredtiger/intpacking.py
index fefdb0dca1f..239bc84069d 100644
--- a/src/third_party/wiredtiger/lang/python/wiredtiger/intpacking.py
+++ b/src/third_party/wiredtiger/lang/python/wiredtiger/intpacking.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python
#
+# Public Domain 2014-2015 MongoDB, Inc.
# Public Domain 2008-2014 WiredTiger, Inc.
#
# This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/lang/python/wiredtiger/packing-test.py b/src/third_party/wiredtiger/lang/python/wiredtiger/packing-test.py
index 4b06b2bc608..2eb0baa1d47 100644
--- a/src/third_party/wiredtiger/lang/python/wiredtiger/packing-test.py
+++ b/src/third_party/wiredtiger/lang/python/wiredtiger/packing-test.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python
#
+# Public Domain 2014-2015 MongoDB, Inc.
# Public Domain 2008-2014 WiredTiger, Inc.
#
# This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/lang/python/wiredtiger/packing.py b/src/third_party/wiredtiger/lang/python/wiredtiger/packing.py
index ee12434cabd..103c0471724 100644
--- a/src/third_party/wiredtiger/lang/python/wiredtiger/packing.py
+++ b/src/third_party/wiredtiger/lang/python/wiredtiger/packing.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python
#
+# Public Domain 2014-2015 MongoDB, Inc.
# Public Domain 2008-2014 WiredTiger, Inc.
#
# This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/src/async/async_api.c b/src/third_party/wiredtiger/src/async/async_api.c
index 6aeb404bccd..e211f2352a4 100644
--- a/src/third_party/wiredtiger/src/async/async_api.c
+++ b/src/third_party/wiredtiger/src/async/async_api.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/async/async_op.c b/src/third_party/wiredtiger/src/async/async_op.c
index 9dba2b2b5f3..86797af635b 100644
--- a/src/third_party/wiredtiger/src/async/async_op.c
+++ b/src/third_party/wiredtiger/src/async/async_op.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/async/async_worker.c b/src/third_party/wiredtiger/src/async/async_worker.c
index ecf052fc3bf..c68d0e8a838 100644
--- a/src/third_party/wiredtiger/src/async/async_worker.c
+++ b/src/third_party/wiredtiger/src/async/async_worker.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/block/block_addr.c b/src/third_party/wiredtiger/src/block/block_addr.c
index bbd52359157..6b5610eb17c 100644
--- a/src/third_party/wiredtiger/src/block/block_addr.c
+++ b/src/third_party/wiredtiger/src/block/block_addr.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/block/block_ckpt.c b/src/third_party/wiredtiger/src/block/block_ckpt.c
index 83c3a40e8e1..bb0a0543053 100644
--- a/src/third_party/wiredtiger/src/block/block_ckpt.c
+++ b/src/third_party/wiredtiger/src/block/block_ckpt.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -154,7 +155,7 @@ err: /*
if (checkpoint && ci != NULL)
__wt_block_ckpt_destroy(session, ci);
- __wt_scr_free(&tmp);
+ __wt_scr_free(session, &tmp);
return (ret);
}
@@ -657,7 +658,7 @@ err: if (locked)
if ((ci = ckpt->bpriv) != NULL)
__wt_block_ckpt_destroy(session, ci);
- __wt_scr_free(&tmp);
+ __wt_scr_free(session, &tmp);
return (ret);
}
@@ -741,7 +742,7 @@ __ckpt_update(WT_SESSION_IMPL *session,
block->name, ckpt->name, (const char *)tmp->data));
}
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/block/block_compact.c b/src/third_party/wiredtiger/src/block/block_compact.c
index 007c77f3291..c7f2b09aa23 100644
--- a/src/third_party/wiredtiger/src/block/block_compact.c
+++ b/src/third_party/wiredtiger/src/block/block_compact.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/block/block_ext.c b/src/third_party/wiredtiger/src/block/block_ext.c
index 28c39c71a08..e5b3a9e5d98 100644
--- a/src/third_party/wiredtiger/src/block/block_ext.c
+++ b/src/third_party/wiredtiger/src/block/block_ext.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -1199,7 +1200,7 @@ corrupted: WT_PANIC_RET(session, WT_ERROR,
if (WT_VERBOSE_ISSET(session, WT_VERB_BLOCK))
WT_ERR(__block_extlist_dump(session, "read extlist", el, 0));
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
return (ret);
}
@@ -1295,7 +1296,7 @@ __wt_block_extlist_write(WT_SESSION_IMPL *session,
"%s written %" PRIdMAX "/%" PRIu32,
el->name, (intmax_t)el->offset, el->size));
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/block/block_map.c b/src/third_party/wiredtiger/src/block/block_map.c
index 68fb75179d9..6dc270760d6 100644
--- a/src/third_party/wiredtiger/src/block/block_map.c
+++ b/src/third_party/wiredtiger/src/block/block_map.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/block/block_mgr.c b/src/third_party/wiredtiger/src/block/block_mgr.c
index a9b3b07904d..13e6ec73b32 100644
--- a/src/third_party/wiredtiger/src/block/block_mgr.c
+++ b/src/third_party/wiredtiger/src/block/block_mgr.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/block/block_open.c b/src/third_party/wiredtiger/src/block/block_open.c
index 0abe9cffc5f..7c42c0b2bc9 100644
--- a/src/third_party/wiredtiger/src/block/block_open.c
+++ b/src/third_party/wiredtiger/src/block/block_open.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -254,7 +255,7 @@ __wt_desc_init(WT_SESSION_IMPL *session, WT_FH *fh, uint32_t allocsize)
ret = __wt_write(session, fh, (wt_off_t)0, (size_t)allocsize, desc);
- __wt_scr_free(&buf);
+ __wt_scr_free(session, &buf);
return (ret);
}
@@ -312,7 +313,7 @@ __desc_read(WT_SESSION_IMPL *session, WT_BLOCK *block)
WT_BLOCK_MAJOR_VERSION, WT_BLOCK_MINOR_VERSION,
desc->majorv, desc->minorv);
-err: __wt_scr_free(&buf);
+err: __wt_scr_free(session, &buf);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/block/block_read.c b/src/third_party/wiredtiger/src/block/block_read.c
index c8a26e77341..ef944fcb152 100644
--- a/src/third_party/wiredtiger/src/block/block_read.c
+++ b/src/third_party/wiredtiger/src/block/block_read.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -43,7 +44,7 @@ __wt_bm_preload(WT_BM *bm,
WT_RET(__wt_scr_alloc(session, size, &tmp));
ret = __wt_block_read_off(
session, block, tmp, offset, size, cksum);
- __wt_scr_free(&tmp);
+ __wt_scr_free(session, &tmp);
WT_RET(ret);
}
}
diff --git a/src/third_party/wiredtiger/src/block/block_session.c b/src/third_party/wiredtiger/src/block/block_session.c
index 90fe0af562a..6683fdd20ce 100644
--- a/src/third_party/wiredtiger/src/block/block_session.c
+++ b/src/third_party/wiredtiger/src/block/block_session.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/block/block_slvg.c b/src/third_party/wiredtiger/src/block/block_slvg.c
index 349daa620f5..98722a83178 100644
--- a/src/third_party/wiredtiger/src/block/block_slvg.c
+++ b/src/third_party/wiredtiger/src/block/block_slvg.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -154,7 +155,7 @@ __wt_block_salvage_next(WT_SESSION_IMPL *session,
*addr_sizep = WT_PTRDIFF(endp, addr);
done:
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/block/block_vrfy.c b/src/third_party/wiredtiger/src/block/block_vrfy.c
index db4e42b79e7..ac49f24553b 100644
--- a/src/third_party/wiredtiger/src/block/block_vrfy.c
+++ b/src/third_party/wiredtiger/src/block/block_vrfy.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/block/block_write.c b/src/third_party/wiredtiger/src/block/block_write.c
index 7c91a28451c..aafe18615c6 100644
--- a/src/third_party/wiredtiger/src/block/block_write.c
+++ b/src/third_party/wiredtiger/src/block/block_write.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/bloom/bloom.c b/src/third_party/wiredtiger/src/bloom/bloom.c
index 5f7a8f47c21..06d0b7478dd 100644
--- a/src/third_party/wiredtiger/src/bloom/bloom.c
+++ b/src/third_party/wiredtiger/src/bloom/bloom.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/btree/bt_compact.c b/src/third_party/wiredtiger/src/btree/bt_compact.c
index e81c951e9f6..405410c6a1c 100644
--- a/src/third_party/wiredtiger/src/btree/bt_compact.c
+++ b/src/third_party/wiredtiger/src/btree/bt_compact.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/btree/bt_curnext.c b/src/third_party/wiredtiger/src/btree/bt_curnext.c
index 9cd7f0241fc..6140dca1fad 100644
--- a/src/third_party/wiredtiger/src/btree/bt_curnext.c
+++ b/src/third_party/wiredtiger/src/btree/bt_curnext.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/btree/bt_curprev.c b/src/third_party/wiredtiger/src/btree/bt_curprev.c
index 851b01d3732..880cb777954 100644
--- a/src/third_party/wiredtiger/src/btree/bt_curprev.c
+++ b/src/third_party/wiredtiger/src/btree/bt_curprev.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/btree/bt_cursor.c b/src/third_party/wiredtiger/src/btree/bt_cursor.c
index 390c6819ca2..4aee1883ae0 100644
--- a/src/third_party/wiredtiger/src/btree/bt_cursor.c
+++ b/src/third_party/wiredtiger/src/btree/bt_cursor.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/btree/bt_debug.c b/src/third_party/wiredtiger/src/btree/bt_debug.c
index 7ec6ef8bdee..4de94277364 100644
--- a/src/third_party/wiredtiger/src/btree/bt_debug.c
+++ b/src/third_party/wiredtiger/src/btree/bt_debug.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -118,7 +119,7 @@ __dmsg_wrapup(WT_DBG *ds)
session = ds->session;
msg = ds->msg;
- __wt_scr_free(&ds->tmp);
+ __wt_scr_free(session, &ds->tmp);
/*
* Discard the buffer -- it shouldn't have anything in it, but might
@@ -127,7 +128,7 @@ __dmsg_wrapup(WT_DBG *ds)
if (msg != NULL) {
if (msg->size != 0)
(void)__wt_msg(session, "%s", (char *)msg->mem);
- __wt_scr_free(&ds->msg);
+ __wt_scr_free(session, &ds->msg);
}
/* Close any file we opened. */
@@ -207,7 +208,7 @@ __wt_debug_addr_print(
WT_RET(__wt_scr_alloc(session, 128, &buf));
fprintf(stderr, "%s\n",
__wt_addr_string(session, addr, addr_size, buf));
- __wt_scr_free(&buf);
+ __wt_scr_free(session, &buf);
return (0);
}
@@ -230,7 +231,7 @@ __wt_debug_addr(WT_SESSION_IMPL *session,
WT_ERR(bm->read(bm, session, buf, addr, addr_size));
ret = __wt_debug_disk(session, buf->mem, ofile);
-err: __wt_scr_free(&buf);
+err: __wt_scr_free(session, &buf);
return (ret);
}
@@ -257,7 +258,7 @@ __wt_debug_offset_blind(
session, S2BT(session)->bm->block, buf, offset));
ret = __wt_debug_disk(session, buf->mem, ofile);
-err: __wt_scr_free(&buf);
+err: __wt_scr_free(session, &buf);
return (ret);
}
@@ -295,7 +296,7 @@ __wt_debug_offset(WT_SESSION_IMPL *session,
WT_ERR(__wt_bt_read(session, buf, addr, WT_PTRDIFF(endp, addr)));
ret = __wt_debug_disk(session, buf->mem, ofile);
-err: __wt_scr_free(&buf);
+err: __wt_scr_free(session, &buf);
return (ret);
}
@@ -855,7 +856,7 @@ __debug_page_row_leaf(WT_DBG *ds, WT_PAGE *page)
__debug_row_skip(ds, insert);
}
-err: __wt_scr_free(&key);
+err: __wt_scr_free(session, &key);
return (ret);
}
@@ -1023,7 +1024,7 @@ __debug_cell(WT_DBG *ds, const WT_PAGE_HEADER *dsk, WT_CELL_UNPACK *unpack)
addr: WT_RET(__wt_scr_alloc(session, 128, &buf));
__dmsg(ds, ", %s %s", type,
__wt_addr_string(session, unpack->data, unpack->size, buf));
- __wt_scr_free(&buf);
+ __wt_scr_free(session, &buf);
WT_RET(ret);
break;
}
@@ -1082,7 +1083,7 @@ __debug_cell_data(WT_DBG *ds,
__wt_page_cell_data_ref(session, page, unpack, buf);
if (ret == 0)
__debug_item(ds, tag, buf->data, buf->size);
- __wt_scr_free(&buf);
+ __wt_scr_free(session, &buf);
break;
WT_ILLEGAL_VALUE(session);
}
diff --git a/src/third_party/wiredtiger/src/btree/bt_delete.c b/src/third_party/wiredtiger/src/btree/bt_delete.c
index a58ed5d66e9..c97ea176c97 100644
--- a/src/third_party/wiredtiger/src/btree/bt_delete.c
+++ b/src/third_party/wiredtiger/src/btree/bt_delete.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/btree/bt_discard.c b/src/third_party/wiredtiger/src/btree/bt_discard.c
index a162e2dc841..05a54ad643e 100644
--- a/src/third_party/wiredtiger/src/btree/bt_discard.c
+++ b/src/third_party/wiredtiger/src/btree/bt_discard.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/btree/bt_handle.c b/src/third_party/wiredtiger/src/btree/bt_handle.c
index 69c9ab27656..943a8573f29 100644
--- a/src/third_party/wiredtiger/src/btree/bt_handle.c
+++ b/src/third_party/wiredtiger/src/btree/bt_handle.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/btree/bt_huffman.c b/src/third_party/wiredtiger/src/btree/bt_huffman.c
index 80da16f2a62..c1cf3431c3b 100644
--- a/src/third_party/wiredtiger/src/btree/bt_huffman.c
+++ b/src/third_party/wiredtiger/src/btree/bt_huffman.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/btree/bt_io.c b/src/third_party/wiredtiger/src/btree/bt_io.c
index 9d154311a8c..3ff395dbbfd 100644
--- a/src/third_party/wiredtiger/src/btree/bt_io.c
+++ b/src/third_party/wiredtiger/src/btree/bt_io.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -116,7 +117,7 @@ __wt_bt_read(WT_SESSION_IMPL *session,
WT_STAT_FAST_CONN_INCRV(session, cache_bytes_read, dsk->mem_size);
WT_STAT_FAST_DATA_INCRV(session, cache_bytes_read, dsk->mem_size);
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
return (ret);
}
@@ -173,7 +174,7 @@ __wt_bt_write(WT_SESSION_IMPL *session, WT_ITEM *buf,
ip = buf;
}
WT_ERR(__wt_verify_dsk(session, "[write-check]", ip));
- __wt_scr_free(&tmp);
+ __wt_scr_free(session, &tmp);
#endif
/*
@@ -298,6 +299,6 @@ __wt_bt_write(WT_SESSION_IMPL *session, WT_ITEM *buf,
WT_STAT_FAST_CONN_INCRV(session, cache_bytes_write, dsk->mem_size);
WT_STAT_FAST_DATA_INCRV(session, cache_bytes_write, dsk->mem_size);
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/btree/bt_misc.c b/src/third_party/wiredtiger/src/btree/bt_misc.c
index cba1c0c61aa..e2f0eb8f4cf 100644
--- a/src/third_party/wiredtiger/src/btree/bt_misc.c
+++ b/src/third_party/wiredtiger/src/btree/bt_misc.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/btree/bt_ovfl.c b/src/third_party/wiredtiger/src/btree/bt_ovfl.c
index 4cd317f1e8f..d8456c5b61f 100644
--- a/src/third_party/wiredtiger/src/btree/bt_ovfl.c
+++ b/src/third_party/wiredtiger/src/btree/bt_ovfl.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -141,7 +142,7 @@ __ovfl_cache(WT_SESSION_IMPL *session, WT_PAGE *page, WT_CELL_UNPACK *unpack)
WT_ERR(__wt_ovfl_txnc_add(
session, page, addr, addr_size, tmp->data, tmp->size));
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/btree/bt_page.c b/src/third_party/wiredtiger/src/btree/bt_page.c
index db1ccdabc4f..181ffdb3736 100644
--- a/src/third_party/wiredtiger/src/btree/bt_page.c
+++ b/src/third_party/wiredtiger/src/btree/bt_page.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -164,7 +165,7 @@ __wt_page_in_func(WT_SESSION_IMPL *session, WT_REF *ref, uint32_t flags
*/
if (++wait_cnt < 1000)
__wt_yield();
- else {
+ else {
sleep_cnt = WT_MIN(wait_cnt, 10000);
wait_cnt *= 2;
WT_STAT_FAST_CONN_INCRV(session, page_sleep, sleep_cnt);
@@ -642,7 +643,7 @@ __inmem_row_int(WT_SESSION_IMPL *session, WT_PAGE *page, size_t *sizep)
}
}
-err: __wt_scr_free(&current);
+err: __wt_scr_free(session, &current);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/btree/bt_read.c b/src/third_party/wiredtiger/src/btree/bt_read.c
index 9cd6f8310af..6a564e74f3f 100644
--- a/src/third_party/wiredtiger/src/btree/bt_read.c
+++ b/src/third_party/wiredtiger/src/btree/bt_read.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/btree/bt_ret.c b/src/third_party/wiredtiger/src/btree/bt_ret.c
index 25b4bfc3005..c37ff6dc809 100644
--- a/src/third_party/wiredtiger/src/btree/bt_ret.c
+++ b/src/third_party/wiredtiger/src/btree/bt_ret.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/btree/bt_slvg.c b/src/third_party/wiredtiger/src/btree/bt_slvg.c
index 9d98d0db739..fbc3890f23b 100644
--- a/src/third_party/wiredtiger/src/btree/bt_slvg.c
+++ b/src/third_party/wiredtiger/src/btree/bt_slvg.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -341,8 +342,8 @@ err: WT_TRET(bm->salvage_end(bm, session));
WT_TRET(__slvg_cleanup(session, ss));
/* Discard temporary buffers. */
- __wt_scr_free(&ss->tmp1);
- __wt_scr_free(&ss->tmp2);
+ __wt_scr_free(session, &ss->tmp1);
+ __wt_scr_free(session, &ss->tmp2);
/* Wrap up reporting. */
WT_TRET(__wt_progress(session, NULL, ss->fcnt));
@@ -471,8 +472,8 @@ __slvg_read(WT_SESSION_IMPL *session, WT_STUFF *ss)
}
}
-err: __wt_scr_free(&as);
- __wt_scr_free(&buf);
+err: __wt_scr_free(session, &as);
+ __wt_scr_free(session, &buf);
return (ret);
}
@@ -1785,8 +1786,8 @@ __slvg_row_trk_update_start(
err: if (page != NULL)
__wt_page_out(session, &page);
- __wt_scr_free(&dsk);
- __wt_scr_free(&key);
+ __wt_scr_free(session, &dsk);
+ __wt_scr_free(session, &key);
return (ret);
}
@@ -2023,7 +2024,7 @@ __slvg_row_build_leaf(
if (0) {
err: WT_TRET(__wt_page_release(session, ref, 0));
}
- __wt_scr_free(&key);
+ __wt_scr_free(session, &key);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/btree/bt_split.c b/src/third_party/wiredtiger/src/btree/bt_split.c
index a14e82d980d..1c62391f722 100644
--- a/src/third_party/wiredtiger/src/btree/bt_split.c
+++ b/src/third_party/wiredtiger/src/btree/bt_split.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -724,7 +725,7 @@ __split_multi_inmem(
err: /* Free any resources that may have been cached in the cursor. */
WT_TRET(__wt_btcur_close(&cbt));
- __wt_scr_free(&key);
+ __wt_scr_free(session, &key);
return (ret);
}
@@ -1107,7 +1108,7 @@ __wt_split_insert(WT_SESSION_IMPL *session, WT_REF *ref, int *splitp)
WT_ERR(__wt_row_ikey(
session, 0, key->data, key->size, &child->key.ikey));
- __wt_scr_free(&key);
+ __wt_scr_free(session, &key);
/*
* The second page in the split is a new WT_REF/page pair.
@@ -1317,7 +1318,7 @@ err: if (split_ref[0] != NULL) {
}
if (right != NULL)
__wt_page_out(session, &right);
- __wt_scr_free(&key);
+ __wt_scr_free(session, &key);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/btree/bt_stat.c b/src/third_party/wiredtiger/src/btree/bt_stat.c
index c08e9d9218b..d9ff2a6af1e 100644
--- a/src/third_party/wiredtiger/src/btree/bt_stat.c
+++ b/src/third_party/wiredtiger/src/btree/bt_stat.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/btree/bt_sync.c b/src/third_party/wiredtiger/src/btree/bt_sync.c
index 7e6493a9fbb..f038ebf3ecc 100644
--- a/src/third_party/wiredtiger/src/btree/bt_sync.c
+++ b/src/third_party/wiredtiger/src/btree/bt_sync.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/btree/bt_upgrade.c b/src/third_party/wiredtiger/src/btree/bt_upgrade.c
index d65c8793fbb..6b403595ecc 100644
--- a/src/third_party/wiredtiger/src/btree/bt_upgrade.c
+++ b/src/third_party/wiredtiger/src/btree/bt_upgrade.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/btree/bt_vrfy.c b/src/third_party/wiredtiger/src/btree/bt_vrfy.c
index 869fa2bb696..fafb4b58fc4 100644
--- a/src/third_party/wiredtiger/src/btree/bt_vrfy.c
+++ b/src/third_party/wiredtiger/src/btree/bt_vrfy.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -146,10 +147,10 @@ err: /* Inform the underlying block manager we're done. */
WT_TRET(__wt_progress(session, NULL, vs->fcnt));
/* Free allocated memory. */
- __wt_scr_free(&vs->max_key);
- __wt_scr_free(&vs->max_addr);
- __wt_scr_free(&vs->tmp1);
- __wt_scr_free(&vs->tmp2);
+ __wt_scr_free(session, &vs->max_key);
+ __wt_scr_free(session, &vs->max_addr);
+ __wt_scr_free(session, &vs->tmp1);
+ __wt_scr_free(session, &vs->tmp2);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/btree/bt_vrfy_dsk.c b/src/third_party/wiredtiger/src/btree/bt_vrfy_dsk.c
index 85eebad58e0..d6c300d200a 100644
--- a/src/third_party/wiredtiger/src/btree/bt_vrfy_dsk.c
+++ b/src/third_party/wiredtiger/src/btree/bt_vrfy_dsk.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -453,9 +454,9 @@ eof: ret = __err_eof(session, cell_num, addr);
err: if (ret == 0)
ret = WT_ERROR;
}
- __wt_scr_free(&current);
- __wt_scr_free(&last_pfx);
- __wt_scr_free(&last_ovfl);
+ __wt_scr_free(session, &current);
+ __wt_scr_free(session, &last_pfx);
+ __wt_scr_free(session, &last_ovfl);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/btree/bt_walk.c b/src/third_party/wiredtiger/src/btree/bt_walk.c
index ef35d215ec0..c74a7177401 100644
--- a/src/third_party/wiredtiger/src/btree/bt_walk.c
+++ b/src/third_party/wiredtiger/src/btree/bt_walk.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/btree/col_modify.c b/src/third_party/wiredtiger/src/btree/col_modify.c
index 3a4a2a2987d..2143325e2ab 100644
--- a/src/third_party/wiredtiger/src/btree/col_modify.c
+++ b/src/third_party/wiredtiger/src/btree/col_modify.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/btree/col_srch.c b/src/third_party/wiredtiger/src/btree/col_srch.c
index e4083e2282f..4c418f91de0 100644
--- a/src/third_party/wiredtiger/src/btree/col_srch.c
+++ b/src/third_party/wiredtiger/src/btree/col_srch.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/btree/row_key.c b/src/third_party/wiredtiger/src/btree/row_key.c
index 308bc1f0dc5..92cfd1e4273 100644
--- a/src/third_party/wiredtiger/src/btree/row_key.c
+++ b/src/third_party/wiredtiger/src/btree/row_key.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -64,8 +65,8 @@ __wt_row_leaf_keys(WT_SESSION_IMPL *session, WT_PAGE *page)
F_SET_ATOMIC(page, WT_PAGE_BUILD_KEYS);
-err: __wt_scr_free(&key);
- __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &key);
+ __wt_scr_free(session, &tmp);
return (ret);
}
@@ -456,7 +457,7 @@ next: switch (direction) {
}
done:
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/btree/row_modify.c b/src/third_party/wiredtiger/src/btree/row_modify.c
index e7fb75dc8cb..136029f41aa 100644
--- a/src/third_party/wiredtiger/src/btree/row_modify.c
+++ b/src/third_party/wiredtiger/src/btree/row_modify.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/btree/row_srch.c b/src/third_party/wiredtiger/src/btree/row_srch.c
index b190aaaded5..036e11bec6d 100644
--- a/src/third_party/wiredtiger/src/btree/row_srch.c
+++ b/src/third_party/wiredtiger/src/btree/row_srch.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/config/config.c b/src/third_party/wiredtiger/src/config/config.c
index c33cae594da..751bbbd289b 100644
--- a/src/third_party/wiredtiger/src/config/config.c
+++ b/src/third_party/wiredtiger/src/config/config.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/config/config_api.c b/src/third_party/wiredtiger/src/config/config_api.c
index 0c920af0d0e..d956b2d677d 100644
--- a/src/third_party/wiredtiger/src/config/config_api.c
+++ b/src/third_party/wiredtiger/src/config/config_api.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/config/config_check.c b/src/third_party/wiredtiger/src/config/config_check.c
index 18300da8282..97f46e4211c 100644
--- a/src/third_party/wiredtiger/src/config/config_check.c
+++ b/src/third_party/wiredtiger/src/config/config_check.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/config/config_collapse.c b/src/third_party/wiredtiger/src/config/config_collapse.c
index b914b485a46..f54e4fc2074 100644
--- a/src/third_party/wiredtiger/src/config/config_collapse.c
+++ b/src/third_party/wiredtiger/src/config/config_collapse.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -72,7 +73,7 @@ __wt_config_collapse(
--tmp->size;
ret = __wt_strndup(session, tmp->data, tmp->size, config_ret);
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
return (ret);
}
@@ -196,8 +197,8 @@ __config_merge_scan(WT_SESSION_IMPL *session,
}
WT_ERR_NOTFOUND_OK(ret);
-err: __wt_scr_free(&kb);
- __wt_scr_free(&vb);
+err: __wt_scr_free(session, &kb);
+ __wt_scr_free(session, &vb);
return (ret);
}
@@ -305,7 +306,7 @@ __config_merge_format(
ret = __wt_strndup(session, build->data, build->size, config_ret);
-err: __wt_scr_free(&build);
+err: __wt_scr_free(session, &build);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/config/config_concat.c b/src/third_party/wiredtiger/src/config/config_concat.c
index 2faed21bfec..e872722a272 100644
--- a/src/third_party/wiredtiger/src/config/config_concat.c
+++ b/src/third_party/wiredtiger/src/config/config_concat.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -66,6 +67,6 @@ __wt_config_concat(
--tmp->size;
ret = __wt_strndup(session, tmp->data, tmp->size, config_ret);
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/config/config_def.c b/src/third_party/wiredtiger/src/config/config_def.c
index b45cdf0b75a..9d2e5ba9c86 100644
--- a/src/third_party/wiredtiger/src/config/config_def.c
+++ b/src/third_party/wiredtiger/src/config/config_def.c
@@ -345,6 +345,7 @@ static const WT_CONFIG_CHECK confchk_wiredtiger_open[] = {
{ "mmap", "boolean", NULL, NULL },
{ "multiprocess", "boolean", NULL, NULL },
{ "session_max", "int", "min=1", NULL },
+ { "session_scratch_max", "int", NULL, NULL },
{ "shared_cache", "category", NULL,
confchk_shared_cache_subconfigs },
{ "statistics", "list",
@@ -393,6 +394,7 @@ static const WT_CONFIG_CHECK confchk_wiredtiger_open_all[] = {
{ "mmap", "boolean", NULL, NULL },
{ "multiprocess", "boolean", NULL, NULL },
{ "session_max", "int", "min=1", NULL },
+ { "session_scratch_max", "int", NULL, NULL },
{ "shared_cache", "category", NULL,
confchk_shared_cache_subconfigs },
{ "statistics", "list",
@@ -439,6 +441,7 @@ static const WT_CONFIG_CHECK confchk_wiredtiger_open_basecfg[] = {
{ "mmap", "boolean", NULL, NULL },
{ "multiprocess", "boolean", NULL, NULL },
{ "session_max", "int", "min=1", NULL },
+ { "session_scratch_max", "int", NULL, NULL },
{ "shared_cache", "category", NULL,
confchk_shared_cache_subconfigs },
{ "statistics", "list",
@@ -484,6 +487,7 @@ static const WT_CONFIG_CHECK confchk_wiredtiger_open_usercfg[] = {
{ "mmap", "boolean", NULL, NULL },
{ "multiprocess", "boolean", NULL, NULL },
{ "session_max", "int", "min=1", NULL },
+ { "session_scratch_max", "int", NULL, NULL },
{ "shared_cache", "category", NULL,
confchk_shared_cache_subconfigs },
{ "statistics", "list",
@@ -666,11 +670,12 @@ static const WT_CONFIG_ENTRY config_entries[] = {
"file_extend=,hazard_max=1000,log=(archive=,compressor=,enabled=0"
",file_max=100MB,path=,prealloc=),lsm_manager=(merge=,"
"worker_thread_max=4),lsm_merge=,mmap=,multiprocess=0,"
- "session_max=100,shared_cache=(chunk=10MB,name=,reserve=0,"
- "size=500MB),statistics=none,statistics_log=(on_close=0,"
- "path=\"WiredTigerStat.%d.%H\",sources=,"
- "timestamp=\"%b %d %H:%M:%S\",wait=0),transaction_sync=(enabled=0"
- ",method=fsync),use_environment_priv=0,verbose=",
+ "session_max=100,session_scratch_max=2MB,shared_cache=(chunk=10MB"
+ ",name=,reserve=0,size=500MB),statistics=none,"
+ "statistics_log=(on_close=0,path=\"WiredTigerStat.%d.%H\","
+ "sources=,timestamp=\"%b %d %H:%M:%S\",wait=0),"
+ "transaction_sync=(enabled=0,method=fsync),use_environment_priv=0"
+ ",verbose=",
confchk_wiredtiger_open
},
{ "wiredtiger_open_all",
@@ -683,12 +688,12 @@ static const WT_CONFIG_ENTRY config_entries[] = {
"file_extend=,hazard_max=1000,log=(archive=,compressor=,enabled=0"
",file_max=100MB,path=,prealloc=),lsm_manager=(merge=,"
"worker_thread_max=4),lsm_merge=,mmap=,multiprocess=0,"
- "session_max=100,shared_cache=(chunk=10MB,name=,reserve=0,"
- "size=500MB),statistics=none,statistics_log=(on_close=0,"
- "path=\"WiredTigerStat.%d.%H\",sources=,"
- "timestamp=\"%b %d %H:%M:%S\",wait=0),transaction_sync=(enabled=0"
- ",method=fsync),use_environment_priv=0,verbose=,version=(major=0,"
- "minor=0)",
+ "session_max=100,session_scratch_max=2MB,shared_cache=(chunk=10MB"
+ ",name=,reserve=0,size=500MB),statistics=none,"
+ "statistics_log=(on_close=0,path=\"WiredTigerStat.%d.%H\","
+ "sources=,timestamp=\"%b %d %H:%M:%S\",wait=0),"
+ "transaction_sync=(enabled=0,method=fsync),use_environment_priv=0"
+ ",verbose=,version=(major=0,minor=0)",
confchk_wiredtiger_open_all
},
{ "wiredtiger_open_basecfg",
@@ -700,9 +705,10 @@ static const WT_CONFIG_ENTRY config_entries[] = {
"extensions=,file_extend=,hazard_max=1000,log=(archive=,"
"compressor=,enabled=0,file_max=100MB,path=,prealloc=),"
"lsm_manager=(merge=,worker_thread_max=4),lsm_merge=,mmap=,"
- "multiprocess=0,session_max=100,shared_cache=(chunk=10MB,name=,"
- "reserve=0,size=500MB),statistics=none,statistics_log=(on_close=0"
- ",path=\"WiredTigerStat.%d.%H\",sources=,"
+ "multiprocess=0,session_max=100,session_scratch_max=2MB,"
+ "shared_cache=(chunk=10MB,name=,reserve=0,size=500MB),"
+ "statistics=none,statistics_log=(on_close=0,"
+ "path=\"WiredTigerStat.%d.%H\",sources=,"
"timestamp=\"%b %d %H:%M:%S\",wait=0),transaction_sync=(enabled=0"
",method=fsync),verbose=,version=(major=0,minor=0)",
confchk_wiredtiger_open_basecfg
@@ -716,9 +722,10 @@ static const WT_CONFIG_ENTRY config_entries[] = {
"extensions=,file_extend=,hazard_max=1000,log=(archive=,"
"compressor=,enabled=0,file_max=100MB,path=,prealloc=),"
"lsm_manager=(merge=,worker_thread_max=4),lsm_merge=,mmap=,"
- "multiprocess=0,session_max=100,shared_cache=(chunk=10MB,name=,"
- "reserve=0,size=500MB),statistics=none,statistics_log=(on_close=0"
- ",path=\"WiredTigerStat.%d.%H\",sources=,"
+ "multiprocess=0,session_max=100,session_scratch_max=2MB,"
+ "shared_cache=(chunk=10MB,name=,reserve=0,size=500MB),"
+ "statistics=none,statistics_log=(on_close=0,"
+ "path=\"WiredTigerStat.%d.%H\",sources=,"
"timestamp=\"%b %d %H:%M:%S\",wait=0),transaction_sync=(enabled=0"
",method=fsync),verbose=",
confchk_wiredtiger_open_usercfg
diff --git a/src/third_party/wiredtiger/src/config/config_ext.c b/src/third_party/wiredtiger/src/config/config_ext.c
index 26b3799d61c..5102f354b02 100644
--- a/src/third_party/wiredtiger/src/config/config_ext.c
+++ b/src/third_party/wiredtiger/src/config/config_ext.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/config/config_upgrade.c b/src/third_party/wiredtiger/src/config/config_upgrade.c
index 24297df839b..0bca1392b51 100644
--- a/src/third_party/wiredtiger/src/config/config_upgrade.c
+++ b/src/third_party/wiredtiger/src/config/config_upgrade.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/conn/api_version.c b/src/third_party/wiredtiger/src/conn/api_version.c
index 1355220c585..6293d221417 100644
--- a/src/third_party/wiredtiger/src/conn/api_version.c
+++ b/src/third_party/wiredtiger/src/conn/api_version.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/conn/conn_api.c b/src/third_party/wiredtiger/src/conn/conn_api.c
index c878024edb4..5be55a77f24 100644
--- a/src/third_party/wiredtiger/src/conn/conn_api.c
+++ b/src/third_party/wiredtiger/src/conn/conn_api.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -263,8 +264,8 @@ __conn_load_extensions(WT_SESSION_IMPL *session, const char *cfg[])
}
WT_ERR_NOTFOUND_OK(ret);
-err: __wt_scr_free(&expath);
- __wt_scr_free(&exconfig);
+err: __wt_scr_free(session, &expath);
+ __wt_scr_free(session, &exconfig);
return (ret);
}
@@ -1576,6 +1577,9 @@ wiredtiger_open(const char *home, WT_EVENT_HANDLER *event_handler,
WT_ERR(__wt_config_gets(session, cfg, "session_max", &cval));
conn->session_size = (uint32_t)cval.val + WT_NUM_INTERNAL_SESSIONS;
+ WT_ERR(__wt_config_gets(session, cfg, "session_scratch_max", &cval));
+ conn->session_scratch_max = (size_t)cval.val;
+
WT_ERR(__wt_config_gets(session, cfg, "checkpoint_sync", &cval));
if (cval.val)
F_SET(conn, WT_CONN_CKPT_SYNC);
diff --git a/src/third_party/wiredtiger/src/conn/conn_cache.c b/src/third_party/wiredtiger/src/conn/conn_cache.c
index 61bd4447abf..cf129531dd4 100644
--- a/src/third_party/wiredtiger/src/conn/conn_cache.c
+++ b/src/third_party/wiredtiger/src/conn/conn_cache.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/conn/conn_cache_pool.c b/src/third_party/wiredtiger/src/conn/conn_cache_pool.c
index edd6f01d52c..861bafed900 100644
--- a/src/third_party/wiredtiger/src/conn/conn_cache_pool.c
+++ b/src/third_party/wiredtiger/src/conn/conn_cache_pool.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/conn/conn_ckpt.c b/src/third_party/wiredtiger/src/conn/conn_ckpt.c
index 40b103d6f24..fa3dfacad7e 100644
--- a/src/third_party/wiredtiger/src/conn/conn_ckpt.c
+++ b/src/third_party/wiredtiger/src/conn/conn_ckpt.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -60,7 +61,7 @@ __ckpt_server_config(WT_SESSION_IMPL *session, const char **cfg, int *startp)
conn->ckpt_config = p;
}
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/conn/conn_dhandle.c b/src/third_party/wiredtiger/src/conn/conn_dhandle.c
index 184fac26d7c..8ed656d6416 100644
--- a/src/third_party/wiredtiger/src/conn/conn_dhandle.c
+++ b/src/third_party/wiredtiger/src/conn/conn_dhandle.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/conn/conn_handle.c b/src/third_party/wiredtiger/src/conn/conn_handle.c
index a29453b962a..69d0f0fcba7 100644
--- a/src/third_party/wiredtiger/src/conn/conn_handle.c
+++ b/src/third_party/wiredtiger/src/conn/conn_handle.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/conn/conn_log.c b/src/third_party/wiredtiger/src/conn/conn_log.c
index 7c0b21881fc..2799a58f327 100644
--- a/src/third_party/wiredtiger/src/conn/conn_log.c
+++ b/src/third_party/wiredtiger/src/conn/conn_log.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/conn/conn_open.c b/src/third_party/wiredtiger/src/conn/conn_open.c
index 7b7a06c9584..b425376d6ae 100644
--- a/src/third_party/wiredtiger/src/conn/conn_open.c
+++ b/src/third_party/wiredtiger/src/conn/conn_open.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/conn/conn_stat.c b/src/third_party/wiredtiger/src/conn/conn_stat.c
index d296b58780e..2d8395c0517 100644
--- a/src/third_party/wiredtiger/src/conn/conn_stat.c
+++ b/src/third_party/wiredtiger/src/conn/conn_stat.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -180,7 +181,7 @@ __statlog_dump(WT_SESSION_IMPL *session, const char *name, int conn_stats)
break;
}
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
return (ret);
}
@@ -371,7 +372,7 @@ __wt_statlog_log_one(WT_SESSION_IMPL *session)
WT_RET(__wt_scr_alloc(session, strlen(conn->stat_path) + 128, &tmp));
WT_ERR(__statlog_log_one(session, NULL, tmp));
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/conn/conn_sweep.c b/src/third_party/wiredtiger/src/conn/conn_sweep.c
index 5916043e44f..01f08aa5f07 100644
--- a/src/third_party/wiredtiger/src/conn/conn_sweep.c
+++ b/src/third_party/wiredtiger/src/conn/conn_sweep.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/cursor/cur_backup.c b/src/third_party/wiredtiger/src/cursor/cur_backup.c
index 2ff6e614ae1..3c4c5322534 100644
--- a/src/third_party/wiredtiger/src/cursor/cur_backup.c
+++ b/src/third_party/wiredtiger/src/cursor/cur_backup.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -447,7 +448,7 @@ __backup_uri(WT_SESSION_IMPL *session,
}
WT_ERR_NOTFOUND_OK(ret);
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/cursor/cur_bulk.c b/src/third_party/wiredtiger/src/cursor/cur_bulk.c
index 96a45a7e629..b38821f99ff 100644
--- a/src/third_party/wiredtiger/src/cursor/cur_bulk.c
+++ b/src/third_party/wiredtiger/src/cursor/cur_bulk.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -126,8 +127,8 @@ __bulk_row_keycmp_err(WT_CURSOR_BULK *cbulk)
(int)a->size, (const char *)a->data,
(int)b->size, (const char *)b->data);
-err: __wt_scr_free(&a);
- __wt_scr_free(&b);
+err: __wt_scr_free(session, &a);
+ __wt_scr_free(session, &b);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/cursor/cur_config.c b/src/third_party/wiredtiger/src/cursor/cur_config.c
index 297e030c6dc..f011f6db126 100644
--- a/src/third_party/wiredtiger/src/cursor/cur_config.c
+++ b/src/third_party/wiredtiger/src/cursor/cur_config.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/cursor/cur_ds.c b/src/third_party/wiredtiger/src/cursor/cur_ds.c
index 6dd3fa76e23..c8b8f6c4547 100644
--- a/src/third_party/wiredtiger/src/cursor/cur_ds.c
+++ b/src/third_party/wiredtiger/src/cursor/cur_ds.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/cursor/cur_dump.c b/src/third_party/wiredtiger/src/cursor/cur_dump.c
index d632607de29..2be1d91f0f3 100644
--- a/src/third_party/wiredtiger/src/cursor/cur_dump.c
+++ b/src/third_party/wiredtiger/src/cursor/cur_dump.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/cursor/cur_file.c b/src/third_party/wiredtiger/src/cursor/cur_file.c
index 5d6072ceb3e..10d1151c30c 100644
--- a/src/third_party/wiredtiger/src/cursor/cur_file.c
+++ b/src/third_party/wiredtiger/src/cursor/cur_file.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/cursor/cur_index.c b/src/third_party/wiredtiger/src/cursor/cur_index.c
index d9b6815274e..007f3a5ae5b 100644
--- a/src/third_party/wiredtiger/src/cursor/cur_index.c
+++ b/src/third_party/wiredtiger/src/cursor/cur_index.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -442,6 +443,6 @@ err: WT_TRET(__curindex_close(cursor));
*cursorp = NULL;
}
- __wt_scr_free(&tmp);
+ __wt_scr_free(session, &tmp);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/cursor/cur_json.c b/src/third_party/wiredtiger/src/cursor/cur_json.c
index f4459819259..67daf377f88 100644
--- a/src/third_party/wiredtiger/src/cursor/cur_json.c
+++ b/src/third_party/wiredtiger/src/cursor/cur_json.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/cursor/cur_log.c b/src/third_party/wiredtiger/src/cursor/cur_log.c
index ffeeb6aa95c..04ab1e2a14a 100644
--- a/src/third_party/wiredtiger/src/cursor/cur_log.c
+++ b/src/third_party/wiredtiger/src/cursor/cur_log.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -291,9 +292,9 @@ __curlog_close(WT_CURSOR *cursor)
WT_TRET(__curlog_reset(cursor));
__wt_free(session, cl->cur_lsn);
__wt_free(session, cl->next_lsn);
- __wt_scr_free(&cl->logrec);
- __wt_scr_free(&cl->opkey);
- __wt_scr_free(&cl->opvalue);
+ __wt_scr_free(session, &cl->logrec);
+ __wt_scr_free(session, &cl->opkey);
+ __wt_scr_free(session, &cl->opvalue);
WT_TRET(__wt_cursor_close(cursor));
err: API_END_RET(session, ret);
@@ -362,9 +363,9 @@ err: if (F_ISSET(cursor, WT_CURSTD_OPEN))
else {
__wt_free(session, cl->cur_lsn);
__wt_free(session, cl->next_lsn);
- __wt_scr_free(&cl->logrec);
- __wt_scr_free(&cl->opkey);
- __wt_scr_free(&cl->opvalue);
+ __wt_scr_free(session, &cl->logrec);
+ __wt_scr_free(session, &cl->opkey);
+ __wt_scr_free(session, &cl->opvalue);
/*
* NOTE: We cannot get on the error path with the
* readlock held. No need to unlock it unless that
diff --git a/src/third_party/wiredtiger/src/cursor/cur_metadata.c b/src/third_party/wiredtiger/src/cursor/cur_metadata.c
index df7c7af2ce0..618c678558a 100644
--- a/src/third_party/wiredtiger/src/cursor/cur_metadata.c
+++ b/src/third_party/wiredtiger/src/cursor/cur_metadata.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/cursor/cur_stat.c b/src/third_party/wiredtiger/src/cursor/cur_stat.c
index cbea3e50a56..f7effb87a4f 100644
--- a/src/third_party/wiredtiger/src/cursor/cur_stat.c
+++ b/src/third_party/wiredtiger/src/cursor/cur_stat.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/cursor/cur_std.c b/src/third_party/wiredtiger/src/cursor/cur_std.c
index cba83b1d088..1470cb37100 100644
--- a/src/third_party/wiredtiger/src/cursor/cur_std.c
+++ b/src/third_party/wiredtiger/src/cursor/cur_std.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/cursor/cur_table.c b/src/third_party/wiredtiger/src/cursor/cur_table.c
index 9f8fa089648..4eb362cfcd4 100644
--- a/src/third_party/wiredtiger/src/cursor/cur_table.c
+++ b/src/third_party/wiredtiger/src/cursor/cur_table.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -579,7 +580,7 @@ __curtable_update(WT_CURSOR *cursor)
WT_ERR(__apply_idx(ctable, offsetof(WT_CURSOR, insert), 1));
err: CURSOR_UPDATE_API_END(session, ret);
- __wt_scr_free(&value_copy);
+ __wt_scr_free(session, &value_copy);
return (ret);
}
@@ -688,7 +689,7 @@ __wt_table_range_truncate(WT_CURSOR_TABLE *start, WT_CURSOR_TABLE *stop)
(start == NULL) ? NULL : start->cg_cursors[i],
(stop == NULL) ? NULL : stop->cg_cursors[i]));
-err: __wt_scr_free(&key);
+err: __wt_scr_free(session, &key);
return (ret);
}
@@ -956,6 +957,6 @@ err: WT_TRET(__curtable_close(cursor));
*cursorp = NULL;
}
- __wt_scr_free(&tmp);
+ __wt_scr_free(session, &tmp);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/evict/evict_file.c b/src/third_party/wiredtiger/src/evict/evict_file.c
index 0750135dcec..553acc988f0 100644
--- a/src/third_party/wiredtiger/src/evict/evict_file.c
+++ b/src/third_party/wiredtiger/src/evict/evict_file.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/evict/evict_lru.c b/src/third_party/wiredtiger/src/evict/evict_lru.c
index 69fa1f85c93..60a5f82f233 100644
--- a/src/third_party/wiredtiger/src/evict/evict_lru.c
+++ b/src/third_party/wiredtiger/src/evict/evict_lru.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/evict/evict_page.c b/src/third_party/wiredtiger/src/evict/evict_page.c
index 4e96898fd92..aca3dc11ee9 100644
--- a/src/third_party/wiredtiger/src/evict/evict_page.c
+++ b/src/third_party/wiredtiger/src/evict/evict_page.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/api.h b/src/third_party/wiredtiger/src/include/api.h
index 1362f65750d..e610b3b3e1b 100644
--- a/src/third_party/wiredtiger/src/include/api.h
+++ b/src/third_party/wiredtiger/src/include/api.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/async.h b/src/third_party/wiredtiger/src/include/async.h
index 8565874c2f3..88ecad6eb2c 100644
--- a/src/third_party/wiredtiger/src/include/async.h
+++ b/src/third_party/wiredtiger/src/include/async.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/bitstring.i b/src/third_party/wiredtiger/src/include/bitstring.i
index 95af6731bf9..c548c12761d 100644
--- a/src/third_party/wiredtiger/src/include/bitstring.i
+++ b/src/third_party/wiredtiger/src/include/bitstring.i
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/src/include/block.h b/src/third_party/wiredtiger/src/include/block.h
index 10fa51243ac..f4677236d8b 100644
--- a/src/third_party/wiredtiger/src/include/block.h
+++ b/src/third_party/wiredtiger/src/include/block.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/bloom.h b/src/third_party/wiredtiger/src/include/bloom.h
index baf7ec72f47..a673ee9add2 100644
--- a/src/third_party/wiredtiger/src/include/bloom.h
+++ b/src/third_party/wiredtiger/src/include/bloom.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/btmem.h b/src/third_party/wiredtiger/src/include/btmem.h
index 72feb3dce8f..e1fc72677c5 100644
--- a/src/third_party/wiredtiger/src/include/btmem.h
+++ b/src/third_party/wiredtiger/src/include/btmem.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/btree.h b/src/third_party/wiredtiger/src/include/btree.h
index e7c1826bda9..fa01dd5edc2 100644
--- a/src/third_party/wiredtiger/src/include/btree.h
+++ b/src/third_party/wiredtiger/src/include/btree.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/btree.i b/src/third_party/wiredtiger/src/include/btree.i
index 6c42155fefb..a333e4af565 100644
--- a/src/third_party/wiredtiger/src/include/btree.i
+++ b/src/third_party/wiredtiger/src/include/btree.i
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/buf.i b/src/third_party/wiredtiger/src/include/buf.i
index 09bee9ff831..b8849396f01 100644
--- a/src/third_party/wiredtiger/src/include/buf.i
+++ b/src/third_party/wiredtiger/src/include/buf.i
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -119,13 +120,20 @@ __wt_buf_free(WT_SESSION_IMPL *session, WT_ITEM *buf)
* Release a scratch buffer.
*/
static inline void
-__wt_scr_free(WT_ITEM **bufp)
+__wt_scr_free(WT_SESSION_IMPL *session, WT_ITEM **bufp)
{
WT_ITEM *buf;
if ((buf = *bufp) != NULL) {
*bufp = NULL;
+ if (session->scratch_cached + buf->memsize >=
+ S2C(session)->session_scratch_max) {
+ __wt_free(session, buf->mem);
+ buf->memsize = 0;
+ } else
+ session->scratch_cached += buf->memsize;
+
buf->data = NULL;
buf->size = 0;
F_CLR(buf, WT_ITEM_INUSE);
diff --git a/src/third_party/wiredtiger/src/include/cache.h b/src/third_party/wiredtiger/src/include/cache.h
index cf688b3993f..75219e5b413 100644
--- a/src/third_party/wiredtiger/src/include/cache.h
+++ b/src/third_party/wiredtiger/src/include/cache.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/cache.i b/src/third_party/wiredtiger/src/include/cache.i
index 9c444fae1ee..b997781272a 100644
--- a/src/third_party/wiredtiger/src/include/cache.i
+++ b/src/third_party/wiredtiger/src/include/cache.i
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/cell.i b/src/third_party/wiredtiger/src/include/cell.i
index 42c7c07a30c..77e9fa1e3c1 100644
--- a/src/third_party/wiredtiger/src/include/cell.i
+++ b/src/third_party/wiredtiger/src/include/cell.i
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/column.i b/src/third_party/wiredtiger/src/include/column.i
index 42c3664323d..bf12a48a3e4 100644
--- a/src/third_party/wiredtiger/src/include/column.i
+++ b/src/third_party/wiredtiger/src/include/column.i
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/compact.h b/src/third_party/wiredtiger/src/include/compact.h
index aa34eab4d24..0698bf7b1a4 100644
--- a/src/third_party/wiredtiger/src/include/compact.h
+++ b/src/third_party/wiredtiger/src/include/compact.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/config.h b/src/third_party/wiredtiger/src/include/config.h
index b9c4c97fa00..277a22063d1 100644
--- a/src/third_party/wiredtiger/src/include/config.h
+++ b/src/third_party/wiredtiger/src/include/config.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/connection.h b/src/third_party/wiredtiger/src/include/connection.h
index ee6335a879d..c8a3ae6e291 100644
--- a/src/third_party/wiredtiger/src/include/connection.h
+++ b/src/third_party/wiredtiger/src/include/connection.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -186,6 +187,8 @@ struct __wt_connection_impl {
uint32_t session_size; /* Session array size */
uint32_t session_cnt; /* Session count */
+ size_t session_scratch_max; /* Max scratch memory per session */
+
/*
* WiredTiger allocates space for a fixed number of hazard pointers
* in each thread of control.
diff --git a/src/third_party/wiredtiger/src/include/cursor.h b/src/third_party/wiredtiger/src/include/cursor.h
index 1013128c644..0fc4b883a16 100644
--- a/src/third_party/wiredtiger/src/include/cursor.h
+++ b/src/third_party/wiredtiger/src/include/cursor.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/cursor.i b/src/third_party/wiredtiger/src/include/cursor.i
index 737ac8dcdba..ae6aafdd638 100644
--- a/src/third_party/wiredtiger/src/include/cursor.i
+++ b/src/third_party/wiredtiger/src/include/cursor.i
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/dhandle.h b/src/third_party/wiredtiger/src/include/dhandle.h
index 1a6839b11fe..423bb84d00d 100644
--- a/src/third_party/wiredtiger/src/include/dhandle.h
+++ b/src/third_party/wiredtiger/src/include/dhandle.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/dlh.h b/src/third_party/wiredtiger/src/include/dlh.h
index 3974ae2792c..c374ec36fb0 100644
--- a/src/third_party/wiredtiger/src/include/dlh.h
+++ b/src/third_party/wiredtiger/src/include/dlh.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/error.h b/src/third_party/wiredtiger/src/include/error.h
index 9bccc80faec..b732776badf 100644
--- a/src/third_party/wiredtiger/src/include/error.h
+++ b/src/third_party/wiredtiger/src/include/error.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/gcc.h b/src/third_party/wiredtiger/src/include/gcc.h
index 008b19b743d..7b606ca80b1 100644
--- a/src/third_party/wiredtiger/src/include/gcc.h
+++ b/src/third_party/wiredtiger/src/include/gcc.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/hardware.h b/src/third_party/wiredtiger/src/include/hardware.h
index 720f512cf2d..1c3fb287e86 100644
--- a/src/third_party/wiredtiger/src/include/hardware.h
+++ b/src/third_party/wiredtiger/src/include/hardware.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/intpack.i b/src/third_party/wiredtiger/src/include/intpack.i
index 928e94a7dba..e1bcdb42ebd 100644
--- a/src/third_party/wiredtiger/src/include/intpack.i
+++ b/src/third_party/wiredtiger/src/include/intpack.i
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/lint.h b/src/third_party/wiredtiger/src/include/lint.h
index 7c0a103a8ee..9c560339e03 100644
--- a/src/third_party/wiredtiger/src/include/lint.h
+++ b/src/third_party/wiredtiger/src/include/lint.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/log.h b/src/third_party/wiredtiger/src/include/log.h
index 612327e84cc..17a3fd5a23a 100644
--- a/src/third_party/wiredtiger/src/include/log.h
+++ b/src/third_party/wiredtiger/src/include/log.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/lsm.h b/src/third_party/wiredtiger/src/include/lsm.h
index cf923236278..8038e5a34ab 100644
--- a/src/third_party/wiredtiger/src/include/lsm.h
+++ b/src/third_party/wiredtiger/src/include/lsm.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/meta.h b/src/third_party/wiredtiger/src/include/meta.h
index 56b0450ac0e..d40b2d836bf 100644
--- a/src/third_party/wiredtiger/src/include/meta.h
+++ b/src/third_party/wiredtiger/src/include/meta.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/misc.h b/src/third_party/wiredtiger/src/include/misc.h
index c2abaa08057..97fc2a47f20 100644
--- a/src/third_party/wiredtiger/src/include/misc.h
+++ b/src/third_party/wiredtiger/src/include/misc.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/misc.i b/src/third_party/wiredtiger/src/include/misc.i
index 73caed09c8c..53f08b3cbeb 100644
--- a/src/third_party/wiredtiger/src/include/misc.i
+++ b/src/third_party/wiredtiger/src/include/misc.i
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/msvc.h b/src/third_party/wiredtiger/src/include/msvc.h
index 17a4f1cb3ae..f176a40f2bf 100644
--- a/src/third_party/wiredtiger/src/include/msvc.h
+++ b/src/third_party/wiredtiger/src/include/msvc.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/mutex.h b/src/third_party/wiredtiger/src/include/mutex.h
index d1373b3d1ad..c5b7587303d 100644
--- a/src/third_party/wiredtiger/src/include/mutex.h
+++ b/src/third_party/wiredtiger/src/include/mutex.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/mutex.i b/src/third_party/wiredtiger/src/include/mutex.i
index 0d5a8586051..03450322616 100644
--- a/src/third_party/wiredtiger/src/include/mutex.i
+++ b/src/third_party/wiredtiger/src/include/mutex.i
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/os.h b/src/third_party/wiredtiger/src/include/os.h
index 810b7adfa48..8306d8db75f 100644
--- a/src/third_party/wiredtiger/src/include/os.h
+++ b/src/third_party/wiredtiger/src/include/os.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/os_windows.h b/src/third_party/wiredtiger/src/include/os_windows.h
index aa39f1f44ab..49dbc694895 100644
--- a/src/third_party/wiredtiger/src/include/os_windows.h
+++ b/src/third_party/wiredtiger/src/include/os_windows.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/packing.i b/src/third_party/wiredtiger/src/include/packing.i
index 15cdfaf0a70..9caa58ed2e1 100644
--- a/src/third_party/wiredtiger/src/include/packing.i
+++ b/src/third_party/wiredtiger/src/include/packing.i
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/posix.h b/src/third_party/wiredtiger/src/include/posix.h
index 36d69fb3ef5..14249e3ed37 100644
--- a/src/third_party/wiredtiger/src/include/posix.h
+++ b/src/third_party/wiredtiger/src/include/posix.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/schema.h b/src/third_party/wiredtiger/src/include/schema.h
index ac95a273fef..4d722a0068b 100644
--- a/src/third_party/wiredtiger/src/include/schema.h
+++ b/src/third_party/wiredtiger/src/include/schema.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/serial.i b/src/third_party/wiredtiger/src/include/serial.i
index 70dc6b8764d..5d1d37915d2 100644
--- a/src/third_party/wiredtiger/src/include/serial.i
+++ b/src/third_party/wiredtiger/src/include/serial.i
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/session.h b/src/third_party/wiredtiger/src/include/session.h
index e381ded8d16..c2ed3473dfb 100644
--- a/src/third_party/wiredtiger/src/include/session.h
+++ b/src/third_party/wiredtiger/src/include/session.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -96,6 +97,7 @@ struct __wt_session_impl {
WT_ITEM **scratch; /* Temporary memory for any function */
u_int scratch_alloc; /* Currently allocated */
+ size_t scratch_cached; /* Scratch bytes cached */
#ifdef HAVE_DIAGNOSTIC
/*
* It's hard to figure out from where a buffer was allocated after it's
diff --git a/src/third_party/wiredtiger/src/include/stat.h b/src/third_party/wiredtiger/src/include/stat.h
index 8bdc377ac44..53a4ce3af4a 100644
--- a/src/third_party/wiredtiger/src/include/stat.h
+++ b/src/third_party/wiredtiger/src/include/stat.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/txn.h b/src/third_party/wiredtiger/src/include/txn.h
index c28a9231750..36cb10c30d0 100644
--- a/src/third_party/wiredtiger/src/include/txn.h
+++ b/src/third_party/wiredtiger/src/include/txn.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/txn.i b/src/third_party/wiredtiger/src/include/txn.i
index 40ccf0ee59c..745a8f75a99 100644
--- a/src/third_party/wiredtiger/src/include/txn.i
+++ b/src/third_party/wiredtiger/src/include/txn.i
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/verify_build.h b/src/third_party/wiredtiger/src/include/verify_build.h
index 5f05db11c4b..6a97def12be 100644
--- a/src/third_party/wiredtiger/src/include/verify_build.h
+++ b/src/third_party/wiredtiger/src/include/verify_build.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/wiredtiger.in b/src/third_party/wiredtiger/src/include/wiredtiger.in
index f79938bb0db..ee9c58e4278 100644
--- a/src/third_party/wiredtiger/src/include/wiredtiger.in
+++ b/src/third_party/wiredtiger/src/include/wiredtiger.in
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/wiredtiger_ext.h b/src/third_party/wiredtiger/src/include/wiredtiger_ext.h
index 32661869311..ee27b32ddf7 100644
--- a/src/third_party/wiredtiger/src/include/wiredtiger_ext.h
+++ b/src/third_party/wiredtiger/src/include/wiredtiger_ext.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/include/wt_internal.h b/src/third_party/wiredtiger/src/include/wt_internal.h
index a6ea257a3ea..138b64a6e27 100644
--- a/src/third_party/wiredtiger/src/include/wt_internal.h
+++ b/src/third_party/wiredtiger/src/include/wt_internal.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/log/log.c b/src/third_party/wiredtiger/src/log/log.c
index cfe74ecef29..a3abb336f3d 100644
--- a/src/third_party/wiredtiger/src/log/log.c
+++ b/src/third_party/wiredtiger/src/log/log.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -415,7 +416,7 @@ __log_file_header(
if (end_lsn != NULL)
*end_lsn = tmp.slot_end_lsn;
-err: __wt_scr_free(&buf);
+err: __wt_scr_free(session, &buf);
return (ret);
}
@@ -440,7 +441,7 @@ __log_openfile(WT_SESSION_IMPL *session,
* XXX - if we are not creating the file, we should verify the
* log file header record for the magic number and versions here.
*/
-err: __wt_scr_free(&path);
+err: __wt_scr_free(session, &path);
return (ret);
}
@@ -488,8 +489,8 @@ __log_alloc_prealloc(WT_SESSION_IMPL *session, uint32_t to_num)
*/
WT_ERR(__wt_rename(session, from_path->data, to_path->data));
-err: __wt_scr_free(&from_path);
- __wt_scr_free(&to_path);
+err: __wt_scr_free(session, &from_path);
+ __wt_scr_free(session, &to_path);
if (logfiles != NULL)
__wt_log_files_free(session, logfiles, logcount);
return (ret);
@@ -612,8 +613,8 @@ __wt_log_allocfile(
*/
WT_ERR(__wt_rename(session, from_path->data, to_path->data));
-err: __wt_scr_free(&from_path);
- __wt_scr_free(&to_path);
+err: __wt_scr_free(session, &from_path);
+ __wt_scr_free(session, &to_path);
if (log_fh != NULL)
WT_TRET(__wt_close(session, log_fh));
return (ret);
@@ -635,7 +636,7 @@ __wt_log_remove(WT_SESSION_IMPL *session,
WT_ERR(__wt_verbose(session, WT_VERB_LOG,
"log_remove: remove log %s", (char *)path->data));
WT_ERR(__wt_remove(session, path->data));
-err: __wt_scr_free(&path);
+err: __wt_scr_free(session, &path);
return (ret);
}
@@ -1075,7 +1076,7 @@ __wt_log_read(WT_SESSION_IMPL *session, WT_ITEM *record, WT_LSN *lsnp,
*uncitem = swap;
}
-err: __wt_scr_free(&uncitem);
+err: __wt_scr_free(session, &uncitem);
return (ret);
}
@@ -1366,7 +1367,7 @@ advance:
&uncitem));
WT_ERR((*func)(session, uncitem, &rd_lsn,
cookie, firstrecord));
- __wt_scr_free(&uncitem);
+ __wt_scr_free(session, &uncitem);
} else
WT_ERR((*func)(session, &buf, &rd_lsn, cookie,
firstrecord));
@@ -1389,7 +1390,7 @@ err: WT_STAT_FAST_CONN_INCR(session, log_scans);
if (logfiles != NULL)
__wt_log_files_free(session, logfiles, logcount);
__wt_buf_free(session, &buf);
- __wt_scr_free(&uncitem);
+ __wt_scr_free(session, &uncitem);
/*
* If the caller wants one record and it is at the end of log,
* return WT_NOTFOUND.
@@ -1538,7 +1539,7 @@ __wt_log_write(WT_SESSION_IMPL *session, WT_ITEM *record, WT_LSN *lsnp,
}
ret = __log_write_internal(session, ip, lsnp, flags);
-err: __wt_scr_free(&citem);
+err: __wt_scr_free(session, &citem);
return (ret);
}
@@ -1716,6 +1717,6 @@ __wt_log_vprintf(WT_SESSION_IMPL *session, const char *fmt, va_list ap)
logrec->size += len;
WT_ERR(__wt_log_write(session, logrec, NULL, 0));
-err: __wt_scr_free(&logrec);
+err: __wt_scr_free(session, &logrec);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/log/log_auto.c b/src/third_party/wiredtiger/src/log/log_auto.c
index ca16da4f1ab..37ad8a370f9 100644
--- a/src/third_party/wiredtiger/src/log/log_auto.c
+++ b/src/third_party/wiredtiger/src/log/log_auto.c
@@ -18,8 +18,7 @@ __wt_logrec_alloc(WT_SESSION_IMPL *session, size_t size, WT_ITEM **logrecp)
void
__wt_logrec_free(WT_SESSION_IMPL *session, WT_ITEM **logrecp)
{
- WT_UNUSED(session);
- __wt_scr_free(logrecp);
+ __wt_scr_free(session, logrecp);
}
int
diff --git a/src/third_party/wiredtiger/src/log/log_slot.c b/src/third_party/wiredtiger/src/log/log_slot.c
index 85ceddf1d39..cb959f28bd7 100644
--- a/src/third_party/wiredtiger/src/log/log_slot.c
+++ b/src/third_party/wiredtiger/src/log/log_slot.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/lsm/lsm_cursor.c b/src/third_party/wiredtiger/src/lsm/lsm_cursor.c
index b7104eecb9d..2dfaea1ec3a 100644
--- a/src/third_party/wiredtiger/src/lsm/lsm_cursor.c
+++ b/src/third_party/wiredtiger/src/lsm/lsm_cursor.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -1314,7 +1315,7 @@ __clsm_insert(WT_CURSOR *cursor)
WT_ERR(__clsm_deleted_encode(session, &cursor->value, &value, &buf));
ret = __clsm_put(session, clsm, &cursor->key, &value, 0);
-err: __wt_scr_free(&buf);
+err: __wt_scr_free(session, &buf);
WT_TRET(__clsm_leave(clsm));
CURSOR_UPDATE_API_END(session, ret);
return (ret);
@@ -1347,7 +1348,7 @@ __clsm_update(WT_CURSOR *cursor)
ret = __clsm_put(session, clsm, &cursor->key, &value, 1);
}
-err: __wt_scr_free(&buf);
+err: __wt_scr_free(session, &buf);
WT_TRET(__clsm_leave(clsm));
CURSOR_UPDATE_API_END(session, ret);
return (ret);
diff --git a/src/third_party/wiredtiger/src/lsm/lsm_manager.c b/src/third_party/wiredtiger/src/lsm/lsm_manager.c
index 319bc734d6d..27bdf526ba2 100644
--- a/src/third_party/wiredtiger/src/lsm/lsm_manager.c
+++ b/src/third_party/wiredtiger/src/lsm/lsm_manager.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/lsm/lsm_merge.c b/src/third_party/wiredtiger/src/lsm/lsm_merge.c
index 8989e979a44..8724807432c 100644
--- a/src/third_party/wiredtiger/src/lsm/lsm_merge.c
+++ b/src/third_party/wiredtiger/src/lsm/lsm_merge.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/lsm/lsm_meta.c b/src/third_party/wiredtiger/src/lsm/lsm_meta.c
index 7fd77b64720..f9bf10ca208 100644
--- a/src/third_party/wiredtiger/src/lsm/lsm_meta.c
+++ b/src/third_party/wiredtiger/src/lsm/lsm_meta.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -234,6 +235,6 @@ __wt_lsm_meta_write(WT_SESSION_IMPL *session, WT_LSM_TREE *lsm_tree)
ret = __wt_metadata_update(session, lsm_tree->name, buf->data);
WT_ERR(ret);
-err: __wt_scr_free(&buf);
+err: __wt_scr_free(session, &buf);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/lsm/lsm_stat.c b/src/third_party/wiredtiger/src/lsm/lsm_stat.c
index bd11e982442..e994300d4d3 100644
--- a/src/third_party/wiredtiger/src/lsm/lsm_stat.c
+++ b/src/third_party/wiredtiger/src/lsm/lsm_stat.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -139,7 +140,7 @@ __curstat_lsm_init(
err: if (locked)
WT_TRET(__wt_lsm_tree_readunlock(session, lsm_tree));
__wt_lsm_tree_release(session, lsm_tree);
- __wt_scr_free(&uribuf);
+ __wt_scr_free(session, &uribuf);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/lsm/lsm_tree.c b/src/third_party/wiredtiger/src/lsm/lsm_tree.c
index 2e61bcbacc8..ed09d7544a8 100644
--- a/src/third_party/wiredtiger/src/lsm/lsm_tree.c
+++ b/src/third_party/wiredtiger/src/lsm/lsm_tree.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -171,7 +172,7 @@ __wt_lsm_tree_bloom_name(WT_SESSION_IMPL *session,
session, tmp, "file:%s-%06" PRIu32 ".bf", lsm_tree->filename, id));
WT_ERR(__wt_strndup(session, tmp->data, tmp->size, retp));
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
return (ret);
}
@@ -191,7 +192,7 @@ __wt_lsm_tree_chunk_name(WT_SESSION_IMPL *session,
session, tmp, "file:%s-%06" PRIu32 ".lsm", lsm_tree->filename, id));
WT_ERR(__wt_strndup(session, tmp->data, tmp->size, retp));
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
return (ret);
}
@@ -428,7 +429,7 @@ __wt_lsm_tree_create(WT_SESSION_IMPL *session,
if (0) {
err: WT_TRET(__lsm_tree_discard(session, lsm_tree, 0));
}
- __wt_scr_free(&buf);
+ __wt_scr_free(session, &buf);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/lsm/lsm_work_unit.c b/src/third_party/wiredtiger/src/lsm/lsm_work_unit.c
index 81a588af84d..980d910ff33 100644
--- a/src/third_party/wiredtiger/src/lsm/lsm_work_unit.c
+++ b/src/third_party/wiredtiger/src/lsm/lsm_work_unit.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/lsm/lsm_worker.c b/src/third_party/wiredtiger/src/lsm/lsm_worker.c
index 703453305ba..a376a81f4eb 100644
--- a/src/third_party/wiredtiger/src/lsm/lsm_worker.c
+++ b/src/third_party/wiredtiger/src/lsm/lsm_worker.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/meta/meta_apply.c b/src/third_party/wiredtiger/src/meta/meta_apply.c
index 313516148c0..8ef5cc38db4 100644
--- a/src/third_party/wiredtiger/src/meta/meta_apply.c
+++ b/src/third_party/wiredtiger/src/meta/meta_apply.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/meta/meta_ckpt.c b/src/third_party/wiredtiger/src/meta/meta_ckpt.c
index 303b49d7818..0a8557c7a33 100644
--- a/src/third_party/wiredtiger/src/meta/meta_ckpt.c
+++ b/src/third_party/wiredtiger/src/meta/meta_ckpt.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -299,7 +300,7 @@ __wt_meta_ckptlist_get(
err: __wt_meta_ckptlist_free(session, ckptbase);
}
__wt_free(session, config);
- __wt_scr_free(&buf);
+ __wt_scr_free(session, &buf);
return (ret);
}
@@ -453,7 +454,7 @@ __wt_meta_ckptlist_set(WT_SESSION_IMPL *session,
ckptlsn->file, (uintmax_t)ckptlsn->offset));
WT_ERR(__ckpt_set(session, fname, buf->mem));
-err: __wt_scr_free(&buf);
+err: __wt_scr_free(session, &buf);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/meta/meta_ext.c b/src/third_party/wiredtiger/src/meta/meta_ext.c
index 24fb3141738..423b7d2e76b 100644
--- a/src/third_party/wiredtiger/src/meta/meta_ext.c
+++ b/src/third_party/wiredtiger/src/meta/meta_ext.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/meta/meta_table.c b/src/third_party/wiredtiger/src/meta/meta_table.c
index 2df6e252f5b..fb568361f74 100644
--- a/src/third_party/wiredtiger/src/meta/meta_table.c
+++ b/src/third_party/wiredtiger/src/meta/meta_table.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/meta/meta_track.c b/src/third_party/wiredtiger/src/meta/meta_track.c
index 8cc8822b268..85ca1732586 100644
--- a/src/third_party/wiredtiger/src/meta/meta_track.c
+++ b/src/third_party/wiredtiger/src/meta/meta_track.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/meta/meta_turtle.c b/src/third_party/wiredtiger/src/meta/meta_turtle.c
index c7c2f7aa55c..9e0af69366e 100644
--- a/src/third_party/wiredtiger/src/meta/meta_turtle.c
+++ b/src/third_party/wiredtiger/src/meta/meta_turtle.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -37,7 +38,7 @@ __metadata_config(WT_SESSION_IMPL *session, char **metaconfp)
if (0) {
err: __wt_free(session, metaconf);
}
- __wt_scr_free(&buf);
+ __wt_scr_free(session, &buf);
return (ret);
}
@@ -100,8 +101,8 @@ __metadata_load_hot_backup(WT_SESSION_IMPL *session)
err: if (fp != NULL)
WT_TRET(fclose(fp) == 0 ? 0 : __wt_errno());
- __wt_scr_free(&key);
- __wt_scr_free(&value);
+ __wt_scr_free(session, &key);
+ __wt_scr_free(session, &value);
return (ret);
}
@@ -275,7 +276,7 @@ __wt_turtle_read(WT_SESSION_IMPL *session, const char *key, char **valuep)
err: if (fp != NULL)
WT_TRET(fclose(fp) == 0 ? 0 : __wt_errno());
- __wt_scr_free(&buf);
+ __wt_scr_free(session, &buf);
return (ret);
}
@@ -331,6 +332,6 @@ err: WT_TRET(__wt_remove(session, WT_METADATA_TURTLE_SET));
if (fh != NULL)
WT_TRET(__wt_close(session, fh));
- __wt_scr_free(&buf);
+ __wt_scr_free(session, &buf);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/os_posix/os_abort.c b/src/third_party/wiredtiger/src/os_posix/os_abort.c
index 3d99ffe20b2..5bb6aeb6e16 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_abort.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_abort.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_posix/os_alloc.c b/src/third_party/wiredtiger/src/os_posix/os_alloc.c
index f7344032a15..0795fe2fe0d 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_alloc.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_alloc.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_posix/os_dir.c b/src/third_party/wiredtiger/src/os_posix/os_dir.c
index 98b2d4926cd..5bf6e7349fe 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_dir.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_dir.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_posix/os_dlopen.c b/src/third_party/wiredtiger/src/os_posix/os_dlopen.c
index cb9fe314beb..a468e7ab49d 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_dlopen.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_dlopen.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_posix/os_errno.c b/src/third_party/wiredtiger/src/os_posix/os_errno.c
index 9290f7d651f..ed3451a9c1c 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_errno.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_errno.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_posix/os_exist.c b/src/third_party/wiredtiger/src/os_posix/os_exist.c
index 723f07026e1..3e51a98766a 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_exist.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_exist.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_posix/os_fallocate.c b/src/third_party/wiredtiger/src/os_posix/os_fallocate.c
index 899181b41d8..142374702a1 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_fallocate.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_fallocate.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_posix/os_filesize.c b/src/third_party/wiredtiger/src/os_posix/os_filesize.c
index 3692b135d73..b01fc91514b 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_filesize.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_filesize.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_posix/os_flock.c b/src/third_party/wiredtiger/src/os_posix/os_flock.c
index e9e653d73e6..69cd367dde3 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_flock.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_flock.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_posix/os_fsync.c b/src/third_party/wiredtiger/src/os_posix/os_fsync.c
index 8feb78426e2..b0c04e98258 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_fsync.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_fsync.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_posix/os_ftruncate.c b/src/third_party/wiredtiger/src/os_posix/os_ftruncate.c
index 3f3034de551..ce2527e87e2 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_ftruncate.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_ftruncate.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_posix/os_getenv.c b/src/third_party/wiredtiger/src/os_posix/os_getenv.c
index 37fe2af8501..e1e0051a120 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_getenv.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_getenv.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_posix/os_getline.c b/src/third_party/wiredtiger/src/os_posix/os_getline.c
index 7ef4065ac3b..7c4ee8d1746 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_getline.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_getline.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_posix/os_getopt.c b/src/third_party/wiredtiger/src/os_posix/os_getopt.c
index 1c25521dacd..486d85286bc 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_getopt.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_getopt.c
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/src/os_posix/os_map.c b/src/third_party/wiredtiger/src/os_posix/os_map.c
index be4d27e96a3..e95ccb0ade2 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_map.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_map.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_posix/os_mtx_cond.c b/src/third_party/wiredtiger/src/os_posix/os_mtx_cond.c
index 479a61db795..cf43b630997 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_mtx_cond.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_mtx_cond.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_posix/os_mtx_rw.c b/src/third_party/wiredtiger/src/os_posix/os_mtx_rw.c
index c6cfa9412a7..4cda976bea8 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_mtx_rw.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_mtx_rw.c
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/src/os_posix/os_once.c b/src/third_party/wiredtiger/src/os_posix/os_once.c
index 22eaf5f0ee5..bfe0b9819ac 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_once.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_once.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_posix/os_open.c b/src/third_party/wiredtiger/src/os_posix/os_open.c
index a0da1952101..e689e9d8dbf 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_open.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_open.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_posix/os_path.c b/src/third_party/wiredtiger/src/os_posix/os_path.c
index aed99d1d027..07b14b55b44 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_path.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_path.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_posix/os_priv.c b/src/third_party/wiredtiger/src/os_posix/os_priv.c
index 7d56359da4f..21549cad957 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_priv.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_priv.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_posix/os_remove.c b/src/third_party/wiredtiger/src/os_posix/os_remove.c
index a52a4db6bc7..371a8e50375 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_remove.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_remove.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_posix/os_rename.c b/src/third_party/wiredtiger/src/os_posix/os_rename.c
index ddbb59aaf37..811604e7f0f 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_rename.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_rename.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_posix/os_rw.c b/src/third_party/wiredtiger/src/os_posix/os_rw.c
index 4247fb30fd1..24d6d1aa879 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_rw.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_rw.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_posix/os_sleep.c b/src/third_party/wiredtiger/src/os_posix/os_sleep.c
index 665330a26e7..64a5f9e56af 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_sleep.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_sleep.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_posix/os_strtouq.c b/src/third_party/wiredtiger/src/os_posix/os_strtouq.c
index 97f9759f76f..0b7a540959c 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_strtouq.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_strtouq.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_posix/os_thread.c b/src/third_party/wiredtiger/src/os_posix/os_thread.c
index 7c447710b46..392f997f1ac 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_thread.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_thread.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_posix/os_time.c b/src/third_party/wiredtiger/src/os_posix/os_time.c
index 56f688a1e14..c52772e77e1 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_time.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_time.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_posix/os_yield.c b/src/third_party/wiredtiger/src/os_posix/os_yield.c
index 6af30803e81..297ec7deaee 100644
--- a/src/third_party/wiredtiger/src/os_posix/os_yield.c
+++ b/src/third_party/wiredtiger/src/os_posix/os_yield.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_win/os_dir.c b/src/third_party/wiredtiger/src/os_win/os_dir.c
index ab332e01186..33489bc2497 100644
--- a/src/third_party/wiredtiger/src/os_win/os_dir.c
+++ b/src/third_party/wiredtiger/src/os_win/os_dir.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -96,7 +97,7 @@ err:
if (findhandle != INVALID_HANDLE_VALUE)
(void)FindClose(findhandle);
__wt_free(session, path);
- __wt_scr_free(&pathbuf);
+ __wt_scr_free(session, &pathbuf);
if (ret == 0)
return (0);
diff --git a/src/third_party/wiredtiger/src/os_win/os_dlopen.c b/src/third_party/wiredtiger/src/os_win/os_dlopen.c
index 3fdd0c74b1f..0337c7cc368 100644
--- a/src/third_party/wiredtiger/src/os_win/os_dlopen.c
+++ b/src/third_party/wiredtiger/src/os_win/os_dlopen.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_win/os_errno.c b/src/third_party/wiredtiger/src/os_win/os_errno.c
index ce50106b0cc..e321912d829 100644
--- a/src/third_party/wiredtiger/src/os_win/os_errno.c
+++ b/src/third_party/wiredtiger/src/os_win/os_errno.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_win/os_exist.c b/src/third_party/wiredtiger/src/os_win/os_exist.c
index ab3805f19df..747ea7dfc27 100644
--- a/src/third_party/wiredtiger/src/os_win/os_exist.c
+++ b/src/third_party/wiredtiger/src/os_win/os_exist.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_win/os_fallocate.c b/src/third_party/wiredtiger/src/os_win/os_fallocate.c
index abe53c23a7b..9d0a86882c6 100644
--- a/src/third_party/wiredtiger/src/os_win/os_fallocate.c
+++ b/src/third_party/wiredtiger/src/os_win/os_fallocate.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_win/os_filesize.c b/src/third_party/wiredtiger/src/os_win/os_filesize.c
index 309ee1db40b..dfeadc31fc4 100644
--- a/src/third_party/wiredtiger/src/os_win/os_filesize.c
+++ b/src/third_party/wiredtiger/src/os_win/os_filesize.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_win/os_flock.c b/src/third_party/wiredtiger/src/os_win/os_flock.c
index 4b3ca34d65f..d551480ba4d 100644
--- a/src/third_party/wiredtiger/src/os_win/os_flock.c
+++ b/src/third_party/wiredtiger/src/os_win/os_flock.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_win/os_fsync.c b/src/third_party/wiredtiger/src/os_win/os_fsync.c
index 31a937f0334..7a01b5cd61d 100644
--- a/src/third_party/wiredtiger/src/os_win/os_fsync.c
+++ b/src/third_party/wiredtiger/src/os_win/os_fsync.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_win/os_ftruncate.c b/src/third_party/wiredtiger/src/os_win/os_ftruncate.c
index 5d87f1ce06a..e80308536f1 100644
--- a/src/third_party/wiredtiger/src/os_win/os_ftruncate.c
+++ b/src/third_party/wiredtiger/src/os_win/os_ftruncate.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_win/os_getenv.c b/src/third_party/wiredtiger/src/os_win/os_getenv.c
index 8cc94abb524..9b3a20abad7 100644
--- a/src/third_party/wiredtiger/src/os_win/os_getenv.c
+++ b/src/third_party/wiredtiger/src/os_win/os_getenv.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_win/os_map.c b/src/third_party/wiredtiger/src/os_win/os_map.c
index b3b4f0f7501..5c78f371889 100644
--- a/src/third_party/wiredtiger/src/os_win/os_map.c
+++ b/src/third_party/wiredtiger/src/os_win/os_map.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_win/os_mtx_cond.c b/src/third_party/wiredtiger/src/os_win/os_mtx_cond.c
index a33ab4e5c37..71ea8ed49a2 100644
--- a/src/third_party/wiredtiger/src/os_win/os_mtx_cond.c
+++ b/src/third_party/wiredtiger/src/os_win/os_mtx_cond.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_win/os_once.c b/src/third_party/wiredtiger/src/os_win/os_once.c
index 40640acf129..179c1bc97f7 100644
--- a/src/third_party/wiredtiger/src/os_win/os_once.c
+++ b/src/third_party/wiredtiger/src/os_win/os_once.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_win/os_open.c b/src/third_party/wiredtiger/src/os_win/os_open.c
index f9d47c5be5d..387c7d2597b 100644
--- a/src/third_party/wiredtiger/src/os_win/os_open.c
+++ b/src/third_party/wiredtiger/src/os_win/os_open.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_win/os_path.c b/src/third_party/wiredtiger/src/os_win/os_path.c
index 9f6b79c565c..89f05e238c4 100644
--- a/src/third_party/wiredtiger/src/os_win/os_path.c
+++ b/src/third_party/wiredtiger/src/os_win/os_path.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_win/os_priv.c b/src/third_party/wiredtiger/src/os_win/os_priv.c
index 7b5152b4652..b5dc1eb55fe 100644
--- a/src/third_party/wiredtiger/src/os_win/os_priv.c
+++ b/src/third_party/wiredtiger/src/os_win/os_priv.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_win/os_remove.c b/src/third_party/wiredtiger/src/os_win/os_remove.c
index d15ee929c00..fbf564877da 100644
--- a/src/third_party/wiredtiger/src/os_win/os_remove.c
+++ b/src/third_party/wiredtiger/src/os_win/os_remove.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_win/os_rename.c b/src/third_party/wiredtiger/src/os_win/os_rename.c
index 092f5d62a40..8c2784457c4 100644
--- a/src/third_party/wiredtiger/src/os_win/os_rename.c
+++ b/src/third_party/wiredtiger/src/os_win/os_rename.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_win/os_rw.c b/src/third_party/wiredtiger/src/os_win/os_rw.c
index 291533bc6bc..bafefcfba24 100644
--- a/src/third_party/wiredtiger/src/os_win/os_rw.c
+++ b/src/third_party/wiredtiger/src/os_win/os_rw.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_win/os_sleep.c b/src/third_party/wiredtiger/src/os_win/os_sleep.c
index b9a8cc2e545..9f8eafec903 100644
--- a/src/third_party/wiredtiger/src/os_win/os_sleep.c
+++ b/src/third_party/wiredtiger/src/os_win/os_sleep.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_win/os_snprintf.c b/src/third_party/wiredtiger/src/os_win/os_snprintf.c
index 70a11b84850..ebb14fd32e8 100644
--- a/src/third_party/wiredtiger/src/os_win/os_snprintf.c
+++ b/src/third_party/wiredtiger/src/os_win/os_snprintf.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_win/os_thread.c b/src/third_party/wiredtiger/src/os_win/os_thread.c
index 4d8cf89f264..3ecfe2796d5 100644
--- a/src/third_party/wiredtiger/src/os_win/os_thread.c
+++ b/src/third_party/wiredtiger/src/os_win/os_thread.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_win/os_time.c b/src/third_party/wiredtiger/src/os_win/os_time.c
index b49b738fe54..30fde045c54 100644
--- a/src/third_party/wiredtiger/src/os_win/os_time.c
+++ b/src/third_party/wiredtiger/src/os_win/os_time.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_win/os_vsnprintf.c b/src/third_party/wiredtiger/src/os_win/os_vsnprintf.c
index 055a45e5862..205b63751c7 100644
--- a/src/third_party/wiredtiger/src/os_win/os_vsnprintf.c
+++ b/src/third_party/wiredtiger/src/os_win/os_vsnprintf.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/os_win/os_yield.c b/src/third_party/wiredtiger/src/os_win/os_yield.c
index 970bfa139d0..dd3eb67de8b 100644
--- a/src/third_party/wiredtiger/src/os_win/os_yield.c
+++ b/src/third_party/wiredtiger/src/os_win/os_yield.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/packing/pack_api.c b/src/third_party/wiredtiger/src/packing/pack_api.c
index c0c1e53c8ca..efe999505bf 100644
--- a/src/third_party/wiredtiger/src/packing/pack_api.c
+++ b/src/third_party/wiredtiger/src/packing/pack_api.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/packing/pack_impl.c b/src/third_party/wiredtiger/src/packing/pack_impl.c
index 12b1582e6d0..0b699814fc1 100644
--- a/src/third_party/wiredtiger/src/packing/pack_impl.c
+++ b/src/third_party/wiredtiger/src/packing/pack_impl.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/packing/pack_stream.c b/src/third_party/wiredtiger/src/packing/pack_stream.c
index a35a3555458..739e803b88c 100644
--- a/src/third_party/wiredtiger/src/packing/pack_stream.c
+++ b/src/third_party/wiredtiger/src/packing/pack_stream.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/reconcile/rec_track.c b/src/third_party/wiredtiger/src/reconcile/rec_track.c
index fdf8ee6d68b..695b167f816 100644
--- a/src/third_party/wiredtiger/src/reconcile/rec_track.c
+++ b/src/third_party/wiredtiger/src/reconcile/rec_track.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -48,7 +49,7 @@ __ovfl_discard_verbose(
page,
__wt_addr_string(session, unpack->data, unpack->size, tmp)));
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
return (ret);
}
@@ -188,7 +189,7 @@ __ovfl_reuse_verbose(WT_SESSION_IMPL *session,
F_ISSET(reuse, WT_OVFL_REUSE_JUST_ADDED) ? "just-added" : "",
WT_MIN(reuse->value_size, 40), (char *)WT_OVFL_REUSE_VALUE(reuse)));
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
return (ret);
}
@@ -579,7 +580,7 @@ __ovfl_txnc_verbose(WT_SESSION_IMPL *session,
txnc->current,
WT_MIN(txnc->value_size, 40), (char *)WT_OVFL_TXNC_VALUE(txnc)));
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/reconcile/rec_write.c b/src/third_party/wiredtiger/src/reconcile/rec_write.c
index 6ce8247c2d4..5c3ed614850 100644
--- a/src/third_party/wiredtiger/src/reconcile/rec_write.c
+++ b/src/third_party/wiredtiger/src/reconcile/rec_write.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -1879,7 +1880,7 @@ __rec_split_row_promote(
}
ret = __wt_buf_set(session, key, r->cur->data, size);
-err: __wt_scr_free(&update);
+err: __wt_scr_free(session, &update);
return (ret);
}
@@ -2502,7 +2503,7 @@ __rec_raw_decompress(
WT_ASSERT(session, __wt_verify_dsk_image(
session, "[raw evict split]", tmp->data, dsk->mem_size, 0) == 0);
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
return (ret);
}
@@ -2672,7 +2673,7 @@ __rec_split_fixup(WT_SESSION_IMPL *session, WT_RECONCILE *r)
r->space_avail =
r->split_size - (WT_PAGE_HEADER_BYTE_SIZE(btree) + len);
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
return (ret);
}
@@ -2861,7 +2862,7 @@ skip_check_complete:
bnd->addr.size = (uint8_t)addr_size;
done:
-err: __wt_scr_free(&key);
+err: __wt_scr_free(session, &key);
return (ret);
}
@@ -3915,7 +3916,7 @@ compare: /*
/* Write the remnant page. */
ret = __rec_split_finish(session, r);
-err: __wt_scr_free(&orig);
+err: __wt_scr_free(session, &orig);
return (ret);
}
@@ -4564,8 +4565,8 @@ leaf_insert: /* Write any K/V pairs inserted into the page after this key. */
/* Write the remnant page. */
ret = __rec_split_finish(session, r);
-err: __wt_scr_free(&tmpkey);
- __wt_scr_free(&tmpval);
+err: __wt_scr_free(session, &tmpkey);
+ __wt_scr_free(session, &tmpval);
return (ret);
}
@@ -4919,7 +4920,7 @@ __rec_write_wrapup(WT_SESSION_IMPL *session, WT_RECONCILE *r, WT_PAGE *page)
break;
WT_ILLEGAL_VALUE_ERR(session);
}
-err: __wt_scr_free(&tkey);
+err: __wt_scr_free(session, &tkey);
WT_RET(ret);
}
if (r->bnd_next > r->bnd_next_max) {
@@ -5402,7 +5403,7 @@ __rec_cell_build_ovfl(WT_SESSION_IMPL *session,
kv->cell_len = __wt_cell_pack_ovfl(&kv->cell, type, rle, kv->buf.size);
kv->len = kv->cell_len + kv->buf.size;
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/schema/schema_create.c b/src/third_party/wiredtiger/src/schema/schema_create.c
index 7a1cf757093..c0f4f4bb57e 100644
--- a/src/third_party/wiredtiger/src/schema/schema_create.c
+++ b/src/third_party/wiredtiger/src/schema/schema_create.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -122,7 +123,7 @@ __create_file(WT_SESSION_IMPL *session,
else
WT_ERR(__wt_session_release_btree(session));
-err: __wt_scr_free(&val);
+err: __wt_scr_free(session, &val);
__wt_free(session, fileconf);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/schema/schema_drop.c b/src/third_party/wiredtiger/src/schema/schema_drop.c
index 9a74b26ffec..dfac4a172ef 100644
--- a/src/third_party/wiredtiger/src/schema/schema_drop.c
+++ b/src/third_party/wiredtiger/src/schema/schema_drop.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/schema/schema_list.c b/src/third_party/wiredtiger/src/schema/schema_list.c
index 1fbc52821a6..9d70e5b943a 100644
--- a/src/third_party/wiredtiger/src/schema/schema_list.c
+++ b/src/third_party/wiredtiger/src/schema/schema_list.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/schema/schema_open.c b/src/third_party/wiredtiger/src/schema/schema_open.c
index 4699fdeee02..81447b173ae 100644
--- a/src/third_party/wiredtiger/src/schema/schema_open.c
+++ b/src/third_party/wiredtiger/src/schema/schema_open.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -113,7 +114,7 @@ __wt_schema_open_colgroups(WT_SESSION_IMPL *session, WT_TABLE *table)
table->cg_complete = 1;
-err: __wt_scr_free(&buf);
+err: __wt_scr_free(session, &buf);
if (colgroup != NULL)
__wt_schema_destroy_colgroup(session, colgroup);
if (cgconfig != NULL)
@@ -241,8 +242,8 @@ __open_index(WT_SESSION_IMPL *session, WT_TABLE *table, WT_INDEX *idx)
table, table->colconf.str, table->colconf.len, 1, plan));
WT_ERR(__wt_strndup(session, plan->data, plan->size, &idx->value_plan));
-err: __wt_scr_free(&buf);
- __wt_scr_free(&plan);
+err: __wt_scr_free(session, &buf);
+ __wt_scr_free(session, &plan);
return (ret);
}
@@ -342,7 +343,7 @@ __wt_schema_open_index(WT_SESSION_IMPL *session,
table->idx_complete = 1;
}
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
if (idx != NULL)
WT_TRET(__wt_schema_destroy_index(session, idx));
if (cursor != NULL)
@@ -462,7 +463,7 @@ err: if (table != NULL)
WT_TRET(cursor->close(cursor));
__wt_free(session, tablename);
- __wt_scr_free(&buf);
+ __wt_scr_free(session, &buf);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/schema/schema_plan.c b/src/third_party/wiredtiger/src/schema/schema_plan.c
index efd5f8d69b7..918cbe68fcc 100644
--- a/src/third_party/wiredtiger/src/schema/schema_plan.c
+++ b/src/third_party/wiredtiger/src/schema/schema_plan.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/schema/schema_project.c b/src/third_party/wiredtiger/src/schema/schema_project.c
index 9aff4c8dded..c9b69b3c922 100644
--- a/src/third_party/wiredtiger/src/schema/schema_project.c
+++ b/src/third_party/wiredtiger/src/schema/schema_project.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/schema/schema_rename.c b/src/third_party/wiredtiger/src/schema/schema_rename.c
index 549ccd130e5..38124754cd5 100644
--- a/src/third_party/wiredtiger/src/schema/schema_rename.c
+++ b/src/third_party/wiredtiger/src/schema/schema_rename.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -163,10 +164,10 @@ __rename_tree(WT_SESSION_IMPL *session,
/* Rename the file. */
WT_ERR(__wt_schema_rename(session, os->data, ns->data, cfg));
-err: __wt_scr_free(&nn);
- __wt_scr_free(&ns);
- __wt_scr_free(&nv);
- __wt_scr_free(&os);
+err: __wt_scr_free(session, &nn);
+ __wt_scr_free(session, &ns);
+ __wt_scr_free(session, &nv);
+ __wt_scr_free(session, &os);
__wt_free(session, value);
table->name = olduri;
return (ret);
diff --git a/src/third_party/wiredtiger/src/schema/schema_stat.c b/src/third_party/wiredtiger/src/schema/schema_stat.c
index 06b3ac5ca6e..dea797f823d 100644
--- a/src/third_party/wiredtiger/src/schema/schema_stat.c
+++ b/src/third_party/wiredtiger/src/schema/schema_stat.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -25,7 +26,7 @@ __wt_curstat_colgroup_init(WT_SESSION_IMPL *session,
WT_ERR(__wt_buf_fmt(session, buf, "statistics:%s", colgroup->source));
ret = __wt_curstat_init(session, buf->data, cfg, cst);
-err: __wt_scr_free(&buf);
+err: __wt_scr_free(session, &buf);
return (ret);
}
@@ -47,7 +48,7 @@ __wt_curstat_index_init(WT_SESSION_IMPL *session,
WT_ERR(__wt_buf_fmt(session, buf, "statistics:%s", idx->source));
ret = __wt_curstat_init(session, buf->data, cfg, cst);
-err: __wt_scr_free(&buf);
+err: __wt_scr_free(session, &buf);
return (ret);
}
@@ -109,6 +110,6 @@ __wt_curstat_table_init(WT_SESSION_IMPL *session,
err: __wt_schema_release_table(session, table);
- __wt_scr_free(&buf);
+ __wt_scr_free(session, &buf);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/schema/schema_truncate.c b/src/third_party/wiredtiger/src/schema/schema_truncate.c
index 6fca7628cae..383e860cc7b 100644
--- a/src/third_party/wiredtiger/src/schema/schema_truncate.c
+++ b/src/third_party/wiredtiger/src/schema/schema_truncate.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/schema/schema_util.c b/src/third_party/wiredtiger/src/schema/schema_util.c
index 263f56f1c41..1e810e8adc9 100644
--- a/src/third_party/wiredtiger/src/schema/schema_util.c
+++ b/src/third_party/wiredtiger/src/schema/schema_util.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -79,6 +80,6 @@ __wt_name_check(WT_SESSION_IMPL *session, const char *str, size_t len)
ret = __wt_str_name_check(session, tmp->data);
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/schema/schema_worker.c b/src/third_party/wiredtiger/src/schema/schema_worker.c
index 7660a9b5054..94eb3170175 100644
--- a/src/third_party/wiredtiger/src/schema/schema_worker.c
+++ b/src/third_party/wiredtiger/src/schema/schema_worker.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/session/session_api.c b/src/third_party/wiredtiger/src/session/session_api.c
index 0effc1a7248..3ab5e0acab1 100644
--- a/src/third_party/wiredtiger/src/session/session_api.c
+++ b/src/third_party/wiredtiger/src/session/session_api.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/session/session_compact.c b/src/third_party/wiredtiger/src/session/session_compact.c
index 6eca8a58d13..acb8b730a7d 100644
--- a/src/third_party/wiredtiger/src/session/session_compact.c
+++ b/src/third_party/wiredtiger/src/session/session_compact.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -194,7 +195,7 @@ __compact_file(WT_SESSION_IMPL *session, const char *uri, const char *cfg[])
WT_ERR(__session_compact_check_timeout(session, start_time));
}
-err: __wt_scr_free(&t);
+err: __wt_scr_free(session, &t);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/session/session_dhandle.c b/src/third_party/wiredtiger/src/session/session_dhandle.c
index 85483c7c8ae..13af615930b 100644
--- a/src/third_party/wiredtiger/src/session/session_dhandle.c
+++ b/src/third_party/wiredtiger/src/session/session_dhandle.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/session/session_salvage.c b/src/third_party/wiredtiger/src/session/session_salvage.c
index 1512c6515ec..07f68e4c194 100644
--- a/src/third_party/wiredtiger/src/session/session_salvage.c
+++ b/src/third_party/wiredtiger/src/session/session_salvage.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/support/cksum.c b/src/third_party/wiredtiger/src/support/cksum.c
index fc4725bcfbc..a8b5823100d 100644
--- a/src/third_party/wiredtiger/src/support/cksum.c
+++ b/src/third_party/wiredtiger/src/support/cksum.c
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/src/support/err.c b/src/third_party/wiredtiger/src/support/err.c
index 25f190bf1e2..d766fcba33a 100644
--- a/src/third_party/wiredtiger/src/support/err.c
+++ b/src/third_party/wiredtiger/src/support/err.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/support/filename.c b/src/third_party/wiredtiger/src/support/filename.c
index bd5d03fa633..6d65cdf9ada 100644
--- a/src/third_party/wiredtiger/src/support/filename.c
+++ b/src/third_party/wiredtiger/src/support/filename.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/support/global.c b/src/third_party/wiredtiger/src/support/global.c
index a7d5b9a9df5..5ddd291c6d4 100644
--- a/src/third_party/wiredtiger/src/support/global.c
+++ b/src/third_party/wiredtiger/src/support/global.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/support/hash_city.c b/src/third_party/wiredtiger/src/support/hash_city.c
index c6978f6bfe6..9a4a6464f40 100644
--- a/src/third_party/wiredtiger/src/support/hash_city.c
+++ b/src/third_party/wiredtiger/src/support/hash_city.c
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/src/support/hash_fnv.c b/src/third_party/wiredtiger/src/support/hash_fnv.c
index 68f8537a4a0..e780931454d 100644
--- a/src/third_party/wiredtiger/src/support/hash_fnv.c
+++ b/src/third_party/wiredtiger/src/support/hash_fnv.c
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/src/support/hazard.c b/src/third_party/wiredtiger/src/support/hazard.c
index 12350ab52f4..4b8b916b121 100644
--- a/src/third_party/wiredtiger/src/support/hazard.c
+++ b/src/third_party/wiredtiger/src/support/hazard.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/support/hex.c b/src/third_party/wiredtiger/src/support/hex.c
index 9ee3e723fa2..eb9f420911a 100644
--- a/src/third_party/wiredtiger/src/support/hex.c
+++ b/src/third_party/wiredtiger/src/support/hex.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/support/huffman.c b/src/third_party/wiredtiger/src/support/huffman.c
index 9625e879381..48b31b5e299 100644
--- a/src/third_party/wiredtiger/src/support/huffman.c
+++ b/src/third_party/wiredtiger/src/support/huffman.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -686,7 +687,7 @@ __wt_huffman_encode(WT_SESSION_IMPL *session, void *huffman_arg,
max_len, outlen);
#endif
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
return (ret);
}
@@ -809,7 +810,7 @@ __wt_huffman_decode(WT_SESSION_IMPL *session, void *huffman_arg,
max_len, outlen);
#endif
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
return (ret);
}
diff --git a/src/third_party/wiredtiger/src/support/mutex.c b/src/third_party/wiredtiger/src/support/mutex.c
index ffe52cf28fd..c35656051f6 100644
--- a/src/third_party/wiredtiger/src/support/mutex.c
+++ b/src/third_party/wiredtiger/src/support/mutex.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/support/pow.c b/src/third_party/wiredtiger/src/support/pow.c
index a6bf6c7227f..8e42113a2ee 100644
--- a/src/third_party/wiredtiger/src/support/pow.c
+++ b/src/third_party/wiredtiger/src/support/pow.c
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/src/support/rand.c b/src/third_party/wiredtiger/src/support/rand.c
index b716eb8c58b..bd51b2ea0d5 100644
--- a/src/third_party/wiredtiger/src/support/rand.c
+++ b/src/third_party/wiredtiger/src/support/rand.c
@@ -1,4 +1,5 @@
/*-
+ * Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/src/support/scratch.c b/src/third_party/wiredtiger/src/support/scratch.c
index e4df04a36ed..957101b8fae 100644
--- a/src/third_party/wiredtiger/src/support/scratch.c
+++ b/src/third_party/wiredtiger/src/support/scratch.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -179,8 +180,7 @@ __wt_scr_alloc_func(WT_SESSION_IMPL *session, size_t size, WT_ITEM **scratchp
* or the largest buffer if none are large enough.
*/
if (best == NULL ||
- ((*best)->memsize < size &&
- buf->memsize > (*best)->memsize) ||
+ (buf->memsize <= size && buf->memsize > (*best)->memsize) ||
(buf->memsize >= size && buf->memsize < (*best)->memsize))
best = p;
@@ -209,7 +209,7 @@ __wt_scr_alloc_func(WT_SESSION_IMPL *session, size_t size, WT_ITEM **scratchp
}
/*
- * If slot is non-NULL, we found an empty slot, try and allocate a
+ * If slot is non-NULL, we found an empty slot, try to allocate a
* buffer.
*/
if (best == NULL) {
@@ -223,6 +223,7 @@ __wt_scr_alloc_func(WT_SESSION_IMPL *session, size_t size, WT_ITEM **scratchp
}
/* Grow the buffer as necessary and return. */
+ session->scratch_cached -= (*best)->memsize;
WT_ERR(__wt_buf_init(session, *best, size));
F_SET(*best, WT_ITEM_INUSE);
diff --git a/src/third_party/wiredtiger/src/txn/txn.c b/src/third_party/wiredtiger/src/txn/txn.c
index d6aa483c18a..cd130002c81 100644
--- a/src/third_party/wiredtiger/src/txn/txn.c
+++ b/src/third_party/wiredtiger/src/txn/txn.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/txn/txn_ckpt.c b/src/third_party/wiredtiger/src/txn/txn_ckpt.c
index 6e6d93a6b5a..0cd341185f2 100644
--- a/src/third_party/wiredtiger/src/txn/txn_ckpt.c
+++ b/src/third_party/wiredtiger/src/txn/txn_ckpt.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -162,7 +163,7 @@ __checkpoint_apply_all(WT_SESSION_IMPL *session, const char *cfg[],
if (fullp != NULL)
*fullp = !target_list;
-err: __wt_scr_free(&tmp);
+err: __wt_scr_free(session, &tmp);
return (ret);
}
@@ -593,7 +594,7 @@ __checkpoint_worker(
WT_DECL_RET;
WT_LSN ckptlsn;
const char *name;
- int deleted, force, hot_backup_locked, track_ckpt, was_modified;
+ int deleted, fake_ckpt, force, hot_backup_locked, was_modified;
char *name_alloc;
btree = S2BT(session);
@@ -604,14 +605,15 @@ __checkpoint_worker(
name_alloc = NULL;
hot_backup_locked = 0;
name_alloc = NULL;
- track_ckpt = 1;
+ fake_ckpt = 0;
was_modified = btree->modified;
/*
- * Set the checkpoint LSN to the maximum LSN so that recovery will
- * never roll old changes forward over the non-logged changed in this
- * checkpoint. If logging is enabled, a real checkpoint LSN will
- * be assigned later for this checkpoint and overwrite this.
+ * Set the checkpoint LSN to the maximum LSN so that if logging is
+ * disabled, recovery will never roll old changes forward over the
+ * non-logged changes in this checkpoint. If logging is enabled, a
+ * real checkpoint LSN will be assigned later for this checkpoint and
+ * overwrite this.
*/
WT_MAX_LSN(&ckptlsn);
@@ -821,7 +823,7 @@ __checkpoint_worker(
WT_ERR_MSG(session, ret,
"block-manager checkpoint found "
"for a bulk-loaded file");
- track_ckpt = 0;
+ fake_ckpt = 1;
goto fake;
case WT_BTREE_SALVAGE:
case WT_BTREE_UPGRADE:
@@ -846,7 +848,7 @@ __checkpoint_worker(
*/
if (is_checkpoint)
if (btree->bulk_load_ok) {
- track_ckpt = 0;
+ fake_ckpt = 1;
goto fake;
}
@@ -895,7 +897,15 @@ __checkpoint_worker(
if (F_ISSET(ckpt, WT_CKPT_ADD))
ckpt->write_gen = btree->write_gen;
-fake: /* Update the object's metadata. */
+fake: /*
+ * If we're faking a checkpoint and logging is enabled, recovery should
+ * roll forward any changes made between now and the next checkpoint,
+ * so set the checkpoint LSN to the beginning of time.
+ */
+ if (fake_ckpt && FLD_ISSET(conn->log_flags, WT_CONN_LOG_ENABLED))
+ WT_INIT_LSN(&ckptlsn);
+
+ /* Update the object's metadata. */
WT_ERR(__wt_meta_ckptlist_set(
session, dhandle->name, ckptbase, &ckptlsn));
@@ -906,7 +916,7 @@ fake: /* Update the object's metadata. */
* is being discarded, in which case the handle will be gone by the
* time we try to apply or unroll the meta tracking event.
*/
- if (track_ckpt) {
+ if (!fake_ckpt) {
if (WT_META_TRACKING(session) && is_checkpoint)
WT_ERR(__wt_meta_track_checkpoint(session));
else
diff --git a/src/third_party/wiredtiger/src/txn/txn_ext.c b/src/third_party/wiredtiger/src/txn/txn_ext.c
index 31d5506be5b..e35b6f16ea1 100644
--- a/src/third_party/wiredtiger/src/txn/txn_ext.c
+++ b/src/third_party/wiredtiger/src/txn/txn_ext.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/txn/txn_log.c b/src/third_party/wiredtiger/src/txn/txn_log.c
index c0c3bca1c03..f66bd7e09c8 100644
--- a/src/third_party/wiredtiger/src/txn/txn_log.c
+++ b/src/third_party/wiredtiger/src/txn/txn_log.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -347,7 +348,7 @@ __wt_txn_checkpoint_log(
/* Cleanup any allocated resources */
WT_INIT_LSN(ckpt_lsn);
txn->ckpt_nsnapshot = 0;
- __wt_scr_free(&txn->ckpt_snapshot);
+ __wt_scr_free(session, &txn->ckpt_snapshot);
txn->full_ckpt = 0;
break;
}
diff --git a/src/third_party/wiredtiger/src/txn/txn_recover.c b/src/third_party/wiredtiger/src/txn/txn_recover.c
index d6068562220..b2515e3c8cd 100644
--- a/src/third_party/wiredtiger/src/txn/txn_recover.c
+++ b/src/third_party/wiredtiger/src/txn/txn_recover.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/utilities/util.h b/src/third_party/wiredtiger/src/utilities/util.h
index 1f2f0b7211a..aaf68159c68 100644
--- a/src/third_party/wiredtiger/src/utilities/util.h
+++ b/src/third_party/wiredtiger/src/utilities/util.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/utilities/util_backup.c b/src/third_party/wiredtiger/src/utilities/util_backup.c
index aa61cc338f0..cd81cd9bfb5 100644
--- a/src/third_party/wiredtiger/src/utilities/util_backup.c
+++ b/src/third_party/wiredtiger/src/utilities/util_backup.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/utilities/util_compact.c b/src/third_party/wiredtiger/src/utilities/util_compact.c
index 51d5461e43c..633a92df04a 100644
--- a/src/third_party/wiredtiger/src/utilities/util_compact.c
+++ b/src/third_party/wiredtiger/src/utilities/util_compact.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/utilities/util_cpyright.c b/src/third_party/wiredtiger/src/utilities/util_cpyright.c
index 7cb47c68464..df135b68d2c 100644
--- a/src/third_party/wiredtiger/src/utilities/util_cpyright.c
+++ b/src/third_party/wiredtiger/src/utilities/util_cpyright.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -10,7 +11,7 @@
void
util_copyright(void)
{
- printf("%s\n", "Copyright (c) 2008-2014 WiredTiger, Inc.");
+ printf("%s\n", "Copyright (c) 2008-2015 MongoDB, Inc.");
printf("%s\n\n", "All rights reserved.");
printf("%s\n\n",
diff --git a/src/third_party/wiredtiger/src/utilities/util_create.c b/src/third_party/wiredtiger/src/utilities/util_create.c
index ebff3a8ad05..94ef8f4e3cb 100644
--- a/src/third_party/wiredtiger/src/utilities/util_create.c
+++ b/src/third_party/wiredtiger/src/utilities/util_create.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/utilities/util_drop.c b/src/third_party/wiredtiger/src/utilities/util_drop.c
index 6fe416882a3..15f6ea1be0c 100644
--- a/src/third_party/wiredtiger/src/utilities/util_drop.c
+++ b/src/third_party/wiredtiger/src/utilities/util_drop.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/utilities/util_dump.c b/src/third_party/wiredtiger/src/utilities/util_dump.c
index fd99d711459..f7d14209fa4 100644
--- a/src/third_party/wiredtiger/src/utilities/util_dump.c
+++ b/src/third_party/wiredtiger/src/utilities/util_dump.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/utilities/util_list.c b/src/third_party/wiredtiger/src/utilities/util_list.c
index 4a1489628d1..c7f05a5435f 100644
--- a/src/third_party/wiredtiger/src/utilities/util_list.c
+++ b/src/third_party/wiredtiger/src/utilities/util_list.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/utilities/util_load.c b/src/third_party/wiredtiger/src/utilities/util_load.c
index 454699381c4..0083fab4bd8 100644
--- a/src/third_party/wiredtiger/src/utilities/util_load.c
+++ b/src/third_party/wiredtiger/src/utilities/util_load.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/utilities/util_load.h b/src/third_party/wiredtiger/src/utilities/util_load.h
index 7bca677e178..43ae1ce63b0 100644
--- a/src/third_party/wiredtiger/src/utilities/util_load.h
+++ b/src/third_party/wiredtiger/src/utilities/util_load.h
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/utilities/util_load_json.c b/src/third_party/wiredtiger/src/utilities/util_load_json.c
index fb61df9ab16..7ccabf87010 100644
--- a/src/third_party/wiredtiger/src/utilities/util_load_json.c
+++ b/src/third_party/wiredtiger/src/utilities/util_load_json.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/utilities/util_loadtext.c b/src/third_party/wiredtiger/src/utilities/util_loadtext.c
index 27c4c23b50c..cb84fb03d13 100644
--- a/src/third_party/wiredtiger/src/utilities/util_loadtext.c
+++ b/src/third_party/wiredtiger/src/utilities/util_loadtext.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/utilities/util_main.c b/src/third_party/wiredtiger/src/utilities/util_main.c
index 04ab59f1ca9..ecfffb81e4b 100644
--- a/src/third_party/wiredtiger/src/utilities/util_main.c
+++ b/src/third_party/wiredtiger/src/utilities/util_main.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/utilities/util_misc.c b/src/third_party/wiredtiger/src/utilities/util_misc.c
index 71e307a2e0e..15605362b50 100644
--- a/src/third_party/wiredtiger/src/utilities/util_misc.c
+++ b/src/third_party/wiredtiger/src/utilities/util_misc.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/utilities/util_printlog.c b/src/third_party/wiredtiger/src/utilities/util_printlog.c
index 7fc9bfa39b0..ff9210b575f 100644
--- a/src/third_party/wiredtiger/src/utilities/util_printlog.c
+++ b/src/third_party/wiredtiger/src/utilities/util_printlog.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/utilities/util_read.c b/src/third_party/wiredtiger/src/utilities/util_read.c
index d9a629e40e2..de6b8adb5c2 100644
--- a/src/third_party/wiredtiger/src/utilities/util_read.c
+++ b/src/third_party/wiredtiger/src/utilities/util_read.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/utilities/util_rename.c b/src/third_party/wiredtiger/src/utilities/util_rename.c
index 8c2aeb30c59..e5fda06b310 100644
--- a/src/third_party/wiredtiger/src/utilities/util_rename.c
+++ b/src/third_party/wiredtiger/src/utilities/util_rename.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/utilities/util_salvage.c b/src/third_party/wiredtiger/src/utilities/util_salvage.c
index 386365d8875..dc8affcb1d9 100644
--- a/src/third_party/wiredtiger/src/utilities/util_salvage.c
+++ b/src/third_party/wiredtiger/src/utilities/util_salvage.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/utilities/util_stat.c b/src/third_party/wiredtiger/src/utilities/util_stat.c
index 7066ae91433..2f99214e57a 100644
--- a/src/third_party/wiredtiger/src/utilities/util_stat.c
+++ b/src/third_party/wiredtiger/src/utilities/util_stat.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/utilities/util_upgrade.c b/src/third_party/wiredtiger/src/utilities/util_upgrade.c
index b56caca2ccd..6be11f77099 100644
--- a/src/third_party/wiredtiger/src/utilities/util_upgrade.c
+++ b/src/third_party/wiredtiger/src/utilities/util_upgrade.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/utilities/util_verbose.c b/src/third_party/wiredtiger/src/utilities/util_verbose.c
index 12ff1c5463c..084cce3f610 100644
--- a/src/third_party/wiredtiger/src/utilities/util_verbose.c
+++ b/src/third_party/wiredtiger/src/utilities/util_verbose.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/utilities/util_verify.c b/src/third_party/wiredtiger/src/utilities/util_verify.c
index 6ae5fdeec26..7b3fffdd03b 100644
--- a/src/third_party/wiredtiger/src/utilities/util_verify.c
+++ b/src/third_party/wiredtiger/src/utilities/util_verify.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/src/utilities/util_write.c b/src/third_party/wiredtiger/src/utilities/util_write.c
index 067b951c0cc..f9fb2d111fe 100644
--- a/src/third_party/wiredtiger/src/utilities/util_write.c
+++ b/src/third_party/wiredtiger/src/utilities/util_write.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
diff --git a/src/third_party/wiredtiger/tools/statlog.py b/src/third_party/wiredtiger/tools/statlog.py
index f32b46a9ec7..a597eb060ae 100644
--- a/src/third_party/wiredtiger/tools/statlog.py
+++ b/src/third_party/wiredtiger/tools/statlog.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python
#
+# Public Domain 2014-2015 MongoDB, Inc.
# Public Domain 2008-2014 WiredTiger, Inc.
#
# This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/tools/wt_nvd3_util.py b/src/third_party/wiredtiger/tools/wt_nvd3_util.py
index fe058d25c1d..435c2ce71e7 100644
--- a/src/third_party/wiredtiger/tools/wt_nvd3_util.py
+++ b/src/third_party/wiredtiger/tools/wt_nvd3_util.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python
#
+# Public Domain 2014-2015 MongoDB, Inc.
# Public Domain 2008-2014 WiredTiger, Inc.
#
# This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/tools/wtperf_graph.py b/src/third_party/wiredtiger/tools/wtperf_graph.py
index f45145cf801..d80eb0cbce5 100644
--- a/src/third_party/wiredtiger/tools/wtperf_graph.py
+++ b/src/third_party/wiredtiger/tools/wtperf_graph.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python
#
+# Public Domain 2014-2015 MongoDB, Inc.
# Public Domain 2008-2014 WiredTiger, Inc.
#
# This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/tools/wtperf_stats.py b/src/third_party/wiredtiger/tools/wtperf_stats.py
index f87ca2d3254..5e6e1733fb7 100644
--- a/src/third_party/wiredtiger/tools/wtperf_stats.py
+++ b/src/third_party/wiredtiger/tools/wtperf_stats.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python
#
+# Public Domain 2014-2015 MongoDB, Inc.
# Public Domain 2008-2014 WiredTiger, Inc.
#
# This is free and unencumbered software released into the public domain.
diff --git a/src/third_party/wiredtiger/tools/wtstats.py b/src/third_party/wiredtiger/tools/wtstats.py
index cc2ebd80877..740a2017d63 100644
--- a/src/third_party/wiredtiger/tools/wtstats.py
+++ b/src/third_party/wiredtiger/tools/wtstats.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python
#
+# Public Domain 2014-2015 MongoDB, Inc.
# Public Domain 2008-2014 WiredTiger, Inc.
#
# This is free and unencumbered software released into the public domain.