├── LICENSE ├── Makefile ├── README.md ├── TODO ├── binding.gyp ├── deps ├── wiredtiger-2.1.2.tar.bz2 └── wiredtiger-2.1.2 │ ├── LICENSE │ ├── Makefile.am │ ├── Makefile.in │ ├── NEWS │ ├── README │ ├── RELEASE │ ├── aclocal.m4 │ ├── autogen.sh │ ├── bench │ ├── tcbench │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── README │ │ ├── tokyocabinet-test.patch │ │ └── wttest.c │ └── wtperf │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── README │ │ ├── config.c │ │ ├── misc.c │ │ ├── runners │ │ ├── evict-btree.wtperf │ │ ├── evict-lsm.wtperf │ │ ├── fruit-lsm.wtperf │ │ ├── fruit-short.wtperf │ │ ├── get_ckpt.py │ │ ├── insert-rmw.wtperf │ │ ├── medium-btree.wtperf │ │ ├── medium-lsm-compact.wtperf │ │ ├── medium-lsm.wtperf │ │ ├── multi-btree.wtperf │ │ ├── parallel-pop-btree.wtperf │ │ ├── parallel-pop-lsm.wtperf │ │ ├── small-btree.wtperf │ │ ├── small-lsm.wtperf │ │ ├── test1-500m-lsm.wtperf │ │ ├── test1-50m-lsm.wtperf │ │ ├── test2-500m-lsm.wtperf │ │ ├── test2-50m-lsm.wtperf │ │ ├── test3-500m-lsm.wtperf │ │ ├── test3-50m-lsm.wtperf │ │ ├── test4-500m-lsm.wtperf │ │ ├── test4-50m-lsm.wtperf │ │ ├── update-btree.wtperf │ │ ├── update-checkpoint-btree.wtperf │ │ ├── update-checkpoint-lsm.wtperf │ │ ├── update-large-lsm.wtperf │ │ ├── update-lsm.wtperf │ │ ├── voxer-10k.wtperf │ │ ├── voxer-130k.wtperf │ │ ├── wtperf_ckpt.sh │ │ └── wtperf_track.sh │ │ ├── smoke.sh │ │ ├── track.c │ │ ├── wtperf.c │ │ ├── wtperf.h │ │ └── wtperf_opt.i │ ├── build_posix │ ├── Make.base │ ├── Make.subdirs │ ├── aclocal │ │ ├── ax_check_class.m4 │ │ ├── ax_check_junit.m4 │ │ ├── ax_java_options.m4 │ │ ├── ax_jni_include_dir.m4 │ │ ├── ax_pkg_swig.m4 │ │ ├── ax_prog_jar.m4 │ │ ├── ax_prog_java.m4 │ │ ├── ax_prog_java_works.m4 │ │ ├── ax_prog_javac.m4 │ │ ├── ax_prog_javac_works.m4 │ │ ├── ax_try_compile_java.m4 │ │ ├── cond-if.m4 │ │ ├── libtool.m4 │ │ ├── ltoptions.m4 │ │ ├── ltsugar.m4 │ │ ├── ltversion.m4 │ │ ├── lt~obsolete.m4 │ │ ├── options.m4 │ │ ├── types.m4 │ │ ├── version-set.m4 │ │ └── version.m4 │ ├── config.hin │ ├── configure.ac.in │ ├── gnu-support │ │ ├── config.guess │ │ ├── config.sub │ │ ├── depcomp │ │ ├── install-sh │ │ ├── ltmain.sh │ │ ├── missing │ │ └── test-driver │ ├── makemake │ ├── reconf │ └── wiredtiger.pc.in │ ├── configure │ ├── configure.ac │ ├── dist │ ├── api_config.py │ ├── api_data.py │ ├── api_err.py │ ├── db.py │ ├── dist.py │ ├── filelist │ ├── flags.py │ ├── java_doc.py │ ├── log.py │ ├── log_data.py │ ├── s_all │ ├── s_copyright │ ├── s_copyright.list │ ├── s_define │ ├── s_define.list │ ├── s_docs │ ├── s_funcs │ ├── s_funcs.list │ ├── s_getopt │ ├── s_longlines │ ├── s_prototypes │ ├── s_readme │ ├── s_release │ ├── s_release.list │ ├── s_release_docs │ ├── s_stat │ ├── s_string │ ├── s_string.ok │ ├── s_style │ ├── s_symbols │ ├── s_symbols.list │ ├── s_tags │ ├── s_typedef │ ├── s_version │ ├── s_whitespace │ ├── serial.py │ ├── stat.py │ ├── stat_data.py │ └── style.py │ ├── docs │ ├── LogoFinal-header.png │ ├── admin.html │ ├── admin.js │ ├── annotated.html │ ├── annotated.js │ ├── architecture.html │ ├── basic_api.html │ ├── bc_s.png │ ├── bdwn.png │ ├── bulk_load.html │ ├── cache_configuration.html │ ├── checkpoints.html │ ├── classcom_1_1wiredtiger_1_1db_1_1_connection-members.html │ ├── classcom_1_1wiredtiger_1_1db_1_1_connection.html │ ├── classcom_1_1wiredtiger_1_1db_1_1_connection.js │ ├── classcom_1_1wiredtiger_1_1db_1_1_cursor-members.html │ ├── classcom_1_1wiredtiger_1_1db_1_1_cursor.html │ ├── classcom_1_1wiredtiger_1_1db_1_1_cursor.js │ ├── classcom_1_1wiredtiger_1_1db_1_1_pack_format_input_stream-members.html │ ├── classcom_1_1wiredtiger_1_1db_1_1_pack_format_input_stream.html │ ├── classcom_1_1wiredtiger_1_1db_1_1_pack_format_input_stream.js │ ├── classcom_1_1wiredtiger_1_1db_1_1_pack_input_stream-members.html │ ├── classcom_1_1wiredtiger_1_1db_1_1_pack_input_stream.html │ ├── classcom_1_1wiredtiger_1_1db_1_1_pack_input_stream.js │ ├── classcom_1_1wiredtiger_1_1db_1_1_pack_output_stream-members.html │ ├── classcom_1_1wiredtiger_1_1db_1_1_pack_output_stream.html │ ├── classcom_1_1wiredtiger_1_1db_1_1_pack_output_stream.js │ ├── classcom_1_1wiredtiger_1_1db_1_1_session-members.html │ ├── classcom_1_1wiredtiger_1_1db_1_1_session.html │ ├── classcom_1_1wiredtiger_1_1db_1_1_session.js │ ├── classcom_1_1wiredtiger_1_1db_1_1_wired_tiger_exception-members.html │ ├── classcom_1_1wiredtiger_1_1db_1_1_wired_tiger_exception.html │ ├── classcom_1_1wiredtiger_1_1db_1_1_wired_tiger_exception.js │ ├── classcom_1_1wiredtiger_1_1db_1_1_wired_tiger_packing_exception-members.html │ ├── classcom_1_1wiredtiger_1_1db_1_1_wired_tiger_packing_exception.html │ ├── classcom_1_1wiredtiger_1_1db_1_1_wired_tiger_packing_exception.js │ ├── classcom_1_1wiredtiger_1_1db_1_1wiredtiger-members.html │ ├── classcom_1_1wiredtiger_1_1db_1_1wiredtiger.html │ ├── classcom_1_1wiredtiger_1_1db_1_1wiredtiger_j_n_i-members.html │ ├── classcom_1_1wiredtiger_1_1db_1_1wiredtiger_j_n_i.html │ ├── classes.html │ ├── closed.png │ ├── command_line.html │ ├── command_line.js │ ├── community.html │ ├── compaction.html │ ├── compression.html │ ├── config_strings.html │ ├── cursor_ops.html │ ├── cursor_ops.js │ ├── cursor_random.html │ ├── cursors.html │ ├── cursors.js │ ├── custom_data_sources.html │ ├── data_sources.html │ ├── database_config.html │ ├── dir_292e300f945c4e6f3e0c588af835904d.html │ ├── dir_571a792ca0c7c405a91dfdc0148e6c3f.html │ ├── dir_5e688713d205d659a1fc794246719042.html │ ├── dir_986f9171c0d8dcdeb6d03ab690ead6f8.html │ ├── dir_b0856f6b0d80ccb263b2f415c91f9e17.html │ ├── dir_c9df479a4b8c9878b10aee7f392173a0.html │ ├── dir_cfc2aeb53db1381ea5b37281e121d35b.html │ ├── dir_d44c64559bbebec7f509842c48db8b23.html │ ├── doxygen.css │ ├── doxygen.png │ ├── dump_formats.html │ ├── dynsections.js │ ├── enumcom_1_1wiredtiger_1_1db_1_1_search_status-members.html │ ├── enumcom_1_1wiredtiger_1_1db_1_1_search_status.html │ ├── enumcom_1_1wiredtiger_1_1db_1_1_search_status.js │ ├── error_handling.html │ ├── ex_access_8c-example.html │ ├── ex_call_center_8c-example.html │ ├── ex_config_8c-example.html │ ├── ex_cursor_8c-example.html │ ├── ex_extending_8c-example.html │ ├── ex_file_8c-example.html │ ├── ex_hello_8c-example.html │ ├── ex_pack_8c-example.html │ ├── ex_schema_8c-example.html │ ├── ex_stat_8c-example.html │ ├── ex_thread_8c-example.html │ ├── examples.html │ ├── examples.js │ ├── file_formats.html │ ├── file_formats.js │ ├── filesystems.html │ ├── ftv2blank.png │ ├── ftv2cl.png │ ├── ftv2doc.png │ ├── ftv2folderclosed.png │ ├── ftv2folderopen.png │ ├── ftv2lastnode.png │ ├── ftv2link.png │ ├── ftv2mlastnode.png │ ├── ftv2mnode.png │ ├── ftv2mo.png │ ├── ftv2node.png │ ├── ftv2ns.png │ ├── ftv2plastnode.png │ ├── ftv2pnode.png │ ├── ftv2splitbar.png │ ├── ftv2vertline.png │ ├── functions.html │ ├── functions_0x62.html │ ├── functions_0x63.html │ ├── functions_0x64.html │ ├── functions_0x65.html │ ├── functions_0x67.html │ ├── functions_0x68.html │ ├── functions_0x69.html │ ├── functions_0x6b.html │ ├── functions_0x6c.html │ ├── functions_0x6d.html │ ├── functions_0x6e.html │ ├── functions_0x6f.html │ ├── functions_0x70.html │ ├── functions_0x72.html │ ├── functions_0x73.html │ ├── functions_0x74.html │ ├── functions_0x75.html │ ├── functions_0x76.html │ ├── functions_0x77.html │ ├── functions_dup.js │ ├── functions_eval.html │ ├── functions_func.html │ ├── functions_vars.html │ ├── group__wt.html │ ├── group__wt.js │ ├── group__wt__ext.html │ ├── group__wt__ext.js │ ├── group__wt__java.html │ ├── group__wt__java.js │ ├── helium.html │ ├── hierarchy.html │ ├── hierarchy.js │ ├── home.html │ ├── hot_backup.html │ ├── huffman.html │ ├── index.html │ ├── index.js │ ├── install.html │ ├── interfacecom_1_1wiredtiger_1_1db_1_1wiredtiger_constants-members.html │ ├── interfacecom_1_1wiredtiger_1_1db_1_1wiredtiger_constants.html │ ├── jquery.js │ ├── keyvalue.html │ ├── license.html │ ├── lsm.html │ ├── modules.html │ ├── modules.js │ ├── name_space.html │ ├── nav_f.png │ ├── nav_g.png │ ├── nav_h.png │ ├── navtree.css │ ├── navtree.js │ ├── navtreeindex0.js │ ├── navtreeindex1.js │ ├── navtreeindex2.js │ ├── navtreeindex3.js │ ├── open.png │ ├── packing.html │ ├── pages.html │ ├── programming.html │ ├── programming.js │ ├── resize.js │ ├── schema.html │ ├── schema.js │ ├── security.html │ ├── signals.html │ ├── statistics.html │ ├── struct____wt__txn__notify-members.html │ ├── struct____wt__txn__notify.html │ ├── struct____wt__txn__notify.js │ ├── struct_w_t___c_o_l_l_a_t_o_r-members.html │ ├── struct_w_t___c_o_l_l_a_t_o_r.html │ ├── struct_w_t___c_o_l_l_a_t_o_r.js │ ├── struct_w_t___c_o_m_p_r_e_s_s_o_r-members.html │ ├── struct_w_t___c_o_m_p_r_e_s_s_o_r.html │ ├── struct_w_t___c_o_m_p_r_e_s_s_o_r.js │ ├── struct_w_t___c_o_n_f_i_g___i_t_e_m-members.html │ ├── struct_w_t___c_o_n_f_i_g___i_t_e_m.html │ ├── struct_w_t___c_o_n_f_i_g___i_t_e_m.js │ ├── struct_w_t___c_o_n_f_i_g___p_a_r_s_e_r-members.html │ ├── struct_w_t___c_o_n_f_i_g___p_a_r_s_e_r.html │ ├── struct_w_t___c_o_n_f_i_g___p_a_r_s_e_r.js │ ├── struct_w_t___c_o_n_n_e_c_t_i_o_n-members.html │ ├── struct_w_t___c_o_n_n_e_c_t_i_o_n.html │ ├── struct_w_t___c_o_n_n_e_c_t_i_o_n.js │ ├── struct_w_t___c_u_r_s_o_r-members.html │ ├── struct_w_t___c_u_r_s_o_r.html │ ├── struct_w_t___c_u_r_s_o_r.js │ ├── struct_w_t___d_a_t_a___s_o_u_r_c_e-members.html │ ├── struct_w_t___d_a_t_a___s_o_u_r_c_e.html │ ├── struct_w_t___d_a_t_a___s_o_u_r_c_e.js │ ├── struct_w_t___e_v_e_n_t___h_a_n_d_l_e_r-members.html │ ├── struct_w_t___e_v_e_n_t___h_a_n_d_l_e_r.html │ ├── struct_w_t___e_v_e_n_t___h_a_n_d_l_e_r.js │ ├── struct_w_t___e_x_t_e_n_s_i_o_n___a_p_i-members.html │ ├── struct_w_t___e_x_t_e_n_s_i_o_n___a_p_i.html │ ├── struct_w_t___e_x_t_e_n_s_i_o_n___a_p_i.js │ ├── struct_w_t___e_x_t_r_a_c_t_o_r-members.html │ ├── struct_w_t___e_x_t_r_a_c_t_o_r.html │ ├── struct_w_t___e_x_t_r_a_c_t_o_r.js │ ├── struct_w_t___s_e_s_s_i_o_n-members.html │ ├── struct_w_t___s_e_s_s_i_o_n.html │ ├── struct_w_t___s_e_s_s_i_o_n.js │ ├── sync_off.png │ ├── sync_on.png │ ├── tab_a.png │ ├── tab_b.png │ ├── tab_h.png │ ├── tab_s.png │ ├── tabs.css │ ├── threads.html │ ├── transactions.html │ ├── tuning.html │ ├── upgrading.html │ └── wiredtiger.css │ ├── examples │ ├── c │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── ex_access.c │ │ ├── ex_all.c │ │ ├── ex_call_center.c │ │ ├── ex_config.c │ │ ├── ex_config_parse.c │ │ ├── ex_cursor.c │ │ ├── ex_data_source.c │ │ ├── ex_extending.c │ │ ├── ex_file.c │ │ ├── ex_hello.c │ │ ├── ex_pack.c │ │ ├── ex_process.c │ │ ├── ex_schema.c │ │ ├── ex_scope.c │ │ ├── ex_stat.c │ │ └── ex_thread.c │ ├── java │ │ ├── Makefile.am │ │ └── com │ │ │ └── wiredtiger │ │ │ └── examples │ │ │ └── ex_access.java │ └── python │ │ └── ex_access.py │ ├── ext │ ├── collators │ │ └── reverse │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ └── reverse_collator.c │ ├── compressors │ │ ├── bzip2 │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ └── bzip2_compress.c │ │ ├── nop │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ └── nop_compress.c │ │ ├── snappy │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ └── snappy_compress.c │ │ └── zlib │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ └── zlib_compress.c │ ├── datasources │ │ └── helium │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── README │ │ │ └── helium.c │ └── test │ │ └── kvs_bdb │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ └── kvs_bdb.c │ ├── lang │ ├── java │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── java_doc.i │ │ ├── src │ │ │ └── com │ │ │ │ └── wiredtiger │ │ │ │ └── db │ │ │ │ ├── Connection.java │ │ │ │ ├── Cursor.java │ │ │ │ ├── PackFormatInputStream.java │ │ │ │ ├── PackInputStream.java │ │ │ │ ├── PackOutputStream.java │ │ │ │ ├── PackUtil.java │ │ │ │ ├── SearchStatus.java │ │ │ │ ├── Session.java │ │ │ │ ├── WiredTigerException.java │ │ │ │ ├── WiredTigerPackingException.java │ │ │ │ ├── wiredtiger.java │ │ │ │ ├── wiredtigerConstants.java │ │ │ │ └── wiredtigerJNI.java │ │ ├── wiredtiger.i │ │ └── wiredtiger_wrap.c │ └── python │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── run-ex_access │ │ ├── setup.py │ │ ├── wiredtiger.i │ │ ├── wiredtiger │ │ ├── __init__.py │ │ ├── fpacking.py │ │ ├── intpack-test.py │ │ ├── intpacking.py │ │ ├── packing-test.py │ │ └── packing.py │ │ └── wiredtiger_wrap.c │ ├── src │ ├── api │ │ ├── api_strerror.c │ │ └── api_version.c │ ├── block │ │ ├── block_addr.c │ │ ├── block_ckpt.c │ │ ├── block_compact.c │ │ ├── block_ext.c │ │ ├── block_map.c │ │ ├── block_mgr.c │ │ ├── block_open.c │ │ ├── block_read.c │ │ ├── block_session.c │ │ ├── block_slvg.c │ │ ├── block_vrfy.c │ │ └── block_write.c │ ├── bloom │ │ └── bloom.c │ ├── btree │ │ ├── bt_bulk.c │ │ ├── bt_compact.c │ │ ├── bt_curnext.c │ │ ├── bt_curprev.c │ │ ├── bt_cursor.c │ │ ├── bt_debug.c │ │ ├── bt_discard.c │ │ ├── bt_evict.c │ │ ├── bt_handle.c │ │ ├── bt_huffman.c │ │ ├── bt_io.c │ │ ├── bt_misc.c │ │ ├── bt_ovfl.c │ │ ├── bt_page.c │ │ ├── bt_read.c │ │ ├── bt_ret.c │ │ ├── bt_slvg.c │ │ ├── bt_stat.c │ │ ├── bt_sync.c │ │ ├── bt_upgrade.c │ │ ├── bt_vrfy.c │ │ ├── bt_vrfy_dsk.c │ │ ├── bt_walk.c │ │ ├── col_modify.c │ │ ├── col_srch.c │ │ ├── rec_evict.c │ │ ├── rec_merge.c │ │ ├── rec_split.c │ │ ├── rec_track.c │ │ ├── rec_write.c │ │ ├── row_key.c │ │ ├── row_modify.c │ │ └── row_srch.c │ ├── config │ │ ├── config.c │ │ ├── config_api.c │ │ ├── config_check.c │ │ ├── config_collapse.c │ │ ├── config_concat.c │ │ ├── config_def.c │ │ └── config_ext.c │ ├── conn │ │ ├── conn_api.c │ │ ├── conn_cache.c │ │ ├── conn_cache_pool.c │ │ ├── conn_ckpt.c │ │ ├── conn_dhandle.c │ │ ├── conn_handle.c │ │ ├── conn_log.c │ │ ├── conn_open.c │ │ └── conn_stat.c │ ├── cursor │ │ ├── cur_backup.c │ │ ├── cur_bulk.c │ │ ├── cur_config.c │ │ ├── cur_ds.c │ │ ├── cur_dump.c │ │ ├── cur_file.c │ │ ├── cur_index.c │ │ ├── cur_stat.c │ │ ├── cur_std.c │ │ └── cur_table.c │ ├── docs │ │ ├── Doxyfile │ │ ├── Makefile │ │ ├── admin.dox │ │ ├── architecture.dox │ │ ├── basic-api.dox │ │ ├── build-javadoc.sh │ │ ├── build-pydoc.sh │ │ ├── bulk-load.dox │ │ ├── cache-configuration.dox │ │ ├── checkpoints.dox │ │ ├── command-line.dox │ │ ├── community.dox │ │ ├── compact.dox │ │ ├── compression.dox │ │ ├── config-file.dox │ │ ├── config-strings.dox │ │ ├── cursor-ops.dox │ │ ├── cursor-random.dox │ │ ├── cursors.dox │ │ ├── custom_data.dox │ │ ├── data_sources.dox │ │ ├── doxygen.log │ │ ├── dump-formats.dox │ │ ├── error.dox │ │ ├── examples.dox │ │ ├── file-formats.dox │ │ ├── filesystems.dox │ │ ├── helium.dox │ │ ├── home.dox │ │ ├── hot_backup.dox │ │ ├── huffman.dox │ │ ├── images │ │ │ ├── LogoFace-watermark.png │ │ │ ├── LogoFinal-header.png │ │ │ ├── architecture.pdf │ │ │ └── architecture.png │ │ ├── install.dox │ │ ├── introduction.dox │ │ ├── keyvalue.dox │ │ ├── license.dox │ │ ├── lsm.dox │ │ ├── namespace.dox │ │ ├── packing.dox │ │ ├── processes.dox │ │ ├── programming.dox │ │ ├── schema.dox │ │ ├── security.dox │ │ ├── signals.dox │ │ ├── spell.ok │ │ ├── sql-map.dox │ │ ├── statistics.dox │ │ ├── style │ │ │ ├── DoxygenLayout.xml │ │ │ ├── background_navigation.png │ │ │ ├── doxygen.png │ │ │ ├── footer.html │ │ │ ├── header.html │ │ │ ├── img_downArrow.png │ │ │ ├── javadoc.css │ │ │ ├── tabs.css │ │ │ └── wiredtiger.css │ │ ├── threads.dox │ │ ├── tools │ │ │ ├── doxypy.py │ │ │ ├── fixlinks.py │ │ │ └── pyfilter │ │ ├── top │ │ │ ├── Doxyfile │ │ │ └── main.dox │ │ ├── transactions.dox │ │ ├── tuning.dox │ │ └── upgrading.dox │ ├── include │ │ ├── api.h │ │ ├── bitstring.i │ │ ├── block.h │ │ ├── bloom.h │ │ ├── btmem.h │ │ ├── btree.h │ │ ├── btree.i │ │ ├── cache.h │ │ ├── cache.i │ │ ├── cell.i │ │ ├── column.i │ │ ├── compact.h │ │ ├── config.h │ │ ├── connection.h │ │ ├── cursor.h │ │ ├── cursor.i │ │ ├── dhandle.h │ │ ├── dlh.h │ │ ├── error.h │ │ ├── extern.h │ │ ├── flags.h │ │ ├── gcc.h │ │ ├── hardware.h │ │ ├── intpack.i │ │ ├── log.h │ │ ├── lsm.h │ │ ├── meta.h │ │ ├── misc.h │ │ ├── mutex.h │ │ ├── mutex.i │ │ ├── os.h │ │ ├── packing.i │ │ ├── posix.h │ │ ├── queue.h │ │ ├── schema.h │ │ ├── serial.i │ │ ├── session.h │ │ ├── stat.h │ │ ├── txn.h │ │ ├── txn.i │ │ ├── verify_build.h │ │ ├── wiredtiger.in │ │ ├── wiredtiger_ext.h │ │ └── wt_internal.h │ ├── log │ │ ├── log.c │ │ ├── log_auto.c │ │ └── log_slot.c │ ├── lsm │ │ ├── lsm_cursor.c │ │ ├── lsm_merge.c │ │ ├── lsm_meta.c │ │ ├── lsm_stat.c │ │ ├── lsm_tree.c │ │ └── lsm_worker.c │ ├── meta │ │ ├── meta_apply.c │ │ ├── meta_ckpt.c │ │ ├── meta_ext.c │ │ ├── meta_table.c │ │ ├── meta_track.c │ │ └── meta_turtle.c │ ├── os_posix │ │ ├── os_abort.c │ │ ├── os_alloc.c │ │ ├── os_dir.c │ │ ├── os_dlopen.c │ │ ├── os_errno.c │ │ ├── os_exist.c │ │ ├── os_fallocate.c │ │ ├── os_filesize.c │ │ ├── os_flock.c │ │ ├── os_fsync.c │ │ ├── os_ftruncate.c │ │ ├── os_getline.c │ │ ├── os_map.c │ │ ├── os_mtx.c │ │ ├── os_open.c │ │ ├── os_priv.c │ │ ├── os_remove.c │ │ ├── os_rename.c │ │ ├── os_rw.c │ │ ├── os_sleep.c │ │ ├── os_strtouq.c │ │ ├── os_thread.c │ │ ├── os_time.c │ │ └── os_yield.c │ ├── packing │ │ ├── pack_api.c │ │ ├── pack_impl.c │ │ └── pack_stream.c │ ├── schema │ │ ├── schema_create.c │ │ ├── schema_drop.c │ │ ├── schema_list.c │ │ ├── schema_open.c │ │ ├── schema_plan.c │ │ ├── schema_project.c │ │ ├── schema_rename.c │ │ ├── schema_stat.c │ │ ├── schema_truncate.c │ │ ├── schema_util.c │ │ └── schema_worker.c │ ├── session │ │ ├── session_api.c │ │ ├── session_compact.c │ │ ├── session_dhandle.c │ │ └── session_salvage.c │ ├── support │ │ ├── cksum.c │ │ ├── err.c │ │ ├── filename.c │ │ ├── global.c │ │ ├── hash_city.c │ │ ├── hash_fnv.c │ │ ├── hazard.c │ │ ├── hex.c │ │ ├── huffman.c │ │ ├── mutex.c │ │ ├── pow.c │ │ ├── rand.c │ │ ├── scratch.c │ │ ├── sess_dump.c │ │ └── stat.c │ ├── txn │ │ ├── txn.c │ │ ├── txn_ckpt.c │ │ ├── txn_ext.c │ │ ├── txn_log.c │ │ └── txn_recover.c │ └── utilities │ │ ├── util.h │ │ ├── util_backup.c │ │ ├── util_compact.c │ │ ├── util_cpyright.c │ │ ├── util_create.c │ │ ├── util_drop.c │ │ ├── util_dump.c │ │ ├── util_getopt.c │ │ ├── util_list.c │ │ ├── util_load.c │ │ ├── util_loadtext.c │ │ ├── util_main.c │ │ ├── util_misc.c │ │ ├── util_printlog.c │ │ ├── util_read.c │ │ ├── util_rename.c │ │ ├── util_salvage.c │ │ ├── util_stat.c │ │ ├── util_upgrade.c │ │ ├── util_verbose.c │ │ ├── util_verify.c │ │ └── util_write.c │ ├── test │ ├── 3rdparty │ │ ├── concurrencytest-0.1.2 │ │ │ ├── PKG-INFO │ │ │ ├── concurrencytest.egg-info │ │ │ │ ├── PKG-INFO │ │ │ │ ├── SOURCES.txt │ │ │ │ ├── dependency_links.txt │ │ │ │ ├── requires.txt │ │ │ │ └── top_level.txt │ │ │ ├── concurrencytest.py │ │ │ ├── setup.cfg │ │ │ └── setup.py │ │ ├── discover-0.4.0 │ │ │ ├── PKG-INFO │ │ │ ├── README.txt │ │ │ ├── discover.py │ │ │ ├── setup.cfg │ │ │ └── setup.py │ │ ├── extras-0.0.3 │ │ │ ├── .gitignore │ │ │ ├── LICENSE │ │ │ ├── MANIFEST.in │ │ │ ├── Makefile │ │ │ ├── NEWS │ │ │ ├── PKG-INFO │ │ │ ├── README.rst │ │ │ ├── extras │ │ │ │ ├── __init__.py │ │ │ │ └── tests │ │ │ │ │ ├── __init__.py │ │ │ │ │ └── test_extras.py │ │ │ ├── setup.cfg │ │ │ └── setup.py │ │ ├── python-subunit-0.0.16 │ │ │ ├── MANIFEST.in │ │ │ ├── NEWS │ │ │ ├── PKG-INFO │ │ │ ├── README │ │ │ ├── filters │ │ │ │ ├── subunit-1to2 │ │ │ │ ├── subunit-2to1 │ │ │ │ ├── subunit-filter │ │ │ │ ├── subunit-ls │ │ │ │ ├── subunit-notify │ │ │ │ ├── subunit-stats │ │ │ │ ├── subunit-tags │ │ │ │ ├── subunit2gtk │ │ │ │ ├── subunit2junitxml │ │ │ │ ├── subunit2pyunit │ │ │ │ └── tap2subunit │ │ │ ├── python │ │ │ │ └── subunit │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── chunked.py │ │ │ │ │ ├── details.py │ │ │ │ │ ├── filters.py │ │ │ │ │ ├── iso8601.py │ │ │ │ │ ├── progress_model.py │ │ │ │ │ ├── run.py │ │ │ │ │ ├── test_results.py │ │ │ │ │ ├── tests │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── sample-script.py │ │ │ │ │ ├── sample-two-script.py │ │ │ │ │ ├── test_chunked.py │ │ │ │ │ ├── test_details.py │ │ │ │ │ ├── test_filters.py │ │ │ │ │ ├── test_progress_model.py │ │ │ │ │ ├── test_run.py │ │ │ │ │ ├── test_subunit_filter.py │ │ │ │ │ ├── test_subunit_stats.py │ │ │ │ │ ├── test_subunit_tags.py │ │ │ │ │ ├── test_tap2subunit.py │ │ │ │ │ ├── test_test_protocol.py │ │ │ │ │ ├── test_test_protocol2.py │ │ │ │ │ └── test_test_results.py │ │ │ │ │ └── v2.py │ │ │ ├── python_subunit.egg-info │ │ │ │ ├── PKG-INFO │ │ │ │ ├── SOURCES.txt │ │ │ │ ├── dependency_links.txt │ │ │ │ ├── requires.txt │ │ │ │ └── top_level.txt │ │ │ ├── setup.cfg │ │ │ └── setup.py │ │ ├── testscenarios-0.4 │ │ │ ├── .bzrignore │ │ │ ├── Apache-2.0 │ │ │ ├── BSD │ │ │ ├── COPYING │ │ │ ├── GOALS │ │ │ ├── HACKING │ │ │ ├── MANIFEST.in │ │ │ ├── Makefile │ │ │ ├── NEWS │ │ │ ├── PKG-INFO │ │ │ ├── README │ │ │ ├── doc │ │ │ │ ├── __init__.py │ │ │ │ ├── example.py │ │ │ │ └── test_sample.py │ │ │ ├── lib │ │ │ │ ├── testscenarios.egg-info │ │ │ │ │ ├── PKG-INFO │ │ │ │ │ ├── SOURCES.txt │ │ │ │ │ ├── dependency_links.txt │ │ │ │ │ ├── requires.txt │ │ │ │ │ └── top_level.txt │ │ │ │ └── testscenarios │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── scenarios.py │ │ │ │ │ ├── testcase.py │ │ │ │ │ └── tests │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── test_scenarios.py │ │ │ │ │ └── test_testcase.py │ │ │ ├── setup.cfg │ │ │ └── setup.py │ │ └── testtools-0.9.34 │ │ │ ├── .gitignore │ │ │ ├── LICENSE │ │ │ ├── MANIFEST.in │ │ │ ├── Makefile │ │ │ ├── NEWS │ │ │ ├── PKG-INFO │ │ │ ├── README.rst │ │ │ ├── doc │ │ │ ├── Makefile │ │ │ ├── _static │ │ │ │ └── placeholder.txt │ │ │ ├── _templates │ │ │ │ └── placeholder.txt │ │ │ ├── conf.py │ │ │ ├── for-framework-folk.rst │ │ │ ├── for-test-authors.rst │ │ │ ├── hacking.rst │ │ │ ├── index.rst │ │ │ ├── make.bat │ │ │ └── overview.rst │ │ │ ├── setup.cfg │ │ │ ├── setup.py │ │ │ └── testtools │ │ │ ├── __init__.py │ │ │ ├── _compat2x.py │ │ │ ├── _compat3x.py │ │ │ ├── _spinner.py │ │ │ ├── compat.py │ │ │ ├── content.py │ │ │ ├── content_type.py │ │ │ ├── deferredruntest.py │ │ │ ├── distutilscmd.py │ │ │ ├── helpers.py │ │ │ ├── matchers │ │ │ ├── __init__.py │ │ │ ├── _basic.py │ │ │ ├── _datastructures.py │ │ │ ├── _dict.py │ │ │ ├── _doctest.py │ │ │ ├── _exception.py │ │ │ ├── _filesystem.py │ │ │ ├── _higherorder.py │ │ │ └── _impl.py │ │ │ ├── monkey.py │ │ │ ├── run.py │ │ │ ├── runtest.py │ │ │ ├── tags.py │ │ │ ├── testcase.py │ │ │ ├── testresult │ │ │ ├── __init__.py │ │ │ ├── doubles.py │ │ │ └── real.py │ │ │ ├── tests │ │ │ ├── __init__.py │ │ │ ├── helpers.py │ │ │ ├── matchers │ │ │ │ ├── __init__.py │ │ │ │ ├── helpers.py │ │ │ │ ├── test_basic.py │ │ │ │ ├── test_datastructures.py │ │ │ │ ├── test_dict.py │ │ │ │ ├── test_doctest.py │ │ │ │ ├── test_exception.py │ │ │ │ ├── test_filesystem.py │ │ │ │ ├── test_higherorder.py │ │ │ │ └── test_impl.py │ │ │ ├── test_compat.py │ │ │ ├── test_content.py │ │ │ ├── test_content_type.py │ │ │ ├── test_deferredruntest.py │ │ │ ├── test_distutilscmd.py │ │ │ ├── test_fixturesupport.py │ │ │ ├── test_helpers.py │ │ │ ├── test_monkey.py │ │ │ ├── test_run.py │ │ │ ├── test_runtest.py │ │ │ ├── test_spinner.py │ │ │ ├── test_tags.py │ │ │ ├── test_testcase.py │ │ │ ├── test_testresult.py │ │ │ ├── test_testsuite.py │ │ │ └── test_with_with.py │ │ │ ├── testsuite.py │ │ │ └── utils.py │ ├── bloom │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ └── test_bloom.c │ ├── fops │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── file.c │ │ ├── fops.c │ │ ├── t.c │ │ └── thread.h │ ├── huge │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── huge.c │ │ └── smoke.sh │ ├── java │ │ └── com │ │ │ └── wiredtiger │ │ │ └── test │ │ │ ├── AutoCloseTest.java │ │ │ ├── CursorTest.java │ │ │ ├── CursorTest02.java │ │ │ ├── PackTest.java │ │ │ └── WiredTigerSuite.java │ └── suite │ │ ├── helper.py │ │ ├── run.py │ │ ├── suite_random.py │ │ ├── suite_subprocess.py │ │ ├── test_autoclose.py │ │ ├── test_backup01.py │ │ ├── test_backup02.py │ │ ├── test_backup03.py │ │ ├── test_base01.py │ │ ├── test_base02.py │ │ ├── test_base03.py │ │ ├── test_base04.py │ │ ├── test_base05.py │ │ ├── test_bug001.py │ │ ├── test_bug003.py │ │ ├── test_bug004.py │ │ ├── test_bug005.py │ │ ├── test_bug006.py │ │ ├── test_bug007.py │ │ ├── test_bulk01.py │ │ ├── test_bulk02.py │ │ ├── test_checkpoint01.py │ │ ├── test_checkpoint02.py │ │ ├── test_compact.py │ │ ├── test_compress01.py │ │ ├── test_config01.py │ │ ├── test_config02.py │ │ ├── test_config03.py │ │ ├── test_config04.py │ │ ├── test_config05.py │ │ ├── test_cursor01.py │ │ ├── test_cursor02.py │ │ ├── test_cursor03.py │ │ ├── test_cursor04.py │ │ ├── test_cursor05.py │ │ ├── test_cursor_compare.py │ │ ├── test_cursor_random.py │ │ ├── test_cursor_tracker.py │ │ ├── test_drop.py │ │ ├── test_drop_create.py │ │ ├── test_dump.py │ │ ├── test_dupc.py │ │ ├── test_empty.py │ │ ├── test_excl.py │ │ ├── test_gethome.py │ │ ├── test_index01.py │ │ ├── test_isnew.py │ │ ├── test_lsm01.py │ │ ├── test_lsm02.py │ │ ├── test_overwrite.py │ │ ├── test_perf001.py │ │ ├── test_priv01.py │ │ ├── test_reconfig.py │ │ ├── test_rename.py │ │ ├── test_salvage.py │ │ ├── test_schema01.py │ │ ├── test_schema02.py │ │ ├── test_schema03.py │ │ ├── test_shared_cache.py │ │ ├── test_stat01.py │ │ ├── test_stat02.py │ │ ├── test_stat_log01.py │ │ ├── test_truncate01.py │ │ ├── test_truncate02.py │ │ ├── test_truncate03.py │ │ ├── test_txn01.py │ │ ├── test_txn02.py │ │ ├── test_txn03.py │ │ ├── test_txn04.py │ │ ├── test_txn05.py │ │ ├── test_upgrade.py │ │ ├── test_util01.py │ │ ├── test_util02.py │ │ ├── test_util03.py │ │ ├── test_util04.py │ │ ├── test_util07.py │ │ ├── test_util08.py │ │ ├── test_util09.py │ │ ├── test_util11.py │ │ ├── test_util12.py │ │ ├── test_verify.py │ │ ├── test_version.py │ │ ├── valgrind-python.supp │ │ ├── wtscenario.py │ │ ├── wttest.py │ │ └── wtthread.py │ └── tools │ ├── stat_data.py │ ├── statlog.py │ ├── wt_nvd3_util.py │ ├── wtperf_graph.py │ ├── wtperf_stats.py │ └── wtstats.py ├── index.js ├── package.json ├── src ├── AsyncWorkers.cc ├── NodeWiredTiger.hpp ├── WTConnection.cc ├── WTTable.cc └── wiredtiger.cc └── test └── test-basic.js /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2008-2014 WiredTiger, Inc. 2 | All rights reserved. 3 | 4 | This program is free software: you can redistribute it and/or modify it under 5 | the terms of either version 2 or version 3 of the GNU General Public License 6 | as published by the Free Software Foundation. 7 | 8 | This program is distributed in the hope that it will be useful, but WITHOUT 9 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 10 | FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 11 | details. 12 | 13 | For a license to use the WiredTiger software under conditions other than those 14 | described by the GNU General Public License, or for technical support for this 15 | software, contact WiredTiger, Inc. at info@wiredtiger.com. 16 | 17 | For further information, see the licensing section in the documentation. 18 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | WT_BUILD = deps/wiredtiger-2.2.1 2 | 3 | all: build_wt 4 | node-gyp build -d 5 | 6 | clean: 7 | $(MAKE) -C $(WT_BUILD) clean 8 | node-gyp clean 9 | 10 | config: 11 | mkdir -p $(WT_BUILD) 12 | (TOP=`pwd` && cd $(WT_BUILD) && env CFLAGS="-fPIC" ./configure --enable-snappy --enable-bzip2 --enable-zlib --prefix=$$TOP) 13 | node-gyp configure -d 14 | 15 | build_wt: 16 | $(MAKE) -C $(WT_BUILD) install 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /TODO: -------------------------------------------------------------------------------- 1 | Last updated by Alexander Gorrod 23 May 2014. Probably out of date: 2 | 3 | * Run test cases with Valgrind to ensure memory isn't leaking 4 | * Implement an iterator API via the C++ extension 5 | * Expose the iterator API as a Node stream (http://nodejs.org/api/stream.html) 6 | * Add ability to rate throttle operations. At the moment it's trivial to 7 | overrun the WiredTiger async operation count max (4096). 8 | -------------------------------------------------------------------------------- /binding.gyp: -------------------------------------------------------------------------------- 1 | { 2 | "targets": [ 3 | { 4 | "target_name": "wiredtiger", 5 | "sources": [ 6 | "src/wiredtiger.cc", 7 | "src/AsyncWorkers.cc", 8 | "src/WTConnection.cc", 9 | "src/WTCursor.cc", 10 | "src/WTTable.cc" 11 | ], 12 | "include_dirs": [ "./include", " [] 5 | # 6 | # If the directory exists, it is added to AUTO_SUBDIRS. 7 | # If a condition is included, the subdir is made conditional via AM_CONDITIONAL 8 | bench/tcbench 9 | bench/wtperf 10 | examples/c 11 | ext/collators/reverse 12 | ext/compressors/bzip2 BZIP2 13 | ext/compressors/nop 14 | ext/compressors/snappy SNAPPY 15 | ext/compressors/zlib ZLIB 16 | ext/datasources/helium HAVE_HELIUM 17 | ext/test/kvs_bdb HAVE_BERKELEY_DB 18 | lang/java JAVA 19 | lang/python PYTHON 20 | test/bloom 21 | test/fops 22 | test/format HAVE_BERKELEY_DB 23 | test/huge 24 | test/salvage 25 | test/thread 26 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/build_posix/aclocal/cond-if.m4: -------------------------------------------------------------------------------- 1 | dnl AC_CONFIG_FILES conditionalization requires using AM_COND_IF, however 2 | dnl AM_COND_IF is new to Automake 1.11. To use it on new Automake without 3 | dnl requiring same, a fallback implementation for older Autoconf is provided. 4 | dnl Note that disabling of AC_CONFIG_FILES requires Automake 1.11, this code 5 | dnl is correct only in terms of m4sh generated script. 6 | m4_ifndef([AM_COND_IF], [AC_DEFUN([AM_COND_IF], [ 7 | if test -z "$$1_TRUE"; then : 8 | m4_n([$2])[]dnl 9 | m4_ifval([$3], 10 | [else 11 | $3 12 | ])dnl 13 | fi[]dnl 14 | ])]) 15 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/build_posix/aclocal/ltversion.m4: -------------------------------------------------------------------------------- 1 | # ltversion.m4 -- version numbers -*- Autoconf -*- 2 | # 3 | # Copyright (C) 2004 Free Software Foundation, Inc. 4 | # Written by Scott James Remnant, 2004 5 | # 6 | # This file is free software; the Free Software Foundation gives 7 | # unlimited permission to copy and/or distribute it, with or without 8 | # modifications, as long as this notice is preserved. 9 | 10 | # @configure_input@ 11 | 12 | # serial 3337 ltversion.m4 13 | # This file is part of GNU Libtool 14 | 15 | m4_define([LT_PACKAGE_VERSION], [2.4.2]) 16 | m4_define([LT_PACKAGE_REVISION], [1.3337]) 17 | 18 | AC_DEFUN([LTVERSION_VERSION], 19 | [macro_version='2.4.2' 20 | macro_revision='1.3337' 21 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 22 | _LT_DECL(, macro_revision, 0) 23 | ]) 24 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/build_posix/aclocal/version-set.m4: -------------------------------------------------------------------------------- 1 | dnl build by dist/s_version 2 | 3 | VERSION_MAJOR=2 4 | VERSION_MINOR=1 5 | VERSION_PATCH=2 6 | VERSION_STRING='"WiredTiger 2.1.2: (March 28, 2014)"' 7 | 8 | AC_SUBST(VERSION_MAJOR) 9 | AC_SUBST(VERSION_MINOR) 10 | AC_SUBST(VERSION_PATCH) 11 | AC_SUBST(VERSION_STRING) 12 | 13 | VERSION_NOPATCH=2.1 14 | AC_SUBST(VERSION_NOPATCH) 15 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/build_posix/aclocal/version.m4: -------------------------------------------------------------------------------- 1 | dnl WiredTiger product version for AC_INIT. Maintained by dist/s_version 2 | 2.1.2 3 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/build_posix/makemake: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Build Makefile.am 4 | 5 | # Process Make.base, insert subdirs that exist from Make.subdirs 6 | # (in release trees, some of the subdirs might be excluded). 7 | (sed -n '1,/BEGIN SUBDIRS/p' Make.base 8 | 9 | echo "SUBDIRS = ." 10 | sed -e 's/#.*$//' -e '/^$/d' Make.subdirs | (while read dir cond ; do 11 | test -d ../$dir || continue 12 | if test -n "$cond" ; then 13 | cat < ../Makefile.am 33 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/build_posix/wiredtiger.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: WiredTiger 7 | Description: The WiredTiger Data Engine 8 | Requires: 9 | Version: @PACKAGE_VERSION@ 10 | Libs: -L${libdir} -lwiredtiger-@VERSION_NOPATCH@ 11 | Cflags: -I${includedir}/wiredtiger-@VERSION_NOPATCH@ 12 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/dist/db.py: -------------------------------------------------------------------------------- 1 | # A simple python script to build a file that can be bulk-loaded into a 2 | # WiredTiger database for smoke-testing. 3 | 4 | import getopt, random, sys 5 | 6 | dmin = 7 # Minimum data size 7 | dmax = 837 # Maximum data size 8 | 9 | seed = None # Random number seed 10 | pairs = 100000 # Key/data pairs to output 11 | 12 | opts, args = getopt.getopt(sys.argv[1:], "m:n:s:") 13 | for o, a in opts: 14 | if o == "-m": 15 | dmax = int(a) 16 | elif o == "-n": 17 | pairs = int(a) 18 | elif o == "-s": 19 | seed = int(a) 20 | 21 | random.seed(seed) 22 | for i in range(pairs): 23 | fmt = "%010d\ndata: %0" + str(random.randrange(dmin, dmax)) + "d" 24 | print(fmt % (i, i)) 25 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/dist/dist.py: -------------------------------------------------------------------------------- 1 | import filecmp, os, re, shutil 2 | 3 | # source_files -- 4 | # Return a list of the source file names in filelist. 5 | def source_files(): 6 | file_re = re.compile(r'^\w') 7 | for line in open('filelist', 'r'): 8 | if file_re.match(line): 9 | yield os.path.join('..', line.rstrip()) 10 | 11 | # source_dirs -- 12 | # Return a list of the directories in filelist. 13 | def source_dirs(): 14 | dirs = set() 15 | for f in source_files(): 16 | dirs.add(os.path.dirname(f)) 17 | return dirs 18 | 19 | def print_source_dirs(): 20 | for d in source_dirs(): 21 | print d 22 | 23 | # compare_srcfile -- 24 | # Compare two files, and if they differ, update the source file. 25 | def compare_srcfile(tmp, src): 26 | if not os.path.isfile(src) or not filecmp.cmp(tmp, src, shallow=False): 27 | print('Updating ' + src) 28 | shutil.copyfile(tmp, src) 29 | os.remove(tmp) 30 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/dist/java_doc.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # This program pulls the function names from wiredtiger.in and generates 4 | # an input file for Java SWIG that adds doxygen copydoc comments to functions. 5 | 6 | import os, re, sys 7 | import api_data 8 | from dist import compare_srcfile 9 | 10 | # Temporary file. 11 | tmp_file = '__tmp' 12 | 13 | ##################################################################### 14 | # Update wiredtiger.in with doxygen comments 15 | ##################################################################### 16 | f='../src/include/wiredtiger.in' 17 | o='../lang/java/java_doc.i' 18 | tfile = open(tmp_file, 'w') 19 | 20 | tfile.write('''/* DO NOT EDIT: automatically built by dist/java_doc.py. */ 21 | 22 | ''') 23 | 24 | cclass_re = re.compile('^struct __([a-z_]*) {') 25 | cfunc_re = re.compile('\t.*? __F\(([a-z_]*)\)') 26 | 27 | curr_class = "" 28 | for line in open(f, 'r'): 29 | 30 | m = cclass_re.match(line) 31 | if m: 32 | curr_class = m.group(1) 33 | 34 | if curr_class == "": 35 | continue 36 | 37 | m = cfunc_re.match(line) 38 | if m: 39 | tfile.write('COPYDOC(__' + curr_class.lower() + ', ' + 40 | curr_class.upper() + ', ' + m.group(1) + ')\n') 41 | 42 | tfile.close() 43 | compare_srcfile(tmp_file, o) 44 | 45 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/dist/s_copyright.list: -------------------------------------------------------------------------------- 1 | skip bench/tcbench/wttest.c 2 | skip build_posix/wiredtiger_config.h 3 | skip dist/api_config.py 4 | skip dist/api_data.py 5 | skip dist/api_err.py 6 | skip dist/db.py 7 | skip dist/dist.py 8 | skip dist/flags.py 9 | skip dist/java_doc.py 10 | skip dist/log.py 11 | skip dist/log_data.py 12 | skip dist/serial.py 13 | skip dist/stat.py 14 | skip dist/stat_data.py 15 | skip dist/style.py 16 | skip lang/java/java_doc.i 17 | skip lang/python/wiredtiger/__init__.py 18 | skip lang/python/wiredtiger_wrap.c 19 | skip src/api/api_strerror.c 20 | skip src/config/config_def.c 21 | skip src/docs/tools/doxypy.py 22 | skip src/include/extern.h 23 | skip src/include/flags.h 24 | skip src/include/queue.h 25 | skip src/log/log_auto.c 26 | skip src/support/stat.c 27 | skip test/packing/intpack-test.c 28 | skip test/packing/intpack-test2.c 29 | skip test/packing/packing-test.c 30 | skip tools/stat_data.py 31 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/dist/s_define: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Complain about unused #defines. 4 | t=__wt.$$ 5 | trap 'rm -f $t; exit 0' 0 1 2 3 13 15 6 | 7 | # List of files to search. 8 | l=`sed -e 's,#.*,,' -e '/^$/d' -e 's,^,../,' filelist` 9 | l="$l `echo ../src/include/*.i ../src/utilities/*.c ../test/*/*.c`" 10 | 11 | ( 12 | # Copy out the list of #defines we don't use, but it's OK. 13 | sed -e '/^$/d' -e '/^#/d' < s_define.list 14 | 15 | # Get the list of #defines. 16 | # Ignore the list of configuration objects 17 | # Ignore the list of statistic "keys" generated for applications. 18 | search=`cat ../src/include/*.[hi] ../src/include/*.in | 19 | sed -e '/configuration section: BEGIN/,/configuration section: END/d' \ 20 | -e '/Statistics section: BEGIN/,/Statistics section: END/d' | 21 | egrep '^#define' | 22 | sed 's/#define[ ][ ]*\([A-Za-z_][A-Za-z0-9_]*\).*/\1/' | 23 | sort -u` 24 | 25 | # Print the list of macros, followed by the occurrences: we're looking for 26 | # macros that only appear once. 27 | echo "$search" 28 | fgrep -who "$search" $l 29 | 30 | ) | sort | uniq -u > $t 31 | 32 | test -s $t && cat $t 33 | 34 | exit 0 35 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/dist/s_funcs: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Complain about unused functions 4 | t=__wt.$$ 5 | trap 'rm -f $t; exit 0' 0 1 2 3 13 15 6 | 7 | # List of files to search. 8 | l=`sed -e 's,#.*,,' -e '/^$/d' -e 's,^,../,' filelist` 9 | l="$l `echo ../src/*/*.i ../src/utilities/*.c`" 10 | 11 | ( 12 | # Copy out the functions we don't use, but it's OK. 13 | sed -e '/^$/d' -e '/^#/d' < s_funcs.list 14 | 15 | # Get the list of functions 16 | search=`egrep -h '^[a-zA-Z0-9_][a-zA-Z0-9_]*\(' $l | sed -e 's/(.*//' | sort -u` 17 | 18 | # Print the list of functions, followed by the occurrences: we're looking for 19 | # functions that only appear once 20 | echo "$search" 21 | sed -n '/{/,/^}/p' $l | fgrep -wo "$search" 22 | 23 | sed -n '/^#define/,/[^\\]$/p' ../src/include/*.h ../src/include/*.in | 24 | fgrep -who "$search" 25 | ) | sort | uniq -u > $t 26 | 27 | test -s $t && cat $t 28 | 29 | exit 0 30 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/dist/s_funcs.list: -------------------------------------------------------------------------------- 1 | # List of functions that aren't found by s_funcs, but that's OK. 2 | WT_CURDUMP_PASS 3 | __bit_ffs 4 | __bit_nclr 5 | __ovfl_onpage_dump 6 | __ovfl_reuse_dump 7 | __ovfl_txnc_dump 8 | __wt_bloom_drop 9 | __wt_bloom_get 10 | __wt_cache_dump 11 | __wt_config_getone 12 | __wt_cursor_get_raw_value 13 | __wt_debug_addr 14 | __wt_debug_offset 15 | __wt_debug_tree 16 | __wt_debug_tree_all 17 | __wt_fsync 18 | __wt_lex_compare 19 | __wt_lex_compare_skip 20 | __wt_log_read 21 | __wt_log_scan 22 | __wt_nlpo2 23 | __wt_nlpo2_round 24 | __wt_print_huffman_code 25 | wiredtiger_config_parser_open 26 | wiredtiger_pack_int 27 | wiredtiger_pack_item 28 | wiredtiger_pack_str 29 | wiredtiger_pack_uint 30 | wiredtiger_struct_pack 31 | wiredtiger_struct_size 32 | wiredtiger_struct_unpack 33 | wiredtiger_unpack_int 34 | wiredtiger_unpack_item 35 | wiredtiger_unpack_start 36 | wiredtiger_unpack_str 37 | wiredtiger_unpack_uint 38 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/dist/s_getopt: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Complain if someone breaks getopt usage in the wt utility. 4 | egrep -w 'opterr|optind|optopt|optreset|optarg' ../src/utilities/*.c 5 | 6 | exit 0 7 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/dist/s_longlines: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Check for long lines 4 | t=__wt.$$ 5 | trap 'rm -f $t; exit 0' 0 1 2 3 13 15 6 | 7 | l=`(cd .. && 8 | find bench/wtperf examples ext src test -name '*.[chisy]' && 9 | find dist -name '*.py' && 10 | find src -name '*.in') | 11 | grep -v 'support/stat\.c'` 12 | 13 | for f in $l ; do 14 | expand -t8 < ../$f | awk -- \ 15 | "{if(length(\$0) > 80) printf(\"%s:%d\\n\", \"$f\", NR)}" 16 | done 17 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/dist/s_prototypes: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Build a list of internal function and variable prototypes. 4 | t=__wt.$$ 5 | trap 'rm -f $t; exit 0' 0 1 2 3 13 15 6 | 7 | ( 8 | cat < 80) 40 | gsub(", ", ",\n "); 41 | print $0 42 | }' > $t 43 | 44 | f=../src/include/extern.h 45 | cmp $t $f > /dev/null 2>&1 || 46 | (echo "Building $f" && rm -f $f && cp $t $f) 47 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/dist/s_readme: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | t=__wt.$$ 4 | trap 'rm -f $t; exit 0' 0 1 2 3 13 15 5 | f=../README 6 | 7 | . ../RELEASE 8 | 9 | force=no 10 | while : 11 | do case "$1" in 12 | -f) # Force versions to be updated 13 | force=yes 14 | shift;; 15 | *) 16 | break;; 17 | esac 18 | done 19 | 20 | # If the version hasn't changed and we aren't forcing the issue, we're done. 21 | # Don't generate a new README file just because the date changed unless forced: 22 | # that happens all the time. 23 | if test "$force" = no ; then 24 | cnt=`(sed -e q < $f; echo "$WIREDTIGER_VERSION_STRING") | 25 | sed -e 's/:.*//' | sort -u | wc -l` 26 | test $cnt -eq 1 && exit 0 27 | fi 28 | 29 | cat << END_TEXT > $t 30 | $WIREDTIGER_VERSION_STRING 31 | 32 | This is version $WIREDTIGER_VERSION of WiredTiger. 33 | 34 | WiredTiger release packages and documentation can be found at: 35 | 36 | http://source.wiredtiger.com/ 37 | 38 | Information on configuring, building and installing WiredTiger can be 39 | found at: 40 | 41 | http://source.wiredtiger.com/$WIREDTIGER_VERSION/install.html 42 | 43 | WiredTiger licensing information can be found at: 44 | 45 | http://source.wiredtiger.com/license.html 46 | 47 | For general questions and discussion, please use the WiredTiger mailing 48 | list: 49 | 50 | http://groups.google.com/group/wiredtiger-users 51 | END_TEXT 52 | 53 | cmp $t $f > /dev/null 2>&1 || 54 | (echo "Building $f" && rm -f $f && cp $t $f) 55 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/dist/s_release.list: -------------------------------------------------------------------------------- 1 | # Exclusions from release packages. 2 | # Each non-comment line is passed as an "--exclude" argument to "hg archive". 3 | lang/python/src 4 | src/server 5 | test/format 6 | test/packing 7 | test/salvage 8 | test/snapshot 9 | test/thread 10 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/dist/s_stat: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Complain about unused statistics fields. 4 | t=__wt.$$ 5 | trap 'rm -f $t; exit 0' 0 1 2 3 13 15 6 | 7 | # List of files to search: skip stat.c, it lists all of the fields by 8 | # definition. 9 | l=`sed \ 10 | -e '/src\/support\/stat.c/d' \ 11 | -e 's,#.*,,' \ 12 | -e '/^$/d' \ 13 | -e 's,^,../,' filelist` 14 | l="$l `echo ../src/include/*.i`" 15 | 16 | ( 17 | # Get the list of statistics fields. 18 | search=`sed \ 19 | -e 's/^ WT_STATS \([a-z_*]*\);$/\1/p' \ 20 | -e d ../src/include/stat.h | 21 | sort` 22 | 23 | echo "$search" 24 | fgrep -who "$search" $l) | sort | uniq -u > $t 25 | 26 | test -s $t && { 27 | echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" 28 | echo 'unused statistics fields' 29 | echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" 30 | cat $t 31 | exit 1 32 | } 33 | exit 0 34 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/dist/s_string: -------------------------------------------------------------------------------- 1 | #!/bin/sh - 2 | # 3 | # Check spelling in comments and quoted strings from the source files. 4 | 5 | t=__wt.$$ 6 | trap 'rm -f $t; exit 0' 0 1 2 3 13 15 7 | 8 | # Insulate against locale-specific sort order 9 | LC_ALL=C 10 | export LC_ALL 11 | 12 | # If aspell has not been installed, quit 13 | type aspell > /dev/null 2>&1 || { 14 | echo 'skipped: aspell not found' 15 | exit 0 16 | } 17 | 18 | check() { 19 | aspell --mode=ccpp --lang=en list < ../$1 | 20 | sort -u | 21 | comm -23 /dev/stdin s_string.ok > $t 22 | test -s $t && { 23 | echo "==== $1" 24 | cat $t 25 | } 26 | } 27 | 28 | # List of files to spellchk. 29 | l=`(cd .. && 30 | find examples ext src test -name '*.[chisy]' && 31 | find src -name '*.in')` 32 | 33 | for f in $l; do 34 | check $f 35 | done 36 | 37 | exit 0 38 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/dist/s_symbols: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Check for illegal external symbols. 4 | # 5 | t=__a.c 6 | trap 'rm -f $t; exit 0' 0 1 2 3 13 15 7 | 8 | case `uname` in 9 | Darwin) 10 | NM='nm -gUo $f | egrep " T | D " | sed "s/ _/ /"' 11 | ;; 12 | *) 13 | # We require GNU nm, which may not be installed. 14 | type nm > /dev/null 2>&1 && 15 | (nm --version | grep 'GNU nm') > /dev/null 2>&1 || { 16 | echo 'skipped: GNU nm not found' 17 | exit 0 18 | } 19 | NM='nm --extern-only --defined-only --print-file-name $f' 20 | ;; 21 | esac 22 | 23 | # This check would normally be done after the library is built, but this way 24 | # we don't forget about a symbol during development. Check the previously 25 | # built library, if it exists. 26 | f=../build_posix/.libs/libwiredtiger.a 27 | test -f $f || { 28 | echo "skipped: libwiredtiger.a not found" 29 | exit 0 30 | } 31 | 32 | (sed -e '/^#/d' s_symbols.list && 33 | eval $NM | 34 | sed 's/.* //' | 35 | egrep -v '^__wt') | 36 | sort | 37 | uniq -u > $t 38 | 39 | test -s $t && { 40 | echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" 41 | echo 'unexpected external symbols in the WiredTiger library' 42 | echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" 43 | cat $t 44 | exit 1 45 | } 46 | 47 | exit 0 48 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/dist/s_symbols.list: -------------------------------------------------------------------------------- 1 | # List of OK external symbols. 2 | wiredtiger_config_parser_open 3 | wiredtiger_open 4 | wiredtiger_pack_close 5 | wiredtiger_pack_int 6 | wiredtiger_pack_item 7 | wiredtiger_pack_start 8 | wiredtiger_pack_str 9 | wiredtiger_pack_uint 10 | wiredtiger_strerror 11 | wiredtiger_struct_pack 12 | wiredtiger_struct_size 13 | wiredtiger_struct_unpack 14 | wiredtiger_unpack_int 15 | wiredtiger_unpack_item 16 | wiredtiger_unpack_start 17 | wiredtiger_unpack_str 18 | wiredtiger_unpack_uint 19 | wiredtiger_version 20 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/dist/s_tags: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Build tags file. 4 | # 5 | t=__a.c 6 | trap 'rm -f $t; exit 0' 0 1 2 3 13 15 7 | 8 | # Skip this when building release packages 9 | test -n "$WT_RELEASE_BUILD" && exit 0 10 | 11 | # We require ctags which may not be installed. 12 | type ctags > /dev/null 2>&1 || { 13 | echo 'skipped: ctags not found' > $t 14 | exit 0 15 | } 16 | 17 | # Test to see what flags this ctags binary supports. 18 | # Use the -d, -t and -w flags to ctags if available. 19 | flags="" 20 | echo "f() { int a; }" > $t 21 | for i in -d -t -w --language-force=C; do 22 | if ctags $i $t 2>/dev/null; then 23 | flags="$i $flags" 24 | fi 25 | done 26 | 27 | # Generate a tags file for the build directory 28 | (cd ../build_posix 29 | rm -f tags 30 | ctags $flags ../src/include/*.in ../src/*/*.[chi] 2>/dev/null) 31 | 32 | # Put the shared tags file in the include directory, it's at the same level in 33 | # the tree as the other source files. 34 | (cd ../src/include 35 | rm -f tags 36 | ctags $flags ../include/*.in ../*/*.[chi] 2>/dev/null) 37 | 38 | # Link to the tags file from standard build and source directories. 39 | dirs="`python -c 'import dist; dist.print_source_dirs()'`" 40 | for i in $dirs; do 41 | (cd $i && rm -f tags && ln -s ../include/tags .) 42 | done 43 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/dist/s_version: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Propagate version changes to the necessary files. 4 | . ../RELEASE 5 | 6 | m4dir=../build_posix/aclocal 7 | 8 | force=no 9 | while : 10 | do case "$1" in 11 | -f) # Force versions to be updated 12 | force=yes 13 | shift;; 14 | *) 15 | break;; 16 | esac 17 | done 18 | 19 | # If the version hasn't changed and we're not forcing the issue, we're done. 20 | if test "$force" = no -a \ 21 | -f $m4dir/version.m4 -a \ 22 | -f $m4dir/version-set.m4 ; then 23 | eval `grep '^VERSION_[A-Z]*=' $m4dir/version-set.m4` 24 | if test x${WIREDTIGER_VERSION_MAJOR} = x${VERSION_MAJOR} -a \ 25 | x${WIREDTIGER_VERSION_MINOR} = x${VERSION_MINOR} -a \ 26 | x${WIREDTIGER_VERSION_PATCH} = x${VERSION_PATCH} ; then 27 | exit 0 28 | fi 29 | fi 30 | 31 | echo "Building $m4dir/version.m4" 32 | cat < $m4dir/version.m4 33 | dnl WiredTiger product version for AC_INIT. Maintained by dist/s_version 34 | ${WIREDTIGER_VERSION_MAJOR}.${WIREDTIGER_VERSION_MINOR}.${WIREDTIGER_VERSION_PATCH} 35 | EOF 36 | 37 | echo "Building $m4dir/version-set.m4" 38 | cat < $m4dir/version-set.m4 39 | dnl build by dist/s_version 40 | 41 | VERSION_MAJOR=${WIREDTIGER_VERSION_MAJOR} 42 | VERSION_MINOR=${WIREDTIGER_VERSION_MINOR} 43 | VERSION_PATCH=${WIREDTIGER_VERSION_PATCH} 44 | VERSION_STRING='"${WIREDTIGER_VERSION_STRING}"' 45 | 46 | AC_SUBST(VERSION_MAJOR) 47 | AC_SUBST(VERSION_MINOR) 48 | AC_SUBST(VERSION_PATCH) 49 | AC_SUBST(VERSION_STRING) 50 | 51 | VERSION_NOPATCH=${WIREDTIGER_VERSION_MAJOR}.${WIREDTIGER_VERSION_MINOR} 52 | AC_SUBST(VERSION_NOPATCH) 53 | EOF 54 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/dist/s_whitespace: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Single space and remove trailing whitespace from source files. 4 | t=__wt.$$ 5 | trap 'rm -f $t; exit 0' 0 1 2 3 13 15 6 | 7 | ws() 8 | { 9 | sed -e 's/[ ][ ]*$//' \ 10 | -e '/^$/N' \ 11 | -e '/\n$/D' < $1 > $t 12 | cmp $t $1 > /dev/null 2>&1 || (echo "$1" && cp $t $1) 13 | } 14 | 15 | cd .. 16 | 17 | for f in `find dist -name '*.py' -name 's_*'`; do 18 | ws $f 19 | done 20 | 21 | for f in `find examples ext src test \ 22 | -name '*.[chi]' -o \ 23 | -name '*.dox' -o \ 24 | -name '*.in' -o \ 25 | -name 'Makefile.am'`; do 26 | if expr "$f" : ".*/Makefile.in" > /dev/null; then 27 | continue 28 | fi 29 | ws $f 30 | done 31 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/LogoFinal-header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/LogoFinal-header.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/admin.js: -------------------------------------------------------------------------------- 1 | var admin = 2 | [ 3 | [ "Database Home Directory", "home.html", null ], 4 | [ "Database Configuration", "database_config.html", [ 5 | [ "WiredTiger.config file", "database_config.html#config_file", null ], 6 | [ "WIREDTIGER_CONFIG environment variable", "database_config.html#config_env", null ] 7 | ] ], 8 | [ "Hot backup", "hot_backup.html", null ], 9 | [ "Filesystems", "filesystems.html", [ 10 | [ "Remote file systems", "filesystems.html#remote", null ] 11 | ] ], 12 | [ "Security", "security.html", [ 13 | [ "Database directory permissions", "security.html#directory_permissions", null ], 14 | [ "File permissions", "security.html#file_permissions", null ], 15 | [ "Environment variables", "security.html#environment_variables", null ] 16 | ] ] 17 | ]; -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/bc_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/bc_s.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/bdwn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/bdwn.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/classcom_1_1wiredtiger_1_1db_1_1_connection.js: -------------------------------------------------------------------------------- 1 | var classcom_1_1wiredtiger_1_1db_1_1_connection = 2 | [ 3 | [ "Connection", "classcom_1_1wiredtiger_1_1db_1_1_connection.html#a9f3713033d9e9a1a84f4670da907c55d", null ], 4 | [ "close", "classcom_1_1wiredtiger_1_1db_1_1_connection.html#a2458441ed6301620ef4db71f3ef5c47c", null ], 5 | [ "configure_method", "classcom_1_1wiredtiger_1_1db_1_1_connection.html#a1b9848afb4bfe4b790579490e6e2263c", null ], 6 | [ "delete", "classcom_1_1wiredtiger_1_1db_1_1_connection.html#a0e8af34ebdff2b71b682095ed085cebe", null ], 7 | [ "get_home", "classcom_1_1wiredtiger_1_1db_1_1_connection.html#ad52f0d0c36bcedfa2214f233f3ee020a", null ], 8 | [ "is_new", "classcom_1_1wiredtiger_1_1db_1_1_connection.html#a7ba72791fba4a03984c0d9b8faca1284", null ], 9 | [ "java_init", "classcom_1_1wiredtiger_1_1db_1_1_connection.html#a0ba0590fcde7f51b426a5ceec5013581", null ], 10 | [ "load_extension", "classcom_1_1wiredtiger_1_1db_1_1_connection.html#a1c404c400a9873926810241ad0997a4a", null ], 11 | [ "open_session", "classcom_1_1wiredtiger_1_1db_1_1_connection.html#ad03cfc01de34342ab8c76934accb8745", null ], 12 | [ "reconfigure", "classcom_1_1wiredtiger_1_1db_1_1_connection.html#a5e67d007427eb9a0b1c749b8c85468e2", null ], 13 | [ "swigCMemOwn", "classcom_1_1wiredtiger_1_1db_1_1_connection.html#a31658ee0e58784dd785b7226b1309476", null ] 14 | ]; -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/classcom_1_1wiredtiger_1_1db_1_1_pack_format_input_stream.js: -------------------------------------------------------------------------------- 1 | var classcom_1_1wiredtiger_1_1db_1_1_pack_format_input_stream = 2 | [ 3 | [ "PackFormatInputStream", "classcom_1_1wiredtiger_1_1db_1_1_pack_format_input_stream.html#a30f15b7515c05b2d4ef064ed59f2a61d", null ], 4 | [ "available", "classcom_1_1wiredtiger_1_1db_1_1_pack_format_input_stream.html#a4b75572c2005ba843e9fb4d45ba43992", null ], 5 | [ "checkType", "classcom_1_1wiredtiger_1_1db_1_1_pack_format_input_stream.html#a45548e617a2a5f875a20fafc8bbef892", null ], 6 | [ "consume", "classcom_1_1wiredtiger_1_1db_1_1_pack_format_input_stream.html#a0f3fdfa308098ab9292f3ce21b9597b5", null ], 7 | [ "getLengthFromFormat", "classcom_1_1wiredtiger_1_1db_1_1_pack_format_input_stream.html#af2d86bb20eaf9060fb451af240268982", null ], 8 | [ "getType", "classcom_1_1wiredtiger_1_1db_1_1_pack_format_input_stream.html#aa5b9c609c6cf7c97436166ce0be47fa2", null ], 9 | [ "reset", "classcom_1_1wiredtiger_1_1db_1_1_pack_format_input_stream.html#a6d76b35ca4f915649551a1a22a8b2043", null ], 10 | [ "toString", "classcom_1_1wiredtiger_1_1db_1_1_pack_format_input_stream.html#a36c698c89b0285773831ac0fe2bd3968", null ], 11 | [ "format", "classcom_1_1wiredtiger_1_1db_1_1_pack_format_input_stream.html#af05a74562f8afd152e2845008c7d78c3", null ], 12 | [ "formatOff", "classcom_1_1wiredtiger_1_1db_1_1_pack_format_input_stream.html#a33b3ae04d36e6da5e48613bd4bf26d61", null ], 13 | [ "formatRepeatCount", "classcom_1_1wiredtiger_1_1db_1_1_pack_format_input_stream.html#af93a203c115920ab2640bee27ab6ca63", null ] 14 | ]; -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/classcom_1_1wiredtiger_1_1db_1_1_wired_tiger_exception.js: -------------------------------------------------------------------------------- 1 | var classcom_1_1wiredtiger_1_1db_1_1_wired_tiger_exception = 2 | [ 3 | [ "WiredTigerException", "classcom_1_1wiredtiger_1_1db_1_1_wired_tiger_exception.html#a85739165f128be55dc68797cf4e055cf", null ] 4 | ]; -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/classcom_1_1wiredtiger_1_1db_1_1_wired_tiger_packing_exception.js: -------------------------------------------------------------------------------- 1 | var classcom_1_1wiredtiger_1_1db_1_1_wired_tiger_packing_exception = 2 | [ 3 | [ "WiredTigerPackingException", "classcom_1_1wiredtiger_1_1db_1_1_wired_tiger_packing_exception.html#a6f3076b8f75c857e7a940af4154f0201", null ] 4 | ]; -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/closed.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/cursor_ops.js: -------------------------------------------------------------------------------- 1 | var cursor_ops = 2 | [ 3 | [ "Opening a cursor", "cursor_ops.html#cursor_opening", null ], 4 | [ "Closing a cursor", "cursor_ops.html#cursor_closing", null ], 5 | [ "Positioning a cursor", "cursor_ops.html#cursor_position", null ], 6 | [ "Inserting and updating", "cursor_ops.html#cursor_writes", null ], 7 | [ "Cursor position after error", "cursor_ops.html#cursor_error", null ], 8 | [ "Cursor key/value memory scoping", "cursor_ops.html#cursor_memory_scoping", null ], 9 | [ "Cursor random", "cursor_random.html", null ] 10 | ]; -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/cursors.js: -------------------------------------------------------------------------------- 1 | var cursors = 2 | [ 3 | [ "Cursors and Transactions", "cursors.html#cursors_transactions", null ], 4 | [ "Cursor types", "cursors.html#cursor_types", null ], 5 | [ "Projections", "cursors.html#cursor_projections", null ], 6 | [ "Raw mode", "cursors.html#cursor_raw", null ], 7 | [ "Reading WiredTiger Metadata", "cursors.html#metadata", null ], 8 | [ "Cursor operations", "cursor_ops.html", "cursor_ops" ], 9 | [ "Data Sources", "data_sources.html", [ 10 | [ "Builtin data sources", "data_sources.html#data_builtin", [ 11 | [ "Raw Files", "data_sources.html#data_files", null ], 12 | [ "Table Index data", "data_sources.html#data_indices", null ], 13 | [ "Statistics Data", "data_sources.html#data_statistics", null ] 14 | ] ] 15 | ] ] 16 | ]; -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/doxygen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/doxygen.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/enumcom_1_1wiredtiger_1_1db_1_1_search_status.js: -------------------------------------------------------------------------------- 1 | var enumcom_1_1wiredtiger_1_1db_1_1_search_status = 2 | [ 3 | [ "swigValue", "enumcom_1_1wiredtiger_1_1db_1_1_search_status.html#a8a5bd6d4c97ae4f2bc580b0c75a29d8f", null ], 4 | [ "FOUND", "enumcom_1_1wiredtiger_1_1db_1_1_search_status.html#aa6979e5adfd45aaedf3a893652a527e7", null ], 5 | [ "NOTFOUND", "enumcom_1_1wiredtiger_1_1db_1_1_search_status.html#a6e735ed1e0872a4883a86dafdf3db811", null ], 6 | [ "SMALLER", "enumcom_1_1wiredtiger_1_1db_1_1_search_status.html#a011813d112bd94ffb64fa8efe646a256", null ] 7 | ]; -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/examples.js: -------------------------------------------------------------------------------- 1 | var examples = 2 | [ 3 | [ "ex_access.c", "ex_access_8c-example.html", null ], 4 | [ "ex_call_center.c", "ex_call_center_8c-example.html", null ], 5 | [ "ex_config.c", "ex_config_8c-example.html", null ], 6 | [ "ex_cursor.c", "ex_cursor_8c-example.html", null ], 7 | [ "ex_extending.c", "ex_extending_8c-example.html", null ], 8 | [ "ex_file.c", "ex_file_8c-example.html", null ], 9 | [ "ex_hello.c", "ex_hello_8c-example.html", null ], 10 | [ "ex_pack.c", "ex_pack_8c-example.html", null ], 11 | [ "ex_schema.c", "ex_schema_8c-example.html", null ], 12 | [ "ex_stat.c", "ex_stat_8c-example.html", null ], 13 | [ "ex_thread.c", "ex_thread_8c-example.html", null ] 14 | ]; -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/file_formats.js: -------------------------------------------------------------------------------- 1 | var file_formats = 2 | [ 3 | [ "File formats", "file_formats.html#file_formats_formats", null ], 4 | [ "File formats and compression", "file_formats.html#file_formats_compression", null ], 5 | [ "Huffman Encoding", "huffman.html", null ] 6 | ]; -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/ftv2blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/ftv2blank.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/ftv2cl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/ftv2cl.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/ftv2doc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/ftv2doc.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/ftv2folderclosed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/ftv2folderclosed.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/ftv2folderopen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/ftv2folderopen.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/ftv2lastnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/ftv2lastnode.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/ftv2link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/ftv2link.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/ftv2mlastnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/ftv2mlastnode.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/ftv2mnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/ftv2mnode.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/ftv2mo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/ftv2mo.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/ftv2node.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/ftv2node.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/ftv2ns.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/ftv2ns.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/ftv2plastnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/ftv2plastnode.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/ftv2pnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/ftv2pnode.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/ftv2splitbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/ftv2splitbar.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/ftv2vertline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/ftv2vertline.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/functions_dup.js: -------------------------------------------------------------------------------- 1 | var functions_dup = 2 | [ 3 | [ "a", "functions.html", null ], 4 | [ "b", "functions_0x62.html", null ], 5 | [ "c", "functions_0x63.html", null ], 6 | [ "d", "functions_0x64.html", null ], 7 | [ "e", "functions_0x65.html", null ], 8 | [ "g", "functions_0x67.html", null ], 9 | [ "h", "functions_0x68.html", null ], 10 | [ "i", "functions_0x69.html", null ], 11 | [ "k", "functions_0x6b.html", null ], 12 | [ "l", "functions_0x6c.html", null ], 13 | [ "m", "functions_0x6d.html", null ], 14 | [ "n", "functions_0x6e.html", null ], 15 | [ "o", "functions_0x6f.html", null ], 16 | [ "p", "functions_0x70.html", null ], 17 | [ "r", "functions_0x72.html", null ], 18 | [ "s", "functions_0x73.html", null ], 19 | [ "t", "functions_0x74.html", null ], 20 | [ "u", "functions_0x75.html", null ], 21 | [ "v", "functions_0x76.html", null ], 22 | [ "w", "functions_0x77.html", null ] 23 | ]; -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/group__wt.js: -------------------------------------------------------------------------------- 1 | var group__wt = 2 | [ 3 | [ "data", "group__wt.html#a57f5e62aa968275d7e398cfa70e49450", null ], 4 | [ "size", "group__wt.html#abd8b1299dfb5c54dc049fa42a4680b55", null ] 5 | ]; -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/modules.js: -------------------------------------------------------------------------------- 1 | var modules = 2 | [ 3 | [ "WiredTiger API", "group__wt.html", "group__wt" ], 4 | [ "WiredTiger Extension API", "group__wt__ext.html", "group__wt__ext" ], 5 | [ "WiredTiger Java API", "group__wt__java.html", "group__wt__java" ] 6 | ]; -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/nav_f.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/nav_f.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/nav_g.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/nav_g.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/nav_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/nav_h.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/navtreeindex3.js: -------------------------------------------------------------------------------- 1 | var NAVTREEINDEX3 = 2 | { 3 | "tuning.html#tuning_system_buffer_cache":[0,2,22,7], 4 | "tuning.html#tuning_system_buffer_cache_direct_io":[0,2,22,7,0], 5 | "tuning.html#tuning_system_buffer_cache_os_cache_dirty_max":[0,2,22,7,1], 6 | "tuning.html#tuning_system_buffer_cache_os_cache_max":[0,2,22,7,2], 7 | "tuning.html#tuning_system_file_block":[0,2,22,6], 8 | "tuning.html#tuning_system_file_block_allocation":[0,2,22,6,1], 9 | "tuning.html#tuning_system_file_block_grow":[0,2,22,6,0], 10 | "upgrading.html":[0,4], 11 | "upgrading.html#version_13":[0,4,17], 12 | "upgrading.html#version_135":[0,4,16], 13 | "upgrading.html#version_136":[0,4,15], 14 | "upgrading.html#version_138":[0,4,14], 15 | "upgrading.html#version_139":[0,4,13], 16 | "upgrading.html#version_143":[0,4,12], 17 | "upgrading.html#version_153":[0,4,11], 18 | "upgrading.html#version_160":[0,4,10], 19 | "upgrading.html#version_161":[0,4,9], 20 | "upgrading.html#version_162":[0,4,8], 21 | "upgrading.html#version_163":[0,4,7], 22 | "upgrading.html#version_164":[0,4,6], 23 | "upgrading.html#version_165":[0,4,5], 24 | "upgrading.html#version_166":[0,4,4], 25 | "upgrading.html#version_20":[0,4,3], 26 | "upgrading.html#version_21":[0,4,2], 27 | "upgrading.html#version_211":[0,4,1], 28 | "upgrading.html#version_212":[0,4,0] 29 | }; 30 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/open.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/schema.js: -------------------------------------------------------------------------------- 1 | var schema = 2 | [ 3 | [ "Tables, rows and columns", "schema.html#schema_intro", null ], 4 | [ "Column types", "schema.html#schema_column_types", null ], 5 | [ "Format types", "schema.html#schema_format_types", null ], 6 | [ "Key and value formats", "schema.html#schema_key_and_value_formats", null ], 7 | [ "Cursor formats", "schema.html#schema_cursor_formats", null ], 8 | [ "Columns", "schema.html#schema_columns", null ], 9 | [ "Column groups", "schema.html#schema_column_groups", null ], 10 | [ "Indices", "schema.html#schema_indices", null ], 11 | [ "Index cursor projections", "schema.html#schema_index_projections", null ], 12 | [ "Code samples", "schema.html#schema_examples", null ], 13 | [ "Key/Value pairs", "keyvalue.html", null ], 14 | [ "Packing and Unpacking Data", "packing.html", [ 15 | [ "Code samples", "packing.html#config_examples", null ] 16 | ] ] 17 | ]; -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/struct____wt__txn__notify.js: -------------------------------------------------------------------------------- 1 | var struct____wt__txn__notify = 2 | [ 3 | [ "notify", "struct____wt__txn__notify.html#a37f71719969554d56292473eec533e80", null ] 4 | ]; -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/struct_w_t___c_o_l_l_a_t_o_r.js: -------------------------------------------------------------------------------- 1 | var struct_w_t___c_o_l_l_a_t_o_r = 2 | [ 3 | [ "compare", "struct_w_t___c_o_l_l_a_t_o_r.html#a9a6de866802dcd1a587cb1dbd69887df", null ], 4 | [ "terminate", "struct_w_t___c_o_l_l_a_t_o_r.html#aeeed44d2caacca7bc93bc48e8da7ae3f", null ] 5 | ]; -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/struct_w_t___c_o_m_p_r_e_s_s_o_r.js: -------------------------------------------------------------------------------- 1 | var struct_w_t___c_o_m_p_r_e_s_s_o_r = 2 | [ 3 | [ "compress", "struct_w_t___c_o_m_p_r_e_s_s_o_r.html#a87c339a3442b719896fa5cbe2c530843", null ], 4 | [ "compress_raw", "struct_w_t___c_o_m_p_r_e_s_s_o_r.html#a44483644eddbedd07f34e31c5beaf6b5", null ], 5 | [ "decompress", "struct_w_t___c_o_m_p_r_e_s_s_o_r.html#acf978486348484d467bd4f4032cf3795", null ], 6 | [ "pre_size", "struct_w_t___c_o_m_p_r_e_s_s_o_r.html#a0ae8cd41e9f3d65187a5e0209a075f02", null ], 7 | [ "terminate", "struct_w_t___c_o_m_p_r_e_s_s_o_r.html#aa7c0741f5e8b8c8f661911210b530fb9", null ] 8 | ]; -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/struct_w_t___c_o_n_f_i_g___i_t_e_m.js: -------------------------------------------------------------------------------- 1 | var struct_w_t___c_o_n_f_i_g___i_t_e_m = 2 | [ 3 | [ "WT_CONFIG_ITEM_STRING", "struct_w_t___c_o_n_f_i_g___i_t_e_m.html#a215d5ce41e53aa467dd940bace3f25f0aaf3e84e05814a538b630d161edba9c2d", null ], 4 | [ "WT_CONFIG_ITEM_BOOL", "struct_w_t___c_o_n_f_i_g___i_t_e_m.html#a215d5ce41e53aa467dd940bace3f25f0af17eadafa19dbf7e4679c9268289494d", null ], 5 | [ "WT_CONFIG_ITEM_ID", "struct_w_t___c_o_n_f_i_g___i_t_e_m.html#a215d5ce41e53aa467dd940bace3f25f0ad4cc6c35b608ec98a207cfd1d3a13922", null ], 6 | [ "WT_CONFIG_ITEM_NUM", "struct_w_t___c_o_n_f_i_g___i_t_e_m.html#a215d5ce41e53aa467dd940bace3f25f0a0d98189cee0438cd6c91bec663233085", null ], 7 | [ "WT_CONFIG_ITEM_STRUCT", "struct_w_t___c_o_n_f_i_g___i_t_e_m.html#a215d5ce41e53aa467dd940bace3f25f0aa60d34a8a1fb1c7468cbd747a117fa8b", null ], 8 | [ "len", "struct_w_t___c_o_n_f_i_g___i_t_e_m.html#adff0f6e5a3f781f0228015e8336f1a14", null ], 9 | [ "str", "struct_w_t___c_o_n_f_i_g___i_t_e_m.html#aa0ce7d30a32600e16824966c638ee45f", null ], 10 | [ "type", "struct_w_t___c_o_n_f_i_g___i_t_e_m.html#a02883d8649c8f9cf4047ada5f7db9245", null ], 11 | [ "val", "struct_w_t___c_o_n_f_i_g___i_t_e_m.html#a4aefab7843f434e5a5cc18203e9fec5f", null ] 12 | ]; -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/struct_w_t___c_o_n_f_i_g___p_a_r_s_e_r.js: -------------------------------------------------------------------------------- 1 | var struct_w_t___c_o_n_f_i_g___p_a_r_s_e_r = 2 | [ 3 | [ "close", "struct_w_t___c_o_n_f_i_g___p_a_r_s_e_r.html#a44eea5e27a4da10006ab444ee7cf00f3", null ], 4 | [ "get", "struct_w_t___c_o_n_f_i_g___p_a_r_s_e_r.html#ad0b4eef618f34b00edfbac44b24c5c16", null ], 5 | [ "next", "struct_w_t___c_o_n_f_i_g___p_a_r_s_e_r.html#a2033bdd009b0a75ade51305f00a7dc8f", null ] 6 | ]; -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/struct_w_t___c_o_n_n_e_c_t_i_o_n.js: -------------------------------------------------------------------------------- 1 | var struct_w_t___c_o_n_n_e_c_t_i_o_n = 2 | [ 3 | [ "add_collator", "struct_w_t___c_o_n_n_e_c_t_i_o_n.html#a89290382c55f20e5a4e1bc9216c7a8c8", null ], 4 | [ "add_compressor", "struct_w_t___c_o_n_n_e_c_t_i_o_n.html#a4f26bfa799ae5e72b536ac93d6200783", null ], 5 | [ "add_data_source", "struct_w_t___c_o_n_n_e_c_t_i_o_n.html#a459c1b71346bbcecb552ad73d43f27ea", null ], 6 | [ "add_extractor", "struct_w_t___c_o_n_n_e_c_t_i_o_n.html#a2d65a70a305838e2a2a728fe5cb54903", null ], 7 | [ "close", "struct_w_t___c_o_n_n_e_c_t_i_o_n.html#af535c517df851eeac8ebf3594d40b545", null ], 8 | [ "configure_method", "struct_w_t___c_o_n_n_e_c_t_i_o_n.html#ab81828b0c9dccc1ccf3d8ef863804137", null ], 9 | [ "get_extension_api", "struct_w_t___c_o_n_n_e_c_t_i_o_n.html#a99df5b3a17564eb5b3e4ec076590133d", null ], 10 | [ "get_home", "struct_w_t___c_o_n_n_e_c_t_i_o_n.html#a488fcba6b5abcdfca439d456564e8640", null ], 11 | [ "is_new", "struct_w_t___c_o_n_n_e_c_t_i_o_n.html#ae2bacefe9777b8ab32d8b22c292c4f39", null ], 12 | [ "load_extension", "struct_w_t___c_o_n_n_e_c_t_i_o_n.html#ab6a56facfd217e5ff687aa4c012e8d68", null ], 13 | [ "open_session", "struct_w_t___c_o_n_n_e_c_t_i_o_n.html#afc75c44ff4497627c59d9b6aaa64c9d8", null ], 14 | [ "reconfigure", "struct_w_t___c_o_n_n_e_c_t_i_o_n.html#a579141678af06217b22869cbc604c6d4", null ] 15 | ]; -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/struct_w_t___d_a_t_a___s_o_u_r_c_e.js: -------------------------------------------------------------------------------- 1 | var struct_w_t___d_a_t_a___s_o_u_r_c_e = 2 | [ 3 | [ "checkpoint", "struct_w_t___d_a_t_a___s_o_u_r_c_e.html#ada2d177d8eeb2ea334b9285d86b3a476", null ], 4 | [ "compact", "struct_w_t___d_a_t_a___s_o_u_r_c_e.html#a85e984645fb506a3d28881a26e7f79a0", null ], 5 | [ "create", "struct_w_t___d_a_t_a___s_o_u_r_c_e.html#aaf5e6a2d9c55c997af107bd4a5fb3a0c", null ], 6 | [ "drop", "struct_w_t___d_a_t_a___s_o_u_r_c_e.html#aeec4be1404f44dbe1f252bdaf1dc4557", null ], 7 | [ "open_cursor", "struct_w_t___d_a_t_a___s_o_u_r_c_e.html#a919c6b21ecaaffdbde671daab0440f71", null ], 8 | [ "range_truncate", "struct_w_t___d_a_t_a___s_o_u_r_c_e.html#afb903c629a7ae97494c670d90f40b71e", null ], 9 | [ "rename", "struct_w_t___d_a_t_a___s_o_u_r_c_e.html#a31c11e23e67bc774060a0619c1fb4b57", null ], 10 | [ "salvage", "struct_w_t___d_a_t_a___s_o_u_r_c_e.html#a14537b1218f8c98462ddcd6df83fd1d1", null ], 11 | [ "terminate", "struct_w_t___d_a_t_a___s_o_u_r_c_e.html#ab92be74825433258ff5e3631873ce57f", null ], 12 | [ "truncate", "struct_w_t___d_a_t_a___s_o_u_r_c_e.html#a97ab1fed33fffb8ead55ec854370e41a", null ], 13 | [ "verify", "struct_w_t___d_a_t_a___s_o_u_r_c_e.html#ad6487a12a6248371e43884cfef7715da", null ] 14 | ]; -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/struct_w_t___e_v_e_n_t___h_a_n_d_l_e_r.js: -------------------------------------------------------------------------------- 1 | var struct_w_t___e_v_e_n_t___h_a_n_d_l_e_r = 2 | [ 3 | [ "handle_close", "struct_w_t___e_v_e_n_t___h_a_n_d_l_e_r.html#a97c41f95e363a2a7aa9a9739be4d9ac8", null ], 4 | [ "handle_error", "struct_w_t___e_v_e_n_t___h_a_n_d_l_e_r.html#af26a6817fcc22499496c15b47c0ef788", null ], 5 | [ "handle_message", "struct_w_t___e_v_e_n_t___h_a_n_d_l_e_r.html#a4b8a4d66d1e4ae5c1e4a87b2eda618d9", null ], 6 | [ "handle_progress", "struct_w_t___e_v_e_n_t___h_a_n_d_l_e_r.html#a14a2a760c981563efb02555c0d0b267d", null ] 7 | ]; -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/struct_w_t___e_x_t_r_a_c_t_o_r.js: -------------------------------------------------------------------------------- 1 | var struct_w_t___e_x_t_r_a_c_t_o_r = 2 | [ 3 | [ "extract", "struct_w_t___e_x_t_r_a_c_t_o_r.html#a7a7069beebb84ffaa8ee02f8d7ebb162", null ] 4 | ]; -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/sync_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/sync_off.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/sync_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/sync_on.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/tab_a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/tab_a.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/tab_b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/tab_b.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/tab_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/tab_h.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/tab_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/docs/tab_s.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/tabs.css: -------------------------------------------------------------------------------- 1 | .tabs, .tabs2, .tabs3 { 2 | background-image: url('tab_b.png'); 3 | width: 100%; 4 | z-index: 101; 5 | font-size: 13px; 6 | font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; 7 | } 8 | 9 | .tabs2 { 10 | font-size: 10px; 11 | } 12 | .tabs3 { 13 | font-size: 9px; 14 | } 15 | 16 | .tablist { 17 | margin: 0; 18 | padding: 0; 19 | display: table; 20 | } 21 | 22 | .tablist li { 23 | float: left; 24 | display: table-cell; 25 | background-image: url('tab_b.png'); 26 | line-height: 36px; 27 | list-style: none; 28 | } 29 | 30 | .tablist a { 31 | display: block; 32 | padding: 0 20px; 33 | font-weight: bold; 34 | background-image:url('tab_s.png'); 35 | background-repeat:no-repeat; 36 | background-position:right; 37 | color: #433523; 38 | text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); 39 | text-decoration: none; 40 | outline: none; 41 | } 42 | 43 | .tabs3 .tablist a { 44 | padding: 0 10px; 45 | } 46 | 47 | .tablist a:hover { 48 | background-image: url('tab_h.png'); 49 | background-repeat:repeat-x; 50 | color: #fff; 51 | text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); 52 | text-decoration: none; 53 | } 54 | 55 | .tablist li.current a { 56 | background-image: url('tab_a.png'); 57 | background-repeat:repeat-x; 58 | color: #fff; 59 | text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); 60 | } 61 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/docs/wiredtiger.css: -------------------------------------------------------------------------------- 1 | /* WiredTiger-specific styling. */ 2 | body, table, div, p, dl { 3 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 4 | color: #373737; 5 | font-size: 13px; 6 | line-height: 1.3; 7 | } 8 | 9 | h1 { 10 | font-size: 120%; 11 | } 12 | 13 | h2 { 14 | font-size: 110%; 15 | } 16 | 17 | /* @group Link Styling */ 18 | 19 | a { 20 | color: #3D578C; 21 | } 22 | 23 | .tablist { 24 | width: 800px; 25 | } 26 | 27 | .tablist a[href="pages.html"] { 28 | display: none; 29 | } 30 | 31 | .contents a:visited { 32 | color: #4665A2; 33 | } 34 | 35 | #projectlogo { 36 | vertical-align: middle; 37 | } 38 | 39 | .banner { 40 | position: absolute; top: -2px; right: 1em; 41 | overflow: hidden; 42 | background-color: #e57504; 43 | background-image: -webkit-linear-gradient(top, #dc7202, #ee7906); 44 | background-image: -moz-linear-gradient(top, #dc7202, #ee7906); 45 | background-image: -ms-linear-gradient(top, #dc7202, #ee7906); 46 | border-radius: 0 0 8px 8px; 47 | -moz-border-radius: 0 0 8px 8px; 48 | box-shadow: 0 0 1em #888; 49 | } 50 | 51 | .banner a { 52 | border: 1px solid #ebaa65; 53 | border-top-style: none; 54 | color: #fff; 55 | display: block; 56 | font: bold 9pt sans-serif; 57 | margin: 0.05em 0 0.05em 0; 58 | padding: 0.5em 2em; 59 | text-align: center; 60 | text-decoration: none; 61 | text-shadow: 0 0 0.5em #444; 62 | } 63 | 64 | .banner a.last { 65 | border: none; 66 | } 67 | 68 | @media print 69 | { 70 | .banner { display: none; } 71 | } 72 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/examples/c/Makefile.am: -------------------------------------------------------------------------------- 1 | LDADD = $(top_builddir)/libwiredtiger.la 2 | AM_CPPFLAGS = -I$(top_srcdir)/src/include 3 | 4 | noinst_PROGRAMS = \ 5 | ex_access \ 6 | ex_all \ 7 | ex_call_center \ 8 | ex_config \ 9 | ex_config_parse \ 10 | ex_cursor \ 11 | ex_data_source \ 12 | ex_extending \ 13 | ex_file \ 14 | ex_hello \ 15 | ex_pack \ 16 | ex_process \ 17 | ex_schema \ 18 | ex_scope \ 19 | ex_stat \ 20 | ex_thread 21 | 22 | # The examples can be run with no arguments as simple smoke tests 23 | TESTS = $(noinst_PROGRAMS) 24 | 25 | AM_TESTS_ENVIRONMENT = WIREDTIGER_HOME=`mktemp -d WT_TEST.XXXX` ; export WIREDTIGER_HOME ; rm -rf $$WIREDTIGER_HOME ; mkdir $$WIREDTIGER_HOME ; 26 | # automake 1.11 compatibility 27 | TESTS_ENVIRONMENT = $(AM_TESTS_ENVIRONMENT) 28 | 29 | clean-local: 30 | rm -rf WT_TEST* *.core WiredTiger* *.wt 31 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/examples/java/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = -I$(abs_top_builddir) 2 | 3 | JAVAEXAMPLES = $(top_srcdir)/examples/java/com/wiredtiger/examples 4 | 5 | # TODO: How to add to existing Javadoc from main API? 6 | # JDOCDIR = $(top_srcdir)/docs/java 7 | # java_DATA = $(JDOCDIR)/index.html 8 | 9 | javadir = $(datadir)/java 10 | dist_java_JAVA = \ 11 | $(JAVAEXAMPLES)/ex_access.java 12 | 13 | all-local: wiredtiger.jar 14 | 15 | $(JDOCDIR)/index.html: $(dist_java_JAVA) 16 | mkdir -p $(JDOCDIR) 17 | javadoc -public -d $(JDOCDIR) -link http://docs.oracle.com/javase/6/docs/api $(JAVAEXAMPLES)/[A-Z]*.java 18 | 19 | wiredtiger.jar: $(dist_java_JAVA) 20 | (cd $(top_builddir) && \ 21 | $(JAR) -cf wiredtiger.jar com/) 22 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/ext/collators/reverse/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)/src/include 2 | 3 | noinst_LTLIBRARIES = libwiredtiger_reverse_collator.la 4 | libwiredtiger_reverse_collator_la_SOURCES = reverse_collator.c 5 | 6 | # libtool hack: noinst_LTLIBRARIES turns off building shared libraries as well 7 | # as installation, it will only build static libraries. As far as I can tell, 8 | # the "approved" libtool way to turn them back on is by adding -rpath. 9 | libwiredtiger_reverse_collator_la_LDFLAGS = \ 10 | -avoid-version -module -rpath /nowhere 11 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/ext/compressors/bzip2/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)/src/include 2 | 3 | lib_LTLIBRARIES = libwiredtiger_bzip2.la 4 | libwiredtiger_bzip2_la_SOURCES = bzip2_compress.c 5 | libwiredtiger_bzip2_la_LDFLAGS = -avoid-version -module 6 | libwiredtiger_bzip2_la_LIBADD = -lbz2 7 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/ext/compressors/nop/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)/src/include 2 | 3 | noinst_LTLIBRARIES = libwiredtiger_nop.la 4 | libwiredtiger_nop_la_SOURCES = nop_compress.c 5 | 6 | # libtool hack: noinst_LTLIBRARIES turns off building shared libraries as well 7 | # as installation, it will only build static libraries. As far as I can tell, 8 | # the "approved" libtool way to turn them back on is by adding -rpath. 9 | libwiredtiger_nop_la_LDFLAGS = -avoid-version -module -rpath /nowhere 10 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/ext/compressors/snappy/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)/src/include 2 | 3 | lib_LTLIBRARIES = libwiredtiger_snappy.la 4 | libwiredtiger_snappy_la_SOURCES = snappy_compress.c 5 | libwiredtiger_snappy_la_LDFLAGS = -avoid-version -module 6 | libwiredtiger_snappy_la_LIBADD = -lsnappy 7 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/ext/compressors/zlib/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)/src/include 2 | 3 | lib_LTLIBRARIES = libwiredtiger_zlib.la 4 | libwiredtiger_zlib_la_SOURCES = zlib_compress.c 5 | libwiredtiger_zlib_la_LDFLAGS = -avoid-version -module 6 | libwiredtiger_zlib_la_LIBADD = -lz 7 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/ext/datasources/helium/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = -I$(top_builddir) \ 2 | -I$(top_srcdir)/src/include -I$(HELIUM_PATH) 3 | 4 | noinst_LTLIBRARIES = libwiredtiger_helium.la 5 | libwiredtiger_helium_la_SOURCES = helium.c 6 | libwiredtiger_helium_la_LIBADD = -L$(HELIUM_PATH) -lhe 7 | 8 | # libtool hack: noinst_LTLIBRARIES turns off building shared libraries as well 9 | # as installation, it will only build static libraries. As far as I can tell, 10 | # the "approved" libtool way to turn them back on is by adding -rpath. 11 | libwiredtiger_helium_la_LDFLAGS = -avoid-version -module -rpath /nowhere 12 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/ext/test/kvs_bdb/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = -I$(top_builddir) \ 2 | -I$(top_srcdir)/src/include -I$(BERKELEY_DB_PATH)/include 3 | 4 | noinst_LTLIBRARIES = libwiredtiger_kvs_bdb.la 5 | libwiredtiger_kvs_bdb_la_SOURCES = kvs_bdb.c 6 | libwiredtiger_kvs_bdb_la_LIBADD = -L$(BERKELEY_DB_PATH)/lib -ldb 7 | 8 | # libtool hack: noinst_LTLIBRARIES turns off building shared libraries as well 9 | # as installation, it will only build static libraries. As far as I can tell, 10 | # the "approved" libtool way to turn them back on is by adding -rpath. 11 | libwiredtiger_kvs_bdb_la_LDFLAGS = -avoid-version -module -rpath /nowhere 12 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/lang/java/src/com/wiredtiger/db/wiredtiger.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.10 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package com.wiredtiger.db; 10 | 11 | /** 12 | * @defgroup wt_java WiredTiger Java API 13 | * 14 | * Java wrappers around the WiredTiger C API. 15 | */ 16 | 17 | /** 18 | * @ingroup wt_java 19 | */ 20 | 21 | public class wiredtiger implements wiredtigerConstants { 22 | public static String wiredtiger_strerror(int err) { 23 | return wiredtigerJNI.wiredtiger_strerror(err); 24 | } 25 | 26 | 27 | /** 28 | * @copydoc ::wiredtiger_open 29 | */ 30 | public static Connection open(String home, String config) { 31 | long cPtr = wiredtigerJNI.open(home, config); 32 | return (cPtr == 0) ? null : new Connection(cPtr, false); 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/lang/python/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = -I$(abs_top_builddir) 2 | 3 | PYSRC = $(top_srcdir)/lang/python 4 | if DEBUG 5 | PY_SETUP_DEBUG = -g 6 | endif 7 | all-local: _wiredtiger.so 8 | 9 | # We keep generated Python sources under lang/python: that's where they live 10 | # in release packages. 11 | $(PYSRC)/wiredtiger_wrap.c: $(top_srcdir)/src/include/wiredtiger.in $(PYSRC)/wiredtiger.i 12 | (cd $(PYSRC) && \ 13 | $(SWIG) -python -threads -O -Wall -nodefaultctor -nodefaultdtor -I$(abs_top_builddir) wiredtiger.i && \ 14 | mv wiredtiger.py wiredtiger/__init__.py) 15 | 16 | _wiredtiger.so: $(top_builddir)/libwiredtiger.la $(PYSRC)/wiredtiger_wrap.c 17 | $(PYTHON) $(PYSRC)/setup.py build_ext -b . -t . -f $(PY_SETUP_DEBUG) 18 | 19 | install-exec-local: 20 | $(PYTHON) $(PYSRC)/setup.py build_py -d build 21 | $(PYTHON) $(PYSRC)/setup.py build_ext -b build -t . -f $(PY_SETUP_DEBUG) 22 | $(PYTHON) $(PYSRC)/setup.py install_lib -b build --skip-build $(PYTHON_INSTALL_ARG) 23 | 24 | clean-local: 25 | $(PYTHON) $(PYSRC)/setup.py clean 26 | rm -rf _wiredtiger.so WT_TEST build wiredtiger 27 | 28 | TESTS = run-ex_access 29 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/lang/python/run-ex_access: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | rm -rf WT_TEST ; mkdir WT_TEST 4 | 5 | exec env LD_LIBRARY_PATH=../../.libs DYLD_LIBRARY_PATH=../../.libs PYTHONPATH=.:${srcdir} python ${srcdir}/../../examples/python/ex_access.py 6 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/lang/python/wiredtiger/intpack-test.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # 3 | # Public Domain 2008-2014 WiredTiger, Inc. 4 | # 5 | # This is free and unencumbered software released into the public domain. 6 | # 7 | # Anyone is free to copy, modify, publish, use, compile, sell, or 8 | # distribute this software, either in source code form or as a compiled 9 | # binary, for any purpose, commercial or non-commercial, and by any 10 | # means. 11 | # 12 | # In jurisdictions that recognize copyright laws, the author or authors 13 | # of this software dedicate any and all copyright interest in the 14 | # software to the public domain. We make this dedication for the benefit 15 | # of the public at large and to the detriment of our heirs and 16 | # successors. We intend this dedication to be an overt act of 17 | # relinquishment in perpetuity of all present and future rights to this 18 | # software under copyright law. 19 | # 20 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 21 | # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 22 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 23 | # IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 24 | # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 25 | # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 26 | # OTHER DEALINGS IN THE SOFTWARE. 27 | # 28 | 29 | from intpacking import compress_int 30 | 31 | i = 1 32 | while i < 1 << 60: 33 | print -i, ''.join('%02x' % ord(c) for c in compress_int(-i)) 34 | print i, ''.join('%02x' % ord(c) for c in compress_int(i)) 35 | i <<= 1 36 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/api/api_strerror.c: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT: automatically built by dist/api_err.py. */ 2 | 3 | #include "wt_internal.h" 4 | 5 | /* 6 | * wiredtiger_strerror -- 7 | * Return a string for any error value. 8 | */ 9 | const char * 10 | wiredtiger_strerror(int error) 11 | { 12 | static char errbuf[64]; 13 | char *p; 14 | 15 | if (error == 0) 16 | return ("Successful return: 0"); 17 | 18 | switch (error) { 19 | case WT_DEADLOCK: 20 | return ("WT_DEADLOCK: conflict between concurrent operations"); 21 | case WT_DUPLICATE_KEY: 22 | return ("WT_DUPLICATE_KEY: attempt to insert an existing key"); 23 | case WT_ERROR: 24 | return ("WT_ERROR: non-specific WiredTiger error"); 25 | case WT_NOTFOUND: 26 | return ("WT_NOTFOUND: item not found"); 27 | case WT_PANIC: 28 | return ("WT_PANIC: WiredTiger library panic"); 29 | case WT_RESTART: 30 | return ("WT_RESTART: restart the operation (internal)"); 31 | default: 32 | if (error > 0 && (p = strerror(error)) != NULL) 33 | return (p); 34 | break; 35 | } 36 | 37 | /* 38 | * !!! 39 | * Not thread-safe, but this is never supposed to happen. 40 | */ 41 | (void)snprintf(errbuf, sizeof(errbuf), "Unknown error: %d", error); 42 | return (errbuf); 43 | } 44 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/api/api_version.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "wt_internal.h" 9 | 10 | /* 11 | * wiredtiger_version -- 12 | * Return library version information. 13 | */ 14 | const char * 15 | wiredtiger_version(int *majorp, int *minorp, int *patchp) 16 | { 17 | if (majorp != NULL) 18 | *majorp = WIREDTIGER_VERSION_MAJOR; 19 | if (minorp != NULL) 20 | *minorp = WIREDTIGER_VERSION_MINOR; 21 | if (patchp != NULL) 22 | *patchp = WIREDTIGER_VERSION_PATCH; 23 | return (WIREDTIGER_VERSION_STRING); 24 | } 25 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/btree/bt_upgrade.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "wt_internal.h" 9 | 10 | /* 11 | * __wt_upgrade -- 12 | * Upgrade a file. 13 | */ 14 | int 15 | __wt_upgrade(WT_SESSION_IMPL *session, const char *cfg[]) 16 | { 17 | WT_UNUSED(cfg); 18 | 19 | /* There's nothing to upgrade, yet. */ 20 | WT_RET(__wt_progress(session, NULL, 1)); 21 | return (0); 22 | } 23 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/config/config_ext.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "wt_internal.h" 9 | 10 | /* 11 | * __wt_ext_config_parser_open -- 12 | * WT_EXTENSION_API->config_parser_open implementation 13 | */ 14 | int 15 | __wt_ext_config_parser_open(WT_EXTENSION_API *wt_ext, WT_SESSION *wt_session, 16 | const char *config, size_t len, WT_CONFIG_PARSER **config_parserp) 17 | { 18 | WT_UNUSED(wt_ext); 19 | return (wiredtiger_config_parser_open( 20 | wt_session, config, len, config_parserp)); 21 | } 22 | 23 | /* 24 | * __wt_ext_config_get -- 25 | * Given a NULL-terminated list of configuration strings, find the final 26 | * value for a given string key (external API version). 27 | */ 28 | int 29 | __wt_ext_config_get(WT_EXTENSION_API *wt_api, 30 | WT_SESSION *wt_session, WT_CONFIG_ARG *cfg_arg, const char *key, 31 | WT_CONFIG_ITEM *cval) 32 | { 33 | WT_CONNECTION_IMPL *conn; 34 | WT_SESSION_IMPL *session; 35 | const char **cfg; 36 | 37 | conn = (WT_CONNECTION_IMPL *)wt_api->conn; 38 | if ((session = (WT_SESSION_IMPL *)wt_session) == NULL) 39 | session = conn->default_session; 40 | 41 | if ((cfg = (const char **)cfg_arg) == NULL) 42 | return (WT_NOTFOUND); 43 | return (__wt_config_gets(session, cfg, key, cval)); 44 | } 45 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | @(cd ../../dist && sh s_docs -t) 3 | 4 | clean: 5 | @(cd ../../dist && sh s_docs -a) 6 | 7 | .PHONY: all clean 8 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/admin.dox: -------------------------------------------------------------------------------- 1 | /*! @page admin Managing WiredTiger databases 2 | 3 | This section covers topics of interest for system administrators 4 | managing WiredTiger applications: 5 | 6 | - @subpage home 7 | - @subpage database_config 8 | - @subpage hot_backup 9 | - @subpage filesystems 10 | - @subpage security 11 | 12 | */ 13 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/build-javadoc.sh: -------------------------------------------------------------------------------- 1 | DOCS=`dirname $0` 2 | TOP=$DOCS/.. 3 | . $TOP/config.sh 4 | 5 | CLASSPATH=$THRIFT_HOME/libthrift.jar:$SLF4J_JAR javadoc -public -d $DOCS/java \ 6 | -source 1.5 \ 7 | -sourcepath $TOP/lang/java/src:$TOP/src/server/gen-java \ 8 | -stylesheetfile $DOCS/style/javadoc.css \ 9 | -use -link http://java.sun.com/j2se/1.5.0/docs/api/ \ 10 | -header 'WiredTiger API
version '$WT_VERSION'' \ 11 | -windowtitle 'WiredTiger Java API' -bottom 'Copyright (c) 2008-2014 WiredTiger, Inc. All rights reserved.' \ 12 | com.wiredtiger com.wiredtiger.util 13 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/build-pydoc.sh: -------------------------------------------------------------------------------- 1 | DOCS=`dirname $0` 2 | TOP=$DOCS/.. 3 | . $TOP/config.sh 4 | 5 | cd python 6 | PYTHONPATH=../../lang/python/src:$THRIFT_HOME/lib/python2.6/site-packages pydoc -w wiredtiger 7 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/bulk-load.dox: -------------------------------------------------------------------------------- 1 | /*! @page bulk_load Bulk-load 2 | 3 | WiredTiger cursors can be configured for bulk-load using the \c bulk 4 | configuration keyword to WT_SESSION::open_cursor. Bulk-load is a "fast 5 | path" for quickly loading a large number of rows. Bulk-load may only 6 | be used on newly created objects, and an object being bulk-loaded is not 7 | accessible from other cursors. 8 | 9 | Cursors configured for bulk-load only support the WT_CURSOR::insert and 10 | WT_CURSOR::close methods. 11 | 12 | When bulk-loading row-store objects, keys must be loaded in sorted 13 | order. 14 | 15 | When using the \c sort utility on a Linux or other POSIX-like system to 16 | pre-sort keys, the locale specified by the environment affects the sort 17 | order and may not match the default sort order used by WiredTiger. Set 18 | \c LC_ALL=C in the process' environment to configure the traditional sort 19 | order that uses native byte values. 20 | 21 | When bulk-loading fixed-length column store objects, the \c bulk 22 | configuration string value \c bitmap allows chunks of a memory resident 23 | bitmap to be loaded directly into an object by passing a WT_ITEM to 24 | WT_CURSOR::set_value, where the size field indicates the number of 25 | records in the bitmap (as specified by the object's \c value_format 26 | configuration). Bulk-loaded bitmap values must end on a byte boundary 27 | relative to the bit count (except for the last set of values loaded). 28 | 29 | */ 30 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/community.dox: -------------------------------------------------------------------------------- 1 | /*! @page community WiredTiger community and contact information 2 | 3 | WiredTiger Inc., and the WiredTiger community maintain and develop 4 | WiredTiger on GitHub, 5 | and all contributors are welcome! 6 | 7 | All source code and revision histories for this software are available 8 | in the WiredTiger 9 | source tree repository. 10 | 11 | Please submit any feature suggestions and bug reports at 12 | 13 | WiredTiger's Issues page. 14 | 15 | Discussion of WiredTiger issues and development can also be found in 16 | the 17 | WiredTiger 18 | Google Group. 19 | 20 | To contact WiredTiger, Inc. please send email to 21 | info@wiredtiger.com. 22 | 23 | */ 24 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/compact.dox: -------------------------------------------------------------------------------- 1 | /*! @page compaction Compaction 2 | 3 | The WT_SESSION::compact method can be used to compact btree and log-structured 4 | merge tree data sources. 5 | 6 | The data source does not have to be quiescent, compaction may be performed on a 7 | live data source. 8 | 9 | Because checkpoints named by the application are not discarded until explicitly 10 | removed or replaced, they may prevent WT_SESSION::compact from accomplishing 11 | anything. 12 | * 13 | */ 14 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/cursor-random.dox: -------------------------------------------------------------------------------- 1 | /*! @page cursor_random Cursor random 2 | 3 | The \c next_random configuration to the WT_SESSION::open_cursor method 4 | configures the cursor to return a pseudo-random record from a row-store 5 | object. 6 | 7 | The ability to return a random record was added to support a particular 8 | application, and as a result has somewhat unusual semantics. First, the 9 | returned record may not be random at all in the case of objects with only a few 10 | rows (especially when the object has never been written to the backing store). 11 | In such objects, the WT_CURSOR::next method for cursors configured with \c 12 | next_random may return the same row on each call. Additionally, even in larger 13 | objects, the WT_CURSOR::next method usually returns the first record from a 14 | random page in the underlying file, not a random record from a random page. 15 | 16 | */ 17 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/examples.dox: -------------------------------------------------------------------------------- 1 | /*! 2 | @example ex_access.c 3 | Create, insert and access a simple table. 4 | 5 | @example ex_call_center.c 6 | A more complex schema based on a call center example, showing how to map 7 | some SQL constructs onto the WiredTiger API. 8 | 9 | @example ex_config.c 10 | Shows how to configure some properties of the database and tables. 11 | 12 | @example ex_cursor.c 13 | Shows some common cursor types and operations. 14 | 15 | @example ex_extending.c 16 | Shows how to extend WiredTiger with application-specific collations, 17 | extractors and cursor types. 18 | 19 | @example ex_file.c 20 | Shows how to use file objects. 21 | 22 | @example ex_hello.c 23 | This is an example of how to create and open a database. 24 | 25 | @example ex_pack.c 26 | Shows basic packing and unpacking of fields. 27 | 28 | @cond sharing 29 | @notyet{inter-process sharing} 30 | @example ex_process.c 31 | Shows how to connect to a database from multiple processes. 32 | @endcond 33 | 34 | @example ex_schema.c 35 | Shows how to create column-oriented data and access individual columns. 36 | 37 | @example ex_stat.c 38 | Shows how to access database and table statistics. 39 | 40 | @example ex_thread.c 41 | Shows how to access a database with multiple threads. 42 | 43 | */ 44 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/filesystems.dox: -------------------------------------------------------------------------------- 1 | /*! @page filesystems Filesystems 2 | 3 | @section remote Remote file systems 4 | 5 | WiredTiger objects may be stored on remote file systems if the remote 6 | file system conforms to ISO/IEC 9945-1:1996 (POSIX.1). In the case of 7 | read-only objects, multiple systems may access the objects 8 | simultaneously; objects which are written cannot be accessed by more 9 | than a single system. Because remote file systems are often slower than 10 | local file systems, using a remote file system for storage may degrade 11 | performance. 12 | 13 | */ 14 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/images/LogoFace-watermark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/src/docs/images/LogoFace-watermark.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/images/LogoFinal-header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/src/docs/images/LogoFinal-header.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/images/architecture.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/src/docs/images/architecture.pdf -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/images/architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/src/docs/images/architecture.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/keyvalue.dox: -------------------------------------------------------------------------------- 1 | /*! @page keyvalue Key/Value pairs 2 | 3 | Underlying WiredTiger files are key/value stores, that is, entries in 4 | the file are paired keys and values. These keys and values can be 5 | accessed directly, and a file cursor will only return the data from the 6 | single file, without reference to any other related files or data. For 7 | example, if an index were lost or to become inconsistent with its 8 | primary, a file cursor could read from the index without problems (even 9 | though some of the returned keys might not exist in the primary). 10 | 11 | In the case of a row-store file, keys and values are both 12 | variable-length byte strings, up to (4GB - 512B) in length. 13 | 14 | In the case of a column-store file, keys are 64-bit record numbers, 15 | where the first record in the file is record number 1. Values are 16 | either variable-length byte strings, up to (4GB - 512B) in length, or 17 | bit fields, where a bit field is 1 to 8 bits. 18 | 19 | */ 20 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/namespace.dox: -------------------------------------------------------------------------------- 1 | /*! @page name_space Name spaces 2 | 3 | @section env Process' environment name space 4 | 5 | WiredTiger's environment variables begin with the string "WIREDTIGER". 6 | 7 | @section c C language name space 8 | 9 | WiredTiger's public function names begin with the string "wiredtiger". 10 | 11 | WiredTiger's public \c \#define and structure \c typedef declarations 12 | begin with the string "WT_". 13 | 14 | WiredTiger's private function names begin with the string "__wt_". 15 | 16 | @section filename File system name space 17 | 18 | WiredTiger's files begin with the string "WiredTiger"; applications 19 | should not create files in the WiredTiger file system name space. 20 | 21 | @section error Error return name space 22 | 23 | WiredTiger reserves all values from -31,800 to -31,999 as possible error 24 | return values. 25 | 26 | */ 27 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/programming.dox: -------------------------------------------------------------------------------- 1 | /*! @page programming Writing WiredTiger applications 2 | 3 | This section covers topics of interest for programmers writing 4 | WiredTiger applications: 5 | 6 | @section programming_api Using the API 7 | 8 | - @subpage basic_api 9 | - @subpage config_strings 10 | - @subpage cursors 11 | - @subpage transactions 12 | - @subpage error_handling 13 | - @subpage name_space 14 | 15 | @section programming_storage Storage options 16 | 17 | - @subpage schema 18 | - @subpage lsm 19 | - @subpage file_formats 20 | - @subpage bulk_load 21 | - @subpage compression 22 | 23 | @section programming_deployment Deployment considerations 24 | 25 | - @subpage cache_configuration 26 | - @subpage checkpoints 27 | - @subpage compaction 28 | - @subpage hot_backup 29 | - @subpage statistics 30 | - @subpage threads 31 | - @subpage tuning 32 | 33 | @section programming_extending Extending WiredTiger 34 | 35 | - @subpage custom_data_sources 36 | - @subpage helium 37 | 38 | @section programming_admin Administering a WiredTiger database 39 | 40 | - @subpage home 41 | - @subpage database_config 42 | - @subpage security 43 | - @subpage signals 44 | 45 | */ 46 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/security.dox: -------------------------------------------------------------------------------- 1 | /*! @page security Security 2 | 3 | @section directory_permissions Database directory permissions 4 | 5 | All WiredTiger files are stored in the database home directory, and the 6 | WiredTiger database directory should have its permissions set to ensure 7 | database objects are not accessible to users without appropriate 8 | permissions. See @ref home for more information. 9 | 10 | @section file_permissions File permissions 11 | 12 | WiredTiger creates file system objects readable and writable by the 13 | process owner, group and user, as modified by the process' umask value. 14 | The group ownership of created file system objects may vary depending 15 | on the system, and is not controlled by WiredTiger. 16 | 17 | @section environment_variables Environment variables 18 | 19 | Consider security when configuring WiredTiger to use the WIREDTIGER_HOME 20 | environment variable, especially in applications which run with 21 | permissions other than the user's. Such applications are potentially 22 | vulnerable to allowing users access to databases they could not 23 | otherwise access. See @ref home for more information. 24 | 25 | */ 26 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/signals.dox: -------------------------------------------------------------------------------- 1 | /*! @page signals Signal handling 2 | 3 | WiredTiger has no signal handlers and does not modify process signal handler behavior in any way. 4 | 5 | WiredTiger restarts any system calls interrupted by a signal. 6 | 7 | WiredTiger applications exiting as a result of a signal should exit WiredTiger gracefully, closing any open WiredTiger handles, before terminating the process. 8 | 9 | WiredTiger is not re-entrant, and applications using WiredTiger should not make WiredTiger API calls from signal handlers. 10 | 11 | */ 12 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/sql-map.dox: -------------------------------------------------------------------------------- 1 | /*! \page sql_mapping Mapping SQL onto the WiredTiger API 2 | 3 | @todo decide whether to keep this page, if so, fill it out 4 | 5 | An RDBMS has the SQL language, a parser and a query planner. All of them 6 | sit on top of WiredTiger, as they would on top of any key-value store. 7 | 8 | The difference with WiredTiger's API is that the query plan is going to be 9 | based on fundamental operations including: 10 | 11 | # sequential scan through a range; 12 | # join (various flavors); 13 | # sort (group by); 14 | # projection, and so on. 15 | 16 | Those operations would be implemented as different WiredTiger cursor types, 17 | using WT_CONNECTION::add_cursor_type. 18 | 19 | The cursor types could be implemented as one or more extensions, loaded 20 | automatically whenever the database is opened for the first time. Then the 21 | cursor types would always be there, and the query planner just asks for a 22 | cursor that combines together data from various other cursors and comes out as 23 | a set of key/data pairs it can deal with. 24 | 25 | With the right set of special cursor types are implemented, one cursor could 26 | return the SQL result set. That is, combining cursors would implement a 27 | query plan. And that could happen over a socket, mixing local processing 28 | with server-side processing. 29 | 30 | This same interface could deal with many types of compression, transforming 31 | data on the fly in various ways (like views), and so on. 32 | */ 33 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/style/background_navigation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/src/docs/style/background_navigation.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/style/doxygen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/src/docs/style/doxygen.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/style/footer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/style/img_downArrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/src/docs/style/img_downArrow.png -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/style/javadoc.css: -------------------------------------------------------------------------------- 1 | /* Javadoc style sheet */ 2 | 3 | /* Define colors, fonts and other style attributes here to override the defaults */ 4 | 5 | /* Page background color */ 6 | body { background-color: #FFFFFF } 7 | 8 | /* Table colors */ 9 | .TableHeadingColor { background: #CCCCFF } /* Dark mauve */ 10 | .TableSubHeadingColor { background: #EEEEFF } /* Light mauve */ 11 | .TableRowColor { background: #FFFFFF } /* White */ 12 | 13 | /* Font used in left-hand frame lists */ 14 | .FrameTitleFont { font-size: 10pts; font-family: Helvetica, Arial, san-serif } 15 | .FrameHeadingFont { font-size: 10pts; font-family: Helvetica, Arial, san-serif } 16 | .FrameItemFont { font-size: 10pts; font-family: Helvetica, Arial, san-serif } 17 | 18 | /* Example of smaller, sans-serif font in frames */ 19 | /* .FrameItemFont { font-size: 10pt; font-family: Helvetica, Arial, sans-serif } */ 20 | 21 | /* Navigation bar fonts and colors */ 22 | .NavBarCell1 { background-color:#EEEEFF;} /* Red */ 23 | .NavBarCell1Rev { background-color:#00008B;} /* Light red */ 24 | .NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;} 25 | .NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;} 26 | 27 | .NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} 28 | .NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} 29 | 30 | pre.code 31 | { 32 | border: solid thin; 33 | padding: 2px; 34 | background-color: #ffffcc; 35 | } 36 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/style/wiredtiger.css: -------------------------------------------------------------------------------- 1 | /* WiredTiger-specific styling. */ 2 | body, table, div, p, dl { 3 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 4 | color: #373737; 5 | font-size: 13px; 6 | line-height: 1.3; 7 | } 8 | 9 | h1 { 10 | font-size: 120%; 11 | } 12 | 13 | h2 { 14 | font-size: 110%; 15 | } 16 | 17 | /* @group Link Styling */ 18 | 19 | a { 20 | color: #3D578C; 21 | } 22 | 23 | .tablist { 24 | width: 800px; 25 | } 26 | 27 | .tablist a[href="pages.html"] { 28 | display: none; 29 | } 30 | 31 | .contents a:visited { 32 | color: #4665A2; 33 | } 34 | 35 | #projectlogo { 36 | vertical-align: middle; 37 | } 38 | 39 | .banner { 40 | position: absolute; top: -2px; right: 1em; 41 | overflow: hidden; 42 | background-color: #e57504; 43 | background-image: -webkit-linear-gradient(top, #dc7202, #ee7906); 44 | background-image: -moz-linear-gradient(top, #dc7202, #ee7906); 45 | background-image: -ms-linear-gradient(top, #dc7202, #ee7906); 46 | border-radius: 0 0 8px 8px; 47 | -moz-border-radius: 0 0 8px 8px; 48 | box-shadow: 0 0 1em #888; 49 | } 50 | 51 | .banner a { 52 | border: 1px solid #ebaa65; 53 | border-top-style: none; 54 | color: #fff; 55 | display: block; 56 | font: bold 9pt sans-serif; 57 | margin: 0.05em 0 0.05em 0; 58 | padding: 0.5em 2em; 59 | text-align: center; 60 | text-decoration: none; 61 | text-shadow: 0 0 0.5em #444; 62 | } 63 | 64 | .banner a.last { 65 | border: none; 66 | } 67 | 68 | @media print 69 | { 70 | .banner { display: none; } 71 | } 72 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/threads.dox: -------------------------------------------------------------------------------- 1 | /*! @page threads Multithreading 2 | 3 | All WT_CONNECTION methods are thread safe, and WT_CONNECTION handles can 4 | be shared between threads. Applications typically open a single 5 | connection to each database, per process. 6 | 7 | WT_SESSION and WT_CURSOR methods are not thread safe and WT_SESSION and 8 | WT_CURSOR handles cannot be accessed concurrently by multiple threads. 9 | Applications typically open one WT_SESSION handle for each thread 10 | accessing a database, and then one or more WT_CURSOR handles within the 11 | session. 12 | 13 | WT_SESSION and WT_CURSOR methods may be accessed by different threads 14 | serially (for example, a pool of threads managed by the application with 15 | a set of shared session or cursor handles). There is no thread-local 16 | state in WiredTiger, and no built-in synchronization of session or 17 | cursor handles, either, so if multiple threads access a session or 18 | cursor handle, access must be serialized by the application. 19 | 20 | @section threads_example Code samples 21 | 22 | The code below is taken from the complete example program 23 | @ex_ref{ex_thread.c}. 24 | 25 | This is an example of a thread entry point. A new session is opened for 26 | the thread and used for all operations within that thread. 27 | 28 | @snippet ex_thread.c thread scan 29 | 30 | Here is the main function that starts the threads. It opens a single 31 | connection, shared between the threads, and closes the connection after 32 | waiting for all of the threads to exit. 33 | 34 | @snippet ex_thread.c thread main 35 | 36 | */ 37 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/tools/pyfilter: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Public Domain 2008-2012 WiredTiger, Inc. 4 | # 5 | # This is free and unencumbered software released into the public domain. 6 | # 7 | # Anyone is free to copy, modify, publish, use, compile, sell, or 8 | # distribute this software, either in source code form or as a compiled 9 | # binary, for any purpose, commercial or non-commercial, and by any 10 | # means. 11 | # 12 | # In jurisdictions that recognize copyright laws, the author or authors 13 | # of this software dedicate any and all copyright interest in the 14 | # software to the public domain. We make this dedication for the benefit 15 | # of the public at large and to the detriment of our heirs and 16 | # successors. We intend this dedication to be an overt act of 17 | # relinquishment in perpetuity of all present and future rights to this 18 | # software under copyright law. 19 | # 20 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 21 | # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 22 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 23 | # IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 24 | # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 25 | # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 26 | # OTHER DEALINGS IN THE SOFTWARE. 27 | 28 | tooldir=`dirname $0` 29 | 30 | python $tooldir/doxypy.py "$@" | python $tooldir/fixlinks.py 31 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/top/Doxyfile: -------------------------------------------------------------------------------- 1 | # Override settings in the normal documentation build for the landing page. 2 | 3 | PROJECT_NUMBER = "Developer Site" 4 | OUTPUT_DIRECTORY = ../../docs/top 5 | INPUT = top community.dox license.dox 6 | EXCLUDE = 7 | 8 | GENERATE_TREEVIEW = NO 9 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/docs/top/main.dox: -------------------------------------------------------------------------------- 1 | /*! @mainpage WiredTiger Developer Site 2 | 3 | WiredTiger is an high performance, scalable, production quality, NoSQL, 4 | @subpage license "Open Source" extensible platform for data management. 5 | 6 | @section releases Releases 7 | 8 | 9 | @row{WiredTiger 2.1.2 (current), 10 | [Release package], 11 | [Documentation]} 12 | @row{WiredTiger 1.6.6 (previous), 13 | [Release package], 14 | [Documentation]} 15 | @row{Development branch, 16 | [Source code], 17 | [Documentation]} 18 |
19 | 20 | @section contact Contact Us 21 | 22 | To ask questions or discuss issues related to using WiredTiger, 23 | 24 | - Visit our User Group 25 | - Send email to info@wiredtiger.com 26 | */ 27 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/include/bloom.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | /* 8 | * REFERENCES: 9 | * https://www.eecs.harvard.edu/~michaelm/postscripts/tr-02-05.pdf 10 | * http://code.google.com/p/cityhash-c/ 11 | */ 12 | 13 | struct __wt_bloom { 14 | const char *uri; 15 | char *config; 16 | uint8_t *bitstring; /* For in memory representation. */ 17 | WT_SESSION_IMPL *session; 18 | WT_CURSOR *c; 19 | 20 | uint32_t k; /* The number of hash functions used. */ 21 | uint32_t factor; /* The number of bits per item inserted. */ 22 | uint64_t m; /* The number of slots in the bit string. */ 23 | uint64_t n; /* The number of items to be inserted. */ 24 | }; 25 | 26 | struct __wt_bloom_hash { 27 | uint64_t h1, h2; /* The two hashes used to calculate bits. */ 28 | }; 29 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/include/compact.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | struct __wt_compact { 9 | uint32_t lsm_count; /* Number of LSM trees seen */ 10 | uint32_t file_count; /* Number of files seen */ 11 | uint64_t max_time; /* Configured timeout */ 12 | }; 13 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/include/dlh.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | struct __wt_dlh { 9 | TAILQ_ENTRY(__wt_dlh) q; /* List of open libraries. */ 10 | 11 | void *handle; /* Handle returned by dlopen. */ 12 | char *name; 13 | 14 | int (*terminate)(WT_CONNECTION *); /* Terminate function. */ 15 | }; 16 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/include/gcc.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | /* 9 | * Quiet compiler warnings about unused function parameters and variables, 10 | * and unused function return values. 11 | */ 12 | #define WT_UNUSED(var) (void)(var) 13 | #ifdef __GNUC__ 14 | #define WT_UNUSED_RET(var) \ 15 | ({ __typeof__(var) __ret = var; (void)sizeof __ret; }) 16 | #else 17 | #define WT_UNUSED_RET(var) (void)(var) 18 | #endif 19 | 20 | /* Add GCC-specific attributes to types and function declarations. */ 21 | #ifdef __GNUC__ 22 | #define WT_GCC_ATTRIBUTE(x) __attribute__(x) 23 | #else 24 | #define WT_GCC_ATTRIBUTE(x) 25 | #endif 26 | 27 | /* 28 | * Attribute are only permitted on function declarations, not definitions. 29 | * This macro is a marker for function definitions that is rewritten by 30 | * dist/s_prototypes to create extern.h. 31 | */ 32 | #define WT_GCC_FUNC_ATTRIBUTE(x) 33 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/include/posix.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | /* Some systems don't configure 64-bit MIN/MAX by default. */ 9 | #ifndef ULLONG_MAX 10 | #define ULLONG_MAX 0xffffffffffffffffULL 11 | #endif 12 | #ifndef LLONG_MAX 13 | #define LLONG_MAX 0x7fffffffffffffffLL 14 | #endif 15 | #ifndef LLONG_MIN 16 | #define LLONG_MIN (-0x7fffffffffffffffLL - 1) 17 | #endif 18 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/os_posix/os_abort.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "wt_internal.h" 9 | 10 | /* 11 | * __wt_abort -- 12 | * Abort the process, dropping core. 13 | */ 14 | void 15 | __wt_abort(WT_SESSION_IMPL *session) 16 | WT_GCC_FUNC_ATTRIBUTE((noreturn)) 17 | { 18 | __wt_errx(session, "aborting WiredTiger library"); 19 | 20 | #ifdef HAVE_DIAGNOSTIC 21 | __wt_attach(session); 22 | #endif 23 | 24 | abort(); 25 | /* NOTREACHED */ 26 | } 27 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/os_posix/os_errno.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "wt_internal.h" 9 | 10 | /* 11 | * __wt_errno -- 12 | * Return errno, or WT_ERROR if errno not set. 13 | */ 14 | int 15 | __wt_errno(void) 16 | { 17 | /* 18 | * Called when we know an error occurred, and we want the system 19 | * error code, but there's some chance it's not set. 20 | */ 21 | return (errno == 0 ? WT_ERROR : errno); 22 | } 23 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/os_posix/os_exist.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "wt_internal.h" 9 | 10 | /* 11 | * __wt_exist -- 12 | * Return if the file exists. 13 | */ 14 | int 15 | __wt_exist(WT_SESSION_IMPL *session, const char *filename, int *existp) 16 | { 17 | struct stat sb; 18 | WT_DECL_RET; 19 | char *path; 20 | 21 | WT_RET(__wt_filename(session, filename, &path)); 22 | 23 | WT_SYSCALL_RETRY(stat(path, &sb), ret); 24 | 25 | __wt_free(session, path); 26 | 27 | if (ret == 0) { 28 | *existp = 1; 29 | return (0); 30 | } 31 | if (ret == ENOENT) { 32 | *existp = 0; 33 | return (0); 34 | } 35 | 36 | WT_RET_MSG(session, ret, "%s: fstat", filename); 37 | } 38 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/os_posix/os_fallocate.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "wt_internal.h" 9 | 10 | /* 11 | * __wt_fallocate -- 12 | * Allocate space for a file handle. 13 | */ 14 | int 15 | __wt_fallocate(WT_SESSION_IMPL *session, WT_FH *fh, off_t offset, off_t len) 16 | { 17 | WT_DECL_RET; 18 | 19 | WT_VERBOSE_RET(session, fileops, "%s: fallocate", fh->name); 20 | 21 | #if defined(HAVE_POSIX_FALLOCATE) 22 | WT_SYSCALL_RETRY(posix_fallocate(fh->fd, offset, len), ret); 23 | if (ret != 0) 24 | WT_RET_MSG(session, ret, "%s: posix_fallocate", fh->name); 25 | #elif defined(HAVE_FTRUNCATE) 26 | WT_SYSCALL_RETRY(ftruncate(fh->fd, offset + len), ret); 27 | if (ret != 0) 28 | WT_RET_MSG(session, ret, "%s: ftruncate", fh->name); 29 | #else 30 | WT_UNUSED(ret); 31 | WT_UNUSED(offset); 32 | WT_UNUSED(len); 33 | #endif 34 | return (0); 35 | } 36 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/os_posix/os_filesize.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "wt_internal.h" 9 | 10 | /* 11 | * __wt_filesize -- 12 | * Get the size of a file in bytes. 13 | */ 14 | int 15 | __wt_filesize(WT_SESSION_IMPL *session, WT_FH *fh, off_t *sizep) 16 | { 17 | struct stat sb; 18 | WT_DECL_RET; 19 | 20 | WT_VERBOSE_RET(session, fileops, "%s: fstat", fh->name); 21 | 22 | WT_SYSCALL_RETRY(fstat(fh->fd, &sb), ret); 23 | if (ret == 0) { 24 | *sizep = sb.st_size; 25 | return (0); 26 | } 27 | 28 | WT_RET_MSG(session, ret, "%s: fstat", fh->name); 29 | } 30 | 31 | /* 32 | * __wt_filesize_name -- 33 | * Return the size of a file in bytes, given a file name. 34 | */ 35 | int 36 | __wt_filesize_name(WT_SESSION_IMPL *session, const char *filename, off_t *sizep) 37 | { 38 | struct stat sb; 39 | WT_DECL_RET; 40 | char *path; 41 | 42 | WT_RET(__wt_filename(session, filename, &path)); 43 | 44 | WT_SYSCALL_RETRY(stat(path, &sb), ret); 45 | 46 | __wt_free(session, path); 47 | 48 | if (ret == 0) { 49 | *sizep = sb.st_size; 50 | return (0); 51 | } 52 | 53 | WT_RET_MSG(session, ret, "%s: fstat", filename); 54 | } 55 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/os_posix/os_flock.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "wt_internal.h" 9 | 10 | /* 11 | * __wt_bytelock -- 12 | * Lock/unlock a byte in a file. 13 | */ 14 | int 15 | __wt_bytelock(WT_FH *fhp, off_t byte, int lock) 16 | { 17 | struct flock fl; 18 | WT_DECL_RET; 19 | 20 | /* 21 | * WiredTiger requires this function be able to acquire locks past 22 | * the end of file. 23 | * 24 | * Note we're using fcntl(2) locking: all fcntl locks associated with a 25 | * file for a given process are removed when any file descriptor for the 26 | * file is closed by the process, even if a lock was never requested for 27 | * that file descriptor. 28 | */ 29 | fl.l_start = byte; 30 | fl.l_len = 1; 31 | fl.l_type = lock ? F_WRLCK : F_UNLCK; 32 | fl.l_whence = SEEK_SET; 33 | 34 | WT_SYSCALL_RETRY(fcntl(fhp->fd, F_SETLK, &fl), ret); 35 | 36 | return (ret); 37 | } 38 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/os_posix/os_fsync.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "wt_internal.h" 9 | 10 | /* 11 | * __wt_fsync -- 12 | * Flush a file handle. 13 | */ 14 | int 15 | __wt_fsync(WT_SESSION_IMPL *session, WT_FH *fh) 16 | { 17 | WT_DECL_RET; 18 | 19 | WT_VERBOSE_RET(session, fileops, "%s: fsync", fh->name); 20 | 21 | #ifdef HAVE_FDATASYNC 22 | WT_SYSCALL_RETRY(fdatasync(fh->fd), ret); 23 | #else 24 | WT_SYSCALL_RETRY(fsync(fh->fd), ret); 25 | #endif 26 | if (ret != 0) 27 | WT_RET_MSG(session, ret, "%s fsync error", fh->name); 28 | 29 | return (0); 30 | } 31 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/os_posix/os_ftruncate.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "wt_internal.h" 9 | 10 | /* 11 | * __wt_ftruncate -- 12 | * Truncate a file. 13 | */ 14 | int 15 | __wt_ftruncate(WT_SESSION_IMPL *session, WT_FH *fh, off_t len) 16 | { 17 | WT_DECL_RET; 18 | 19 | WT_SYSCALL_RETRY(ftruncate(fh->fd, len), ret); 20 | if (ret == 0) { 21 | fh->size = fh->extend_size = len; 22 | return (0); 23 | } 24 | 25 | WT_RET_MSG(session, ret, "%s ftruncate error", fh->name); 26 | } 27 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/os_posix/os_getline.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "wt_internal.h" 9 | 10 | /* 11 | * __wt_getline -- 12 | * Get a line from a stream. 13 | * 14 | * Implementation of the POSIX getline or BSD fgetln functions (finding the 15 | * function in a portable way is hard, it's simple enough to write it instead). 16 | * 17 | * Note: Unlike the standard getline calls, this function doesn't include the 18 | * trailing newline character in the returned buffer and discards empty lines 19 | * (so the caller's EOF marker is a returned line length of 0). 20 | */ 21 | int 22 | __wt_getline(WT_SESSION_IMPL *session, WT_ITEM *buf, FILE *fp) 23 | { 24 | int c; 25 | 26 | /* 27 | * We always NUL-terminate the returned string (even if it's empty), 28 | * make sure there's buffer space for a trailing NUL in all cases. 29 | */ 30 | WT_RET(__wt_buf_init(session, buf, 10)); 31 | 32 | while ((c = fgetc(fp)) != EOF) { 33 | /* Leave space for a trailing NUL. */ 34 | if (buf->size + 1 >= buf->memsize) 35 | WT_RET(__wt_buf_grow(session, buf, buf->size + 1024)); 36 | if (c == '\n') { 37 | if (buf->size == 0) 38 | continue; 39 | break; 40 | } 41 | ((char *)buf->mem)[buf->size++] = (char)c; 42 | } 43 | if (c == EOF && ferror(fp)) 44 | WT_RET_MSG(session, __wt_errno(), "file read"); 45 | 46 | ((char *)buf->mem)[buf->size] = '\0'; 47 | 48 | return (0); 49 | } 50 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/os_posix/os_priv.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "wt_internal.h" 9 | 10 | /* 11 | * __wt_has_priv -- 12 | * Return if the process has special privileges, defined as having 13 | * different effective and read UIDs or GIDs. 14 | */ 15 | int 16 | __wt_has_priv(void) 17 | { 18 | return (getuid() != geteuid() || getgid() != getegid()); 19 | } 20 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/os_posix/os_remove.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "wt_internal.h" 9 | 10 | /* 11 | * __remove_file_check -- 12 | * Check if the file is currently open before removing it. 13 | */ 14 | static inline void 15 | __remove_file_check(WT_SESSION_IMPL *session, const char *name) 16 | { 17 | #ifdef HAVE_DIAGNOSTIC 18 | WT_CONNECTION_IMPL *conn; 19 | WT_FH *fh; 20 | 21 | conn = S2C(session); 22 | fh = NULL; 23 | 24 | /* 25 | * Check if the file is open: it's an error if it is, since a higher 26 | * level should have closed it before removing. 27 | */ 28 | __wt_spin_lock(session, &conn->fh_lock); 29 | TAILQ_FOREACH(fh, &conn->fhqh, q) { 30 | if (strcmp(name, fh->name) == 0) 31 | break; 32 | } 33 | __wt_spin_unlock(session, &conn->fh_lock); 34 | 35 | WT_ASSERT(session, fh == NULL); 36 | #else 37 | WT_UNUSED(session); 38 | WT_UNUSED(name); 39 | #endif 40 | } 41 | 42 | /* 43 | * __wt_remove -- 44 | * Remove a file. 45 | */ 46 | int 47 | __wt_remove(WT_SESSION_IMPL *session, const char *name) 48 | { 49 | WT_DECL_RET; 50 | char *path; 51 | 52 | WT_VERBOSE_RET(session, fileops, "%s: remove", name); 53 | 54 | __remove_file_check(session, name); 55 | 56 | WT_RET(__wt_filename(session, name, &path)); 57 | 58 | WT_SYSCALL_RETRY(remove(path), ret); 59 | 60 | __wt_free(session, path); 61 | 62 | if (ret == 0 || ret == ENOENT) 63 | return (0); 64 | 65 | WT_RET_MSG(session, ret, "%s: remove", name); 66 | } 67 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/os_posix/os_rename.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "wt_internal.h" 9 | 10 | /* 11 | * __wt_rename -- 12 | * Rename a file. 13 | */ 14 | int 15 | __wt_rename(WT_SESSION_IMPL *session, const char *from, const char *to) 16 | { 17 | WT_DECL_RET; 18 | char *from_path, *to_path; 19 | 20 | WT_VERBOSE_RET(session, fileops, "rename %s to %s", from, to); 21 | 22 | from_path = to_path = NULL; 23 | 24 | WT_RET(__wt_filename(session, from, &from_path)); 25 | WT_TRET(__wt_filename(session, to, &to_path)); 26 | 27 | if (ret == 0) 28 | WT_SYSCALL_RETRY(rename(from_path, to_path), ret); 29 | 30 | __wt_free(session, from_path); 31 | __wt_free(session, to_path); 32 | 33 | if (ret == 0) 34 | return (0); 35 | 36 | WT_RET_MSG(session, ret, "rename %s to %s", from, to); 37 | } 38 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/os_posix/os_sleep.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "wt_internal.h" 9 | 10 | /* 11 | * __wt_sleep -- 12 | * Pause the thread of control. 13 | */ 14 | void 15 | __wt_sleep(long seconds, long micro_seconds) 16 | { 17 | struct timeval t; 18 | 19 | t.tv_sec = seconds + micro_seconds / 1000000; 20 | t.tv_usec = (suseconds_t)(micro_seconds % 1000000); 21 | 22 | (void)select(0, NULL, NULL, NULL, &t); 23 | } 24 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/os_posix/os_strtouq.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "wt_internal.h" 9 | 10 | /* 11 | * __wt_strtouq -- 12 | * Convert a string to an unsigned quad integer. 13 | */ 14 | uint64_t 15 | __wt_strtouq(const char *nptr, char **endptr, int base) 16 | { 17 | #if defined(HAVE_STRTOUQ) 18 | return (strtouq(nptr, endptr, base)); 19 | #else 20 | STATIC_ASSERT(sizeof(uint64_t) == sizeof(unsigned long long)); 21 | 22 | return (strtoull(nptr, endptr, base)); 23 | #endif 24 | } 25 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/os_posix/os_thread.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "wt_internal.h" 9 | 10 | /* 11 | * __wt_thread_create -- 12 | * Create a new thread of control. 13 | */ 14 | int 15 | __wt_thread_create(WT_SESSION_IMPL *session, 16 | pthread_t *tidret, void *(*func)(void *), void *arg) 17 | { 18 | WT_DECL_RET; 19 | 20 | /* Spawn a new thread of control. */ 21 | if ((ret = pthread_create(tidret, NULL, func, arg)) == 0) 22 | return (0); 23 | WT_RET_MSG(session, ret, "pthread_create"); 24 | } 25 | 26 | /* 27 | * __wt_thread_join -- 28 | * Wait for a thread of control to exit. 29 | */ 30 | int 31 | __wt_thread_join(WT_SESSION_IMPL *session, pthread_t tid) 32 | { 33 | WT_DECL_RET; 34 | 35 | if ((ret = pthread_join(tid, NULL)) == 0) 36 | return (0); 37 | 38 | WT_RET_MSG(session, ret, "pthread_join"); 39 | } 40 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/os_posix/os_time.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "wt_internal.h" 9 | 10 | /* 11 | * __wt_seconds -- 12 | * Return the seconds since the Epoch. 13 | */ 14 | int 15 | __wt_seconds(WT_SESSION_IMPL *session, time_t *timep) 16 | { 17 | struct timespec t; 18 | 19 | WT_RET(__wt_epoch(session, &t)); 20 | 21 | *timep = t.tv_sec; 22 | 23 | return (0); 24 | } 25 | 26 | /* 27 | * __wt_epoch -- 28 | * Return the time since the Epoch. 29 | */ 30 | int 31 | __wt_epoch(WT_SESSION_IMPL *session, struct timespec *tsp) 32 | { 33 | WT_DECL_RET; 34 | 35 | #if defined(HAVE_CLOCK_GETTIME) 36 | WT_SYSCALL_RETRY(clock_gettime(CLOCK_REALTIME, tsp), ret); 37 | if (ret == 0) 38 | return (0); 39 | WT_RET_MSG(session, ret, "clock_gettime"); 40 | #elif defined(HAVE_GETTIMEOFDAY) 41 | struct timeval v; 42 | 43 | WT_SYSCALL_RETRY(gettimeofday(&v, NULL), ret); 44 | if (ret == 0) { 45 | tsp->tv_sec = v.tv_sec; 46 | tsp->tv_nsec = v.tv_usec * 1000; 47 | return (0); 48 | } 49 | WT_RET_MSG(session, ret, "gettimeofday"); 50 | #else 51 | NO TIME-OF-DAY IMPLEMENTATION: see src/os_posix/os_time.c 52 | #endif 53 | } 54 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/os_posix/os_yield.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "wt_internal.h" 9 | 10 | /* 11 | * __wt_yield -- 12 | * Yield the thread of control. 13 | */ 14 | void 15 | __wt_yield(void) 16 | { 17 | sched_yield(); 18 | } 19 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/support/filename.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "wt_internal.h" 9 | 10 | /* 11 | * __wt_absolute_path -- 12 | * Return if a filename is an absolute path. 13 | */ 14 | int 15 | __wt_absolute_path(const char *path) 16 | { 17 | return (path[0] == '/' ? 1 : 0); 18 | } 19 | 20 | /* 21 | * __wt_filename -- 22 | * Build a file name in a scratch buffer, automatically calculate the 23 | * length of the file name. 24 | */ 25 | int 26 | __wt_filename(WT_SESSION_IMPL *session, const char *name, char **path) 27 | { 28 | return (__wt_nfilename(session, name, strlen(name), path)); 29 | } 30 | 31 | /* 32 | * __wt_nfilename -- 33 | * Build a file name in a scratch buffer. If the name is already an 34 | * absolute path duplicate it, otherwise generate a path relative to the 35 | * connection home directory. 36 | */ 37 | int 38 | __wt_nfilename( 39 | WT_SESSION_IMPL *session, const char *name, size_t namelen, char **path) 40 | { 41 | WT_CONNECTION_IMPL *conn; 42 | size_t len; 43 | char *buf; 44 | 45 | conn = S2C(session); 46 | *path = NULL; 47 | 48 | if (__wt_absolute_path(name)) 49 | WT_RET(__wt_strndup(session, name, namelen, path)); 50 | else { 51 | len = strlen(conn->home) + 1 + namelen + 1; 52 | WT_RET(__wt_calloc(session, 1, len, &buf)); 53 | snprintf(buf, len, "%s/%.*s", conn->home, (int)namelen, name); 54 | *path = buf; 55 | } 56 | 57 | return (0); 58 | } 59 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/utilities/util_compact.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "util.h" 9 | 10 | static int usage(void); 11 | 12 | int 13 | util_compact(WT_SESSION *session, int argc, char *argv[]) 14 | { 15 | WT_DECL_RET; 16 | int ch; 17 | char *uri; 18 | 19 | uri = NULL; 20 | while ((ch = util_getopt(argc, argv, "")) != EOF) 21 | switch (ch) { 22 | case '?': 23 | default: 24 | return (usage()); 25 | } 26 | argc -= util_optind; 27 | argv += util_optind; 28 | 29 | /* The remaining argument is the table name. */ 30 | if (argc != 1) 31 | return (usage()); 32 | if ((uri = util_name(*argv, "table", 33 | UTIL_COLGROUP_OK | UTIL_FILE_OK | UTIL_INDEX_OK | 34 | UTIL_LSM_OK | UTIL_TABLE_OK)) == NULL) 35 | return (1); 36 | 37 | if ((ret = session->compact(session, uri, NULL)) != 0) { 38 | fprintf(stderr, "%s: compact(%s): %s\n", 39 | progname, uri, wiredtiger_strerror(ret)); 40 | goto err; 41 | } 42 | 43 | if (0) { 44 | err: ret = 1; 45 | } 46 | 47 | if (uri != NULL) 48 | free(uri); 49 | 50 | return (ret); 51 | } 52 | 53 | static int 54 | usage(void) 55 | { 56 | (void)fprintf(stderr, 57 | "usage: %s %s " 58 | "compact uri\n", 59 | progname, usage_prefix); 60 | return (1); 61 | } 62 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/utilities/util_cpyright.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "util.h" 9 | 10 | void 11 | util_copyright(void) 12 | { 13 | printf("%s\n", "Copyright (c) 2008-2014 WiredTiger, Inc."); 14 | printf("%s\n\n", "All rights reserved."); 15 | 16 | printf("%s\n\n", 17 | "This program is free software: you can redistribute it and/or\n" 18 | "modify it under the terms of version 3 of the GNU General\n" 19 | "Public License as published by the Free Software Foundation."); 20 | 21 | printf("%s\n\n", 22 | "This program is distributed in the hope that it will be useful,\n" 23 | "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" 24 | "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" 25 | "GNU General Public License for more details:"); 26 | 27 | printf("\t%s\n\n", 28 | "http://www.gnu.org/licenses/gpl-3.0-standalone.html"); 29 | 30 | printf("%s\n", 31 | "For a license to use the WiredTiger software under conditions\n" 32 | "other than those described by the GNU General Public License,\n" 33 | "or for technical support for this software, contact WiredTiger,\n" 34 | "Inc. at info@wiredtiger.com."); 35 | } 36 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/utilities/util_create.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "util.h" 9 | 10 | static int usage(void); 11 | 12 | int 13 | util_create(WT_SESSION *session, int argc, char *argv[]) 14 | { 15 | WT_DECL_RET; 16 | int ch; 17 | const char *config, *uri; 18 | 19 | config = NULL; 20 | while ((ch = util_getopt(argc, argv, "c:")) != EOF) 21 | switch (ch) { 22 | case 'c': /* command-line configuration */ 23 | config = util_optarg; 24 | break; 25 | case '?': 26 | default: 27 | return (usage()); 28 | } 29 | 30 | argc -= util_optind; 31 | argv += util_optind; 32 | 33 | /* The remaining argument is the uri. */ 34 | if (argc != 1) 35 | return (usage()); 36 | 37 | if ((uri = util_name(*argv, "table", UTIL_ALL_OK)) == NULL) 38 | return (1); 39 | 40 | if ((ret = session->create(session, uri, config)) != 0) 41 | return (util_err(ret, "%s: session.create", uri)); 42 | return (0); 43 | } 44 | 45 | static int 46 | usage(void) 47 | { 48 | (void)fprintf(stderr, 49 | "usage: %s %s " 50 | "create [-c configuration] uri\n", 51 | progname, usage_prefix); 52 | return (1); 53 | } 54 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/utilities/util_drop.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "util.h" 9 | 10 | static int usage(void); 11 | 12 | int 13 | util_drop(WT_SESSION *session, int argc, char *argv[]) 14 | { 15 | WT_DECL_RET; 16 | int ch; 17 | char *name; 18 | 19 | while ((ch = util_getopt(argc, argv, "")) != EOF) 20 | switch (ch) { 21 | case '?': 22 | default: 23 | return (usage()); 24 | } 25 | 26 | argc -= util_optind; 27 | argv += util_optind; 28 | 29 | /* The remaining argument is the uri. */ 30 | if (argc != 1) 31 | return (usage()); 32 | if ((name = util_name(*argv, "table", UTIL_ALL_OK)) == NULL) 33 | return (1); 34 | 35 | ret = session->drop(session, name, "force"); 36 | 37 | if (name != NULL) 38 | free(name); 39 | return (ret); 40 | } 41 | 42 | static int 43 | usage(void) 44 | { 45 | (void)fprintf(stderr, 46 | "usage: %s %s " 47 | "drop uri\n", 48 | progname, usage_prefix); 49 | return (1); 50 | } 51 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/utilities/util_printlog.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "util.h" 9 | 10 | static int usage(void); 11 | 12 | int 13 | util_printlog(WT_SESSION *session, int argc, char *argv[]) 14 | { 15 | WT_DECL_RET; 16 | int ch, printable; 17 | 18 | printable = 0; 19 | while ((ch = util_getopt(argc, argv, "f:p")) != EOF) 20 | switch (ch) { 21 | case 'f': /* output file */ 22 | if (freopen(util_optarg, "w", stdout) == NULL) { 23 | fprintf(stderr, "%s: %s: reopen: %s\n", 24 | progname, util_optarg, strerror(errno)); 25 | return (1); 26 | } 27 | break; 28 | case 'p': 29 | printable = 1; 30 | break; 31 | case '?': 32 | default: 33 | return (usage()); 34 | } 35 | argc -= util_optind; 36 | argv += util_optind; 37 | 38 | /* There should not be any more arguments. */ 39 | if (argc != 0) 40 | return (usage()); 41 | 42 | WT_UNUSED(printable); 43 | ret = __wt_txn_printlog(session, stdout); 44 | 45 | if (ret != 0) { 46 | fprintf(stderr, "%s: printlog failed: %s\n", 47 | progname, wiredtiger_strerror(ret)); 48 | goto err; 49 | } 50 | 51 | if (0) { 52 | err: ret = 1; 53 | } 54 | return (ret); 55 | } 56 | 57 | static int 58 | usage(void) 59 | { 60 | (void)fprintf(stderr, 61 | "usage: %s %s " 62 | "printlog [-p] [-f output-file]\n", 63 | progname, usage_prefix); 64 | return (1); 65 | } 66 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/utilities/util_rename.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "util.h" 9 | 10 | static int usage(void); 11 | 12 | int 13 | util_rename(WT_SESSION *session, int argc, char *argv[]) 14 | { 15 | WT_DECL_RET; 16 | int ch; 17 | char *uri, *newuri; 18 | 19 | uri = NULL; 20 | while ((ch = util_getopt(argc, argv, "")) != EOF) 21 | switch (ch) { 22 | case '?': 23 | default: 24 | return (usage()); 25 | } 26 | argc -= util_optind; 27 | argv += util_optind; 28 | 29 | /* The remaining arguments are the object uri and new name. */ 30 | if (argc != 2) 31 | return (usage()); 32 | if ((uri = util_name(*argv, 33 | "table", UTIL_FILE_OK | UTIL_LSM_OK | UTIL_TABLE_OK)) == NULL) 34 | return (1); 35 | newuri = argv[1]; 36 | 37 | if ((ret = session->rename(session, uri, newuri, NULL)) != 0) { 38 | fprintf(stderr, "%s: rename %s to %s: %s\n", 39 | progname, uri, newuri, wiredtiger_strerror(ret)); 40 | goto err; 41 | } 42 | 43 | if (0) { 44 | err: ret = 1; 45 | } 46 | 47 | if (uri != NULL) 48 | free(uri); 49 | 50 | return (ret); 51 | } 52 | 53 | static int 54 | usage(void) 55 | { 56 | (void)fprintf(stderr, 57 | "usage: %s %s " 58 | "rename uri newuri\n", 59 | progname, usage_prefix); 60 | return (1); 61 | } 62 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/utilities/util_salvage.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "util.h" 9 | 10 | static int usage(void); 11 | 12 | int 13 | util_salvage(WT_SESSION *session, int argc, char *argv[]) 14 | { 15 | WT_DECL_RET; 16 | int ch; 17 | const char *force; 18 | char *name; 19 | 20 | force = NULL; 21 | name = NULL; 22 | while ((ch = util_getopt(argc, argv, "F")) != EOF) 23 | switch (ch) { 24 | case 'F': 25 | force = "force"; 26 | break; 27 | case '?': 28 | default: 29 | return (usage()); 30 | } 31 | argc -= util_optind; 32 | argv += util_optind; 33 | 34 | /* The remaining argument is the file name. */ 35 | if (argc != 1) 36 | return (usage()); 37 | if ((name = util_name(*argv, "file", UTIL_FILE_OK)) == NULL) 38 | return (1); 39 | 40 | if ((ret = session->salvage(session, name, force)) != 0) { 41 | fprintf(stderr, "%s: salvage(%s): %s\n", 42 | progname, name, wiredtiger_strerror(ret)); 43 | goto err; 44 | } 45 | 46 | /* Verbose configures a progress counter, move to the next line. */ 47 | if (verbose) 48 | printf("\n"); 49 | 50 | if (0) { 51 | err: ret = 1; 52 | } 53 | 54 | if (name != NULL) 55 | free(name); 56 | 57 | return (ret); 58 | } 59 | 60 | static int 61 | usage(void) 62 | { 63 | (void)fprintf(stderr, 64 | "usage: %s %s " 65 | "salvage [-F] uri\n", 66 | progname, usage_prefix); 67 | return (1); 68 | } 69 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/src/utilities/util_upgrade.c: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2008-2014 WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include "util.h" 9 | 10 | static int usage(void); 11 | 12 | int 13 | util_upgrade(WT_SESSION *session, int argc, char *argv[]) 14 | { 15 | WT_DECL_RET; 16 | int ch; 17 | char *name; 18 | 19 | name = NULL; 20 | while ((ch = util_getopt(argc, argv, "")) != EOF) 21 | switch (ch) { 22 | case '?': 23 | default: 24 | return (usage()); 25 | } 26 | argc -= util_optind; 27 | argv += util_optind; 28 | 29 | /* The remaining argument is the table name. */ 30 | if (argc != 1) 31 | return (usage()); 32 | if ((name = util_name(*argv, 33 | "table", UTIL_FILE_OK | UTIL_LSM_OK | UTIL_TABLE_OK)) == NULL) 34 | return (1); 35 | 36 | if ((ret = session->upgrade(session, name, NULL)) != 0) { 37 | fprintf(stderr, "%s: upgrade(%s): %s\n", 38 | progname, name, wiredtiger_strerror(ret)); 39 | goto err; 40 | } 41 | 42 | /* Verbose configures a progress counter, move to the next line. */ 43 | if (verbose) 44 | printf("\n"); 45 | 46 | if (0) { 47 | err: ret = 1; 48 | } 49 | 50 | if (name != NULL) 51 | free(name); 52 | 53 | return (ret); 54 | } 55 | 56 | static int 57 | usage(void) 58 | { 59 | (void)fprintf(stderr, 60 | "usage: %s %s " 61 | "upgrade uri\n", 62 | progname, usage_prefix); 63 | return (1); 64 | } 65 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/concurrencytest-0.1.2/PKG-INFO: -------------------------------------------------------------------------------- 1 | Metadata-Version: 1.1 2 | Name: concurrencytest 3 | Version: 0.1.2 4 | Summary: testtools extension for running unittest suites concurrently 5 | Home-page: https://github.com/cgoldberg/concurrencytest 6 | Author: Corey Goldberg 7 | Author-email: cgoldberg _at_ gmail.com 8 | License: GNU GPLv3 9 | Download-URL: http://pypi.python.org/pypi/concurrencytest 10 | Description: UNKNOWN 11 | Keywords: test,testtools,unittest,concurrency,parallel 12 | Platform: UNKNOWN 13 | Classifier: Development Status :: 4 - Beta 14 | Classifier: Intended Audience :: Developers 15 | Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3) 16 | Classifier: Operating System :: POSIX 17 | Classifier: Operating System :: Unix 18 | Classifier: Programming Language :: Python 19 | Classifier: Programming Language :: Python :: 2 20 | Classifier: Programming Language :: Python :: 3 21 | Classifier: Topic :: Software Development :: Libraries :: Python Modules 22 | Classifier: Topic :: Software Development :: Testing 23 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/concurrencytest-0.1.2/concurrencytest.egg-info/PKG-INFO: -------------------------------------------------------------------------------- 1 | Metadata-Version: 1.1 2 | Name: concurrencytest 3 | Version: 0.1.2 4 | Summary: testtools extension for running unittest suites concurrently 5 | Home-page: https://github.com/cgoldberg/concurrencytest 6 | Author: Corey Goldberg 7 | Author-email: cgoldberg _at_ gmail.com 8 | License: GNU GPLv3 9 | Download-URL: http://pypi.python.org/pypi/concurrencytest 10 | Description: UNKNOWN 11 | Keywords: test,testtools,unittest,concurrency,parallel 12 | Platform: UNKNOWN 13 | Classifier: Development Status :: 4 - Beta 14 | Classifier: Intended Audience :: Developers 15 | Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3) 16 | Classifier: Operating System :: POSIX 17 | Classifier: Operating System :: Unix 18 | Classifier: Programming Language :: Python 19 | Classifier: Programming Language :: Python :: 2 20 | Classifier: Programming Language :: Python :: 3 21 | Classifier: Topic :: Software Development :: Libraries :: Python Modules 22 | Classifier: Topic :: Software Development :: Testing 23 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/concurrencytest-0.1.2/concurrencytest.egg-info/SOURCES.txt: -------------------------------------------------------------------------------- 1 | concurrencytest.py 2 | setup.py 3 | concurrencytest.egg-info/PKG-INFO 4 | concurrencytest.egg-info/SOURCES.txt 5 | concurrencytest.egg-info/dependency_links.txt 6 | concurrencytest.egg-info/requires.txt 7 | concurrencytest.egg-info/top_level.txt -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/concurrencytest-0.1.2/concurrencytest.egg-info/dependency_links.txt: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/concurrencytest-0.1.2/concurrencytest.egg-info/requires.txt: -------------------------------------------------------------------------------- 1 | python-subunit 2 | testtools -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/concurrencytest-0.1.2/concurrencytest.egg-info/top_level.txt: -------------------------------------------------------------------------------- 1 | concurrencytest 2 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/concurrencytest-0.1.2/setup.cfg: -------------------------------------------------------------------------------- 1 | [egg_info] 2 | tag_build = 3 | tag_date = 0 4 | tag_svn_revision = 0 5 | 6 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/concurrencytest-0.1.2/setup.py: -------------------------------------------------------------------------------- 1 | 2 | """setup/install script for concurrencytest""" 3 | 4 | 5 | import os 6 | from setuptools import setup 7 | 8 | 9 | setup( 10 | name='concurrencytest', 11 | version='0.1.2', 12 | py_modules=['concurrencytest'], 13 | install_requires=['python-subunit', 'testtools'], 14 | author='Corey Goldberg', 15 | author_email='cgoldberg _at_ gmail.com', 16 | description='testtools extension for running unittest suites concurrently', 17 | url='https://github.com/cgoldberg/concurrencytest', 18 | download_url='http://pypi.python.org/pypi/concurrencytest', 19 | keywords='test testtools unittest concurrency parallel'.split(), 20 | license='GNU GPLv3', 21 | classifiers=[ 22 | 'Development Status :: 4 - Beta', 23 | 'Intended Audience :: Developers', 24 | 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', 25 | 'Operating System :: POSIX', 26 | 'Operating System :: Unix', 27 | 'Programming Language :: Python', 28 | 'Programming Language :: Python :: 2', 29 | 'Programming Language :: Python :: 3', 30 | 'Topic :: Software Development :: Libraries :: Python Modules', 31 | 'Topic :: Software Development :: Testing', 32 | ] 33 | ) 34 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/discover-0.4.0/setup.cfg: -------------------------------------------------------------------------------- 1 | [sdist] 2 | force-manifest = 1 -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/extras-0.0.3/.gitignore: -------------------------------------------------------------------------------- 1 | *.py[co] 2 | 3 | # Packages 4 | *.egg 5 | *.egg-info 6 | dist 7 | build 8 | eggs 9 | parts 10 | bin 11 | var 12 | sdist 13 | develop-eggs 14 | .installed.cfg 15 | MANIFEST 16 | 17 | # Installer logs 18 | pip-log.txt 19 | 20 | # Unit test / coverage reports 21 | .coverage 22 | .tox 23 | 24 | #Translations 25 | *.mo 26 | 27 | #Mr Developer 28 | .mr.developer.cfg 29 | 30 | # editors 31 | *.swp 32 | *~ 33 | 34 | # Testrepository 35 | .testrepository 36 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/extras-0.0.3/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010-2012 the extras authors. 2 | 3 | The extras authors are: 4 | * Jonathan Lange 5 | * Martin Pool 6 | * Robert Collins 7 | 8 | and are collectively referred to as "extras developers". 9 | 10 | Permission is hereby granted, free of charge, to any person obtaining a copy 11 | of this software and associated documentation files (the "Software"), to deal 12 | in the Software without restriction, including without limitation the rights 13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14 | copies of the Software, and to permit persons to whom the Software is 15 | furnished to do so, subject to the following conditions: 16 | 17 | The above copyright notice and this permission notice shall be included in all 18 | copies or substantial portions of the Software. 19 | 20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 26 | SOFTWARE. 27 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/extras-0.0.3/MANIFEST.in: -------------------------------------------------------------------------------- 1 | include LICENSE 2 | include Makefile 3 | include MANIFEST.in 4 | include NEWS 5 | include README.rst 6 | include .gitignore 7 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/extras-0.0.3/Makefile: -------------------------------------------------------------------------------- 1 | # See README.rst for copyright and licensing details. 2 | 3 | PYTHON=python 4 | SOURCES=$(shell find extras -name "*.py") 5 | 6 | check: 7 | PYTHONPATH=$(PWD) $(PYTHON) -m testtools.run extras.tests.test_suite 8 | 9 | TAGS: ${SOURCES} 10 | ctags -e -R extras/ 11 | 12 | tags: ${SOURCES} 13 | ctags -R extras/ 14 | 15 | clean: 16 | rm -f TAGS tags 17 | find extras -name "*.pyc" -exec rm '{}' \; 18 | 19 | ### Documentation ### 20 | 21 | apidocs: 22 | # pydoctor emits deprecation warnings under Ubuntu 10.10 LTS 23 | PYTHONWARNINGS='ignore::DeprecationWarning' \ 24 | pydoctor --make-html --add-package extras \ 25 | --docformat=restructuredtext --project-name=extras \ 26 | --project-url=https://launchpad.net/extras 27 | 28 | 29 | .PHONY: apidocs 30 | .PHONY: check clean 31 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/extras-0.0.3/NEWS: -------------------------------------------------------------------------------- 1 | extras NEWS 2 | +++++++++++ 3 | 4 | Changes and improvements to extras_, grouped by release. 5 | 6 | NEXT 7 | ~~~~ 8 | 9 | 0.0.3 10 | ~~~~~ 11 | 12 | * Extras setup.py would break on older testtools releases, which could break 13 | installs of newer testtools due to extras then failing to install. 14 | (Robert Collins) 15 | 16 | 0.0.2 17 | ~~~~~ 18 | 19 | * Fix Makefile to not have cruft leftover from testtools. 20 | 21 | 0.0.1 22 | ~~~~~ 23 | 24 | * Initial extraction from testtools. 25 | 26 | 27 | .. _extras: http://pypi.python.org/pypi/extras 28 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/extras-0.0.3/README.rst: -------------------------------------------------------------------------------- 1 | ====== 2 | extras 3 | ====== 4 | 5 | extras is a set of extensions to the Python standard library, originally 6 | written to make the code within testtools cleaner, but now split out for 7 | general use outside of a testing context. 8 | 9 | 10 | Documentation 11 | ------------- 12 | 13 | pydoc extras is your friend. extras currently contains the following functions: 14 | 15 | * try_import 16 | 17 | * try_imports 18 | 19 | * safe_hasattr 20 | 21 | Which do what their name suggests. 22 | 23 | 24 | Licensing 25 | --------- 26 | 27 | This project is distributed under the MIT license and copyright is owned by 28 | the extras authors. See LICENSE for details. 29 | 30 | 31 | Required Dependencies 32 | --------------------- 33 | 34 | * Python 2.6+ or 3.0+ 35 | 36 | 37 | Bug reports and patches 38 | ----------------------- 39 | 40 | Please report bugs using github issues at . 41 | Patches can also be submitted via github. You can mail the authors directly 42 | via the mailing list testtools-dev@lists.launchpad.net. (Note that Launchpad 43 | discards email from unknown addresses - be sure to sign up for a Launchpad 44 | account before mailing the list, or your mail will be silently discarded). 45 | 46 | 47 | History 48 | ------- 49 | 50 | extras used to be testtools.helpers, and was factored out when folk wanted to 51 | use it separately. 52 | 53 | 54 | Thanks 55 | ------ 56 | 57 | * Martin Pool 58 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/extras-0.0.3/extras/tests/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2010-2012 extras developers. See LICENSE for details. 2 | 3 | """Tests for extras.""" 4 | 5 | from unittest import TestSuite, TestLoader 6 | 7 | 8 | def test_suite(): 9 | from extras.tests import ( 10 | test_extras, 11 | ) 12 | modules = [ 13 | test_extras, 14 | ] 15 | loader = TestLoader() 16 | suites = map(loader.loadTestsFromModule, modules) 17 | return TestSuite(suites) 18 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/extras-0.0.3/setup.cfg: -------------------------------------------------------------------------------- 1 | [test] 2 | test_module = extras.tests 3 | buffer = 1 4 | catch = 1 5 | 6 | [egg_info] 7 | tag_build = 8 | tag_date = 0 9 | tag_svn_revision = 0 10 | 11 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/extras-0.0.3/setup.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | """Distutils installer for extras.""" 3 | 4 | from setuptools import setup 5 | import os.path 6 | 7 | import extras 8 | testtools_cmd = extras.try_import('testtools.TestCommand') 9 | 10 | 11 | def get_version(): 12 | """Return the version of extras that we are building.""" 13 | version = '.'.join( 14 | str(component) for component in extras.__version__[0:3]) 15 | return version 16 | 17 | 18 | def get_long_description(): 19 | readme_path = os.path.join( 20 | os.path.dirname(__file__), 'README.rst') 21 | return open(readme_path).read() 22 | 23 | 24 | cmdclass = {} 25 | 26 | if testtools_cmd is not None: 27 | cmdclass['test'] = testtools_cmd 28 | 29 | 30 | setup(name='extras', 31 | author='Testing cabal', 32 | author_email='testtools-dev@lists.launchpad.net', 33 | url='https://github.com/testing-cabal/extras', 34 | description=('Useful extra bits for Python - things that shold be ' 35 | 'in the standard library'), 36 | long_description=get_long_description(), 37 | version=get_version(), 38 | classifiers=["License :: OSI Approved :: MIT License"], 39 | packages=[ 40 | 'extras', 41 | 'extras.tests', 42 | ], 43 | cmdclass=cmdclass) 44 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/python-subunit-0.0.16/MANIFEST.in: -------------------------------------------------------------------------------- 1 | exclude .bzrignore 2 | exclude aclocal.m4 3 | prune autom4te.cache 4 | prune c 5 | prune c++ 6 | prune compile 7 | exclude configure* 8 | exclude depcomp 9 | exclude INSTALL 10 | exclude install-sh 11 | exclude lib* 12 | exclude ltmain.sh 13 | prune m4 14 | exclude Makefile* 15 | exclude missing 16 | prune perl 17 | exclude py-compile 18 | prune shell 19 | exclude stamp-h1 20 | include NEWS 21 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/python-subunit-0.0.16/filters/subunit-1to2: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # subunit: extensions to python unittest to get test results from subprocesses. 3 | # Copyright (C) 2013 Robert Collins 4 | # 5 | # Licensed under either the Apache License, Version 2.0 or the BSD 3-clause 6 | # license at the users choice. A copy of both licenses are available in the 7 | # project source as Apache-2.0 and BSD. You may not use this file except in 8 | # compliance with one of these two licences. 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT 12 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | # license you chose for the specific language governing permissions and 14 | # limitations under that license. 15 | # 16 | 17 | """Convert a version 1 subunit stream to version 2 stream.""" 18 | 19 | from optparse import OptionParser 20 | import sys 21 | 22 | from testtools import ExtendedToStreamDecorator 23 | 24 | from subunit import StreamResultToBytes 25 | from subunit.filters import find_stream, run_tests_from_stream 26 | 27 | 28 | def make_options(description): 29 | parser = OptionParser(description=__doc__) 30 | return parser 31 | 32 | 33 | def main(): 34 | parser = make_options(__doc__) 35 | (options, args) = parser.parse_args() 36 | run_tests_from_stream(find_stream(sys.stdin, args), 37 | ExtendedToStreamDecorator(StreamResultToBytes(sys.stdout))) 38 | sys.exit(0) 39 | 40 | 41 | if __name__ == '__main__': 42 | main() 43 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/python-subunit-0.0.16/filters/subunit-stats: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # subunit: extensions to python unittest to get test results from subprocesses. 3 | # Copyright (C) 2009 Robert Collins 4 | # 5 | # Licensed under either the Apache License, Version 2.0 or the BSD 3-clause 6 | # license at the users choice. A copy of both licenses are available in the 7 | # project source as Apache-2.0 and BSD. You may not use this file except in 8 | # compliance with one of these two licences. 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT 12 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | # license you chose for the specific language governing permissions and 14 | # limitations under that license. 15 | # 16 | 17 | """Filter a subunit stream to get aggregate statistics.""" 18 | 19 | import sys 20 | 21 | from testtools import StreamToExtendedDecorator 22 | 23 | from subunit import TestResultStats 24 | from subunit.filters import run_filter_script 25 | 26 | 27 | result = TestResultStats(sys.stdout) 28 | def show_stats(r): 29 | r.decorated.formatStats() 30 | run_filter_script( 31 | lambda output:StreamToExtendedDecorator(result), 32 | __doc__, show_stats, protocol_version=2, passthrough_subunit=False) 33 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/python-subunit-0.0.16/filters/subunit-tags: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # subunit: extensions to python unittest to get test results from subprocesses. 3 | # Copyright (C) 2009 Robert Collins 4 | # 5 | # Licensed under either the Apache License, Version 2.0 or the BSD 3-clause 6 | # license at the users choice. A copy of both licenses are available in the 7 | # project source as Apache-2.0 and BSD. You may not use this file except in 8 | # compliance with one of these two licences. 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT 12 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | # license you chose for the specific language governing permissions and 14 | # limitations under that license. 15 | # 16 | 17 | """A filter to change tags on a subunit stream. 18 | 19 | subunit-tags foo -> adds foo 20 | subunit-tags foo -bar -> adds foo and removes bar 21 | """ 22 | 23 | import sys 24 | 25 | from subunit import tag_stream 26 | 27 | sys.exit(tag_stream(sys.stdin, sys.stdout, sys.argv[1:])) 28 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/python-subunit-0.0.16/filters/subunit2junitxml: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # subunit: extensions to python unittest to get test results from subprocesses. 3 | # Copyright (C) 2009 Robert Collins 4 | # 5 | # Licensed under either the Apache License, Version 2.0 or the BSD 3-clause 6 | # license at the users choice. A copy of both licenses are available in the 7 | # project source as Apache-2.0 and BSD. You may not use this file except in 8 | # compliance with one of these two licences. 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT 12 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | # license you chose for the specific language governing permissions and 14 | # limitations under that license. 15 | # 16 | 17 | """Filter a subunit stream to get aggregate statistics.""" 18 | 19 | 20 | import sys 21 | 22 | from testtools import StreamToExtendedDecorator 23 | 24 | from subunit.filters import run_filter_script 25 | 26 | try: 27 | from junitxml import JUnitXmlResult 28 | except ImportError: 29 | sys.stderr.write("python-junitxml (https://launchpad.net/pyjunitxml or " 30 | "http://pypi.python.org/pypi/junitxml) is required for this filter.") 31 | raise 32 | 33 | 34 | run_filter_script( 35 | lambda output:StreamToExtendedDecorator(JUnitXmlResult(output)), __doc__, 36 | protocol_version=2) 37 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/python-subunit-0.0.16/filters/tap2subunit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # subunit: extensions to python unittest to get test results from subprocesses. 3 | # Copyright (C) 2009 Robert Collins 4 | # 5 | # Licensed under either the Apache License, Version 2.0 or the BSD 3-clause 6 | # license at the users choice. A copy of both licenses are available in the 7 | # project source as Apache-2.0 and BSD. You may not use this file except in 8 | # compliance with one of these two licences. 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT 12 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | # license you chose for the specific language governing permissions and 14 | # limitations under that license. 15 | # 16 | 17 | """A filter that reads a TAP stream and outputs a subunit stream. 18 | 19 | More information on TAP is available at 20 | http://testanything.org/wiki/index.php/Main_Page. 21 | """ 22 | 23 | import sys 24 | 25 | from subunit import TAP2SubUnit 26 | sys.exit(TAP2SubUnit(sys.stdin, sys.stdout)) 27 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/python-subunit-0.0.16/python/subunit/tests/sample-script.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import sys 3 | if sys.platform == "win32": 4 | import msvcrt, os 5 | msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY) 6 | if len(sys.argv) == 2: 7 | # subunit.tests.test_test_protocol.TestExecTestCase.test_sample_method_args 8 | # uses this code path to be sure that the arguments were passed to 9 | # sample-script.py 10 | print("test fail") 11 | print("error fail") 12 | sys.exit(0) 13 | print("test old mcdonald") 14 | print("success old mcdonald") 15 | print("test bing crosby") 16 | print("failure bing crosby [") 17 | print("foo.c:53:ERROR invalid state") 18 | print("]") 19 | print("test an error") 20 | print("error an error") 21 | sys.exit(0) 22 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/python-subunit-0.0.16/python/subunit/tests/sample-two-script.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import sys 3 | print("test old mcdonald") 4 | print("success old mcdonald") 5 | print("test bing crosby") 6 | print("success bing crosby") 7 | sys.exit(0) 8 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/python-subunit-0.0.16/python/subunit/tests/test_filters.py: -------------------------------------------------------------------------------- 1 | # 2 | # subunit: extensions to Python unittest to get test results from subprocesses. 3 | # Copyright (C) 2013 Robert Collins 4 | # 5 | # Licensed under either the Apache License, Version 2.0 or the BSD 3-clause 6 | # license at the users choice. A copy of both licenses are available in the 7 | # project source as Apache-2.0 and BSD. You may not use this file except in 8 | # compliance with one of these two licences. 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT 12 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | # license you chose for the specific language governing permissions and 14 | # limitations under that license. 15 | # 16 | 17 | import sys 18 | from tempfile import NamedTemporaryFile 19 | 20 | from testtools import TestCase 21 | 22 | from subunit.filters import find_stream 23 | 24 | 25 | class TestFindStream(TestCase): 26 | 27 | def test_no_argv(self): 28 | self.assertEqual('foo', find_stream('foo', [])) 29 | 30 | def test_opens_file(self): 31 | f = NamedTemporaryFile() 32 | f.write(b'foo') 33 | f.flush() 34 | stream = find_stream('bar', [f.name]) 35 | self.assertEqual(b'foo', stream.read()) 36 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/python-subunit-0.0.16/python_subunit.egg-info/SOURCES.txt: -------------------------------------------------------------------------------- 1 | MANIFEST.in 2 | NEWS 3 | README 4 | setup.py 5 | filters/subunit-1to2 6 | filters/subunit-2to1 7 | filters/subunit-filter 8 | filters/subunit-ls 9 | filters/subunit-notify 10 | filters/subunit-stats 11 | filters/subunit-tags 12 | filters/subunit2gtk 13 | filters/subunit2junitxml 14 | filters/subunit2pyunit 15 | filters/tap2subunit 16 | python/subunit/__init__.py 17 | python/subunit/chunked.py 18 | python/subunit/details.py 19 | python/subunit/filters.py 20 | python/subunit/iso8601.py 21 | python/subunit/progress_model.py 22 | python/subunit/run.py 23 | python/subunit/test_results.py 24 | python/subunit/v2.py 25 | python/subunit/tests/__init__.py 26 | python/subunit/tests/sample-script.py 27 | python/subunit/tests/sample-two-script.py 28 | python/subunit/tests/test_chunked.py 29 | python/subunit/tests/test_details.py 30 | python/subunit/tests/test_filters.py 31 | python/subunit/tests/test_progress_model.py 32 | python/subunit/tests/test_run.py 33 | python/subunit/tests/test_subunit_filter.py 34 | python/subunit/tests/test_subunit_stats.py 35 | python/subunit/tests/test_subunit_tags.py 36 | python/subunit/tests/test_tap2subunit.py 37 | python/subunit/tests/test_test_protocol.py 38 | python/subunit/tests/test_test_protocol2.py 39 | python/subunit/tests/test_test_results.py 40 | python_subunit.egg-info/PKG-INFO 41 | python_subunit.egg-info/SOURCES.txt 42 | python_subunit.egg-info/dependency_links.txt 43 | python_subunit.egg-info/requires.txt 44 | python_subunit.egg-info/top_level.txt -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/python-subunit-0.0.16/python_subunit.egg-info/dependency_links.txt: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/python-subunit-0.0.16/python_subunit.egg-info/requires.txt: -------------------------------------------------------------------------------- 1 | extras 2 | testtools>=0.9.34 -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/python-subunit-0.0.16/python_subunit.egg-info/top_level.txt: -------------------------------------------------------------------------------- 1 | subunit 2 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/python-subunit-0.0.16/setup.cfg: -------------------------------------------------------------------------------- 1 | [egg_info] 2 | tag_build = 3 | tag_date = 0 4 | tag_svn_revision = 0 5 | 6 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testscenarios-0.4/.bzrignore: -------------------------------------------------------------------------------- 1 | TAGS 2 | tags 3 | lib/testtools 4 | MANIFEST 5 | dist 6 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testscenarios-0.4/BSD: -------------------------------------------------------------------------------- 1 | Copyright (c) Robert Collins and Testscenarios contributors 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions 6 | are met: 7 | 1. Redistributions of source code must retain the above copyright 8 | notice, this list of conditions and the following disclaimer. 9 | 2. Redistributions in binary form must reproduce the above copyright 10 | notice, this list of conditions and the following disclaimer in the 11 | documentation and/or other materials provided with the distribution. 12 | 3. Neither the name of Robert Collins nor the names of Subunit contributors 13 | may be used to endorse or promote products derived from this software 14 | without specific prior written permission. 15 | 16 | THIS SOFTWARE IS PROVIDED BY ROBERT COLLINS AND SUBUNIT CONTRIBUTORS ``AS IS'' 17 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19 | ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 20 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 | OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 | OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 | SUCH DAMAGE. 27 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testscenarios-0.4/COPYING: -------------------------------------------------------------------------------- 1 | Testscenarios is licensed under two licenses, the Apache License, Version 2.0 2 | or the 3-clause BSD License. You may use this project under either of these 3 | licenses - choose the one that works best for you. 4 | 5 | We require contributions to be licensed under both licenses. The primary 6 | difference between them is that the Apache license takes care of potential 7 | issues with Patents and other intellectual property concerns that some users 8 | or contributors may find important. 9 | 10 | Generally every source file in Testscenarios needs a license grant under both 11 | these licenses. As the code is shipped as a single unit, a brief form is used: 12 | ---- 13 | Copyright (c) [yyyy][,yyyy]* [name or 'Testscenarios Contributors'] 14 | 15 | Licensed under either the Apache License, Version 2.0 or the BSD 3-clause 16 | license at the users choice. A copy of both licenses are available in the 17 | project source as Apache-2.0 and BSD. You may not use this file except in 18 | compliance with one of these two licences. 19 | 20 | Unless required by applicable law or agreed to in writing, software 21 | distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT 22 | WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 23 | license you chose for the specific language governing permissions and 24 | limitations under that license. 25 | ---- 26 | 27 | Code that has been incorporated into Testscenarios from other projects will 28 | naturally be under its own license, and will retain that license. 29 | 30 | A known list of such code is maintained here: 31 | * No entries. 32 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testscenarios-0.4/GOALS: -------------------------------------------------------------------------------- 1 | 2 | testscenarios goals 3 | =================== 4 | 5 | * nice, declarative interface for multiplying tests by scenarios. 6 | 7 | * plays nice with testresources - when a scenario uses a resource, the 8 | resource ordering logic should be able to group them together. 9 | 10 | * (at user discretion) plays nice with $random test discovery 11 | 12 | * arbitrary post-load multiplication. 13 | 14 | * cross-productable scenarios (for X and for Y) 15 | 16 | * extenable scenarios (for X using Y) 17 | 18 | * scenarios and the tests that use them are loosely coupled 19 | 20 | * tests that use scenarios should be easy to debug 21 | 22 | * fast 23 | 24 | * usable in trial, bzr, Zope testrunner, nose and the default unittest 25 | TestRunner 26 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testscenarios-0.4/HACKING: -------------------------------------------------------------------------------- 1 | Contributing to testscenarios 2 | ============================= 3 | 4 | Code access 5 | +++++++++++ 6 | 7 | Branch from the trunk (all patches should be for trunk unless there are 8 | exceptional circumstances):: 9 | 10 | bzr branch lp:testscenarios path-to-new-local-branch 11 | 12 | Publish your branches whereever you like, I encourage launchpad hosting though, 13 | as it can notify me of new testscenarios branches:: 14 | 15 | bzr push lp:~YOURUSERNAME/testscearios/YOURBRANCHNAME 16 | 17 | Copyright 18 | +++++++++ 19 | 20 | Testscenarios is Copyright (C) 2009 Robert Collins. I'd like to be able to 21 | offer it up for stdlib inclusion once it has proved itself, so am asking for 22 | copyright assignment to me - or for your contributions to be under either the 23 | BSD or Apache-2.0 licences that Testscenarios are with (which permit inclusion 24 | in Python). 25 | 26 | Coding standards 27 | ++++++++++++++++ 28 | 29 | PEP-8 coding style please, though I'm not nitpicky. Make sure that 'make check' 30 | passes before sending in a patch. 31 | 32 | Code arrangement 33 | ++++++++++++++++ 34 | 35 | The ``testscenarios`` module should simply import classes and functions from 36 | more specific modules, rather than becoming large and bloated itself. For 37 | instance, TestWithScenarios lives in testscenarios.testcase, and is imported in 38 | the testscenarios __init__.py. 39 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testscenarios-0.4/MANIFEST.in: -------------------------------------------------------------------------------- 1 | include .bzrignore 2 | include Apache-2.0 3 | include BSD 4 | include COPYING 5 | include GOALS 6 | include HACKING 7 | include MANIFEST.in 8 | include Makefile 9 | include NEWS 10 | include doc/*.py 11 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testscenarios-0.4/Makefile: -------------------------------------------------------------------------------- 1 | PYTHONPATH:=$(shell pwd)/lib:${PYTHONPATH} 2 | PYTHON ?= python 3 | 4 | all: check 5 | 6 | check: 7 | PYTHONPATH=$(PYTHONPATH) $(PYTHON) -m testtools.run \ 8 | testscenarios.test_suite 9 | 10 | clean: 11 | find . -name '*.pyc' -print0 | xargs -0 rm -f 12 | 13 | TAGS: lib/testscenarios/*.py lib/testscenarios/tests/*.py 14 | ctags -e -R lib/testscenarios/ 15 | 16 | tags: lib/testscenarios/*.py lib/testscenarios/tests/*.py 17 | ctags -R lib/testscenarios/ 18 | 19 | .PHONY: all check clean 20 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testscenarios-0.4/NEWS: -------------------------------------------------------------------------------- 1 | --------------------------- 2 | testscenarios release notes 3 | --------------------------- 4 | 5 | 6 | IN DEVELOPMENT 7 | ~~~~~~~~~~~~~~ 8 | 9 | 0.4 10 | ~~~ 11 | 12 | IMPROVEMENTS 13 | ------------ 14 | 15 | * Python 3.2 support added. (Robert Collins) 16 | 17 | 0.3 18 | ~~~ 19 | 20 | CHANGES 21 | ------- 22 | 23 | * New function ``per_module_scenarios`` for tests that should be applied across 24 | multiple modules providing the same interface, some of which may not be 25 | available at run time. (Martin Pool) 26 | 27 | * ``TestWithScenarios`` is now backed by a mixin - WithScenarios - which can be 28 | mixed into different unittest implementations more cleanly (e.g. unittest2). 29 | (James Polley, Robert Collins) 30 | 31 | 0.2 32 | ~~~ 33 | 34 | CHANGES 35 | ------- 36 | 37 | * Adjust the cloned tests ``shortDescription`` if one is present. (Ben Finney) 38 | 39 | * Provide a load_tests implementation for easy use, and multiply_scenarios to 40 | create the cross product of scenarios. (Martin Pool) 41 | 42 | 0.1 43 | ~~~ 44 | 45 | CHANGES 46 | ------- 47 | 48 | * Created project. The primary interfaces are 49 | ``testscenarios.TestWithScenarios`` and 50 | ``testscenarios.generate_scenarios``. Documentation is primarily in README. 51 | (Robert Collins) 52 | 53 | * Make the README documentation doctest compatible, to be sure it works. 54 | Also various presentation and language touchups. (Martin Pool) 55 | (Adjusted to use doctest directly, and to not print the demo runners 56 | output to stderror during make check - Robert Collins) 57 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testscenarios-0.4/doc/__init__.py: -------------------------------------------------------------------------------- 1 | # testscenarios: extensions to python unittest to allow declarative 2 | # dependency injection ('scenarios') by tests. 3 | # 4 | # Copyright (c) 2009, Robert Collins 5 | # 6 | # Licensed under either the Apache License, Version 2.0 or the BSD 3-clause 7 | # license at the users choice. A copy of both licenses are available in the 8 | # project source as Apache-2.0 and BSD. You may not use this file except in 9 | # compliance with one of these two licences. 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT 13 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 14 | # license you chose for the specific language governing permissions and 15 | # limitations under that license. 16 | 17 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testscenarios-0.4/doc/example.py: -------------------------------------------------------------------------------- 1 | # testscenarios: extensions to python unittest to allow declarative 2 | # dependency injection ('scenarios') by tests. 3 | # Copyright (c) 2009, Robert Collins 4 | # 5 | # Licensed under either the Apache License, Version 2.0 or the BSD 3-clause 6 | # license at the users choice. A copy of both licenses are available in the 7 | # project source as Apache-2.0 and BSD. You may not use this file except in 8 | # compliance with one of these two licences. 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT 12 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | # license you chose for the specific language governing permissions and 14 | # limitations under that license. 15 | 16 | """Example TestScenario.""" 17 | 18 | from testscenarios import TestWithScenarios 19 | 20 | 21 | scenario1 = ('basic', {'attribute': 'value'}) 22 | scenario2 = ('advanced', {'attribute': 'value2'}) 23 | 24 | 25 | class SampleWithScenarios(TestWithScenarios): 26 | 27 | scenarios = [scenario1, scenario2] 28 | 29 | def test_demo(self): 30 | self.assertIsInstance(self.attribute, str) 31 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testscenarios-0.4/doc/test_sample.py: -------------------------------------------------------------------------------- 1 | # testscenarios: extensions to python unittest to allow declarative 2 | # dependency injection ('scenarios') by tests. 3 | # 4 | # Copyright (c) 2009, Robert Collins 5 | # 6 | # Licensed under either the Apache License, Version 2.0 or the BSD 3-clause 7 | # license at the users choice. A copy of both licenses are available in the 8 | # project source as Apache-2.0 and BSD. You may not use this file except in 9 | # compliance with one of these two licences. 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT 13 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 14 | # license you chose for the specific language governing permissions and 15 | # limitations under that license. 16 | 17 | import unittest 18 | 19 | class TestSample(unittest.TestCase): 20 | 21 | def test_so_easy(self): 22 | pass 23 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testscenarios-0.4/lib/testscenarios.egg-info/SOURCES.txt: -------------------------------------------------------------------------------- 1 | .bzrignore 2 | Apache-2.0 3 | BSD 4 | COPYING 5 | GOALS 6 | HACKING 7 | MANIFEST.in 8 | Makefile 9 | NEWS 10 | README 11 | setup.py 12 | doc/__init__.py 13 | doc/example.py 14 | doc/test_sample.py 15 | lib/testscenarios/__init__.py 16 | lib/testscenarios/scenarios.py 17 | lib/testscenarios/testcase.py 18 | lib/testscenarios.egg-info/PKG-INFO 19 | lib/testscenarios.egg-info/SOURCES.txt 20 | lib/testscenarios.egg-info/dependency_links.txt 21 | lib/testscenarios.egg-info/requires.txt 22 | lib/testscenarios.egg-info/top_level.txt 23 | lib/testscenarios/tests/__init__.py 24 | lib/testscenarios/tests/test_scenarios.py 25 | lib/testscenarios/tests/test_testcase.py -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testscenarios-0.4/lib/testscenarios.egg-info/dependency_links.txt: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testscenarios-0.4/lib/testscenarios.egg-info/requires.txt: -------------------------------------------------------------------------------- 1 | testtools -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testscenarios-0.4/lib/testscenarios.egg-info/top_level.txt: -------------------------------------------------------------------------------- 1 | testscenarios 2 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testscenarios-0.4/setup.cfg: -------------------------------------------------------------------------------- 1 | [egg_info] 2 | tag_build = 3 | tag_date = 0 4 | tag_svn_revision = 0 5 | 6 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testscenarios-0.4/setup.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | from setuptools import setup 4 | import os.path 5 | 6 | description = open(os.path.join(os.path.dirname(__file__), 'README'), 'rt').read() 7 | 8 | setup(name="testscenarios", 9 | version="0.4", 10 | description="Testscenarios, a pyunit extension for dependency injection", 11 | long_description=description, 12 | maintainer="Robert Collins", 13 | maintainer_email="robertc@robertcollins.net", 14 | url="https://launchpad.net/testscenarios", 15 | packages=['testscenarios', 'testscenarios.tests'], 16 | package_dir = {'':'lib'}, 17 | classifiers = [ 18 | 'Development Status :: 6 - Mature', 19 | 'Intended Audience :: Developers', 20 | 'License :: OSI Approved :: BSD License', 21 | 'License :: OSI Approved :: Apache Software License', 22 | 'Operating System :: OS Independent', 23 | 'Programming Language :: Python', 24 | 'Programming Language :: Python :: 3', 25 | 'Topic :: Software Development :: Quality Assurance', 26 | 'Topic :: Software Development :: Testing', 27 | ], 28 | install_requires = [ 29 | 'testtools', 30 | ] 31 | ) 32 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testtools-0.9.34/.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__ 2 | ./build 3 | MANIFEST 4 | dist 5 | tags 6 | TAGS 7 | apidocs 8 | _trial_temp 9 | doc/_build 10 | .testrepository 11 | ./testtools.egg-info 12 | *.pyc 13 | *.swp 14 | *~ 15 | testtools.egg-info 16 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testtools-0.9.34/MANIFEST.in: -------------------------------------------------------------------------------- 1 | include LICENSE 2 | include Makefile 3 | include MANIFEST.in 4 | include NEWS 5 | include README.rst 6 | include .gitignore 7 | graft doc 8 | graft doc/_static 9 | graft doc/_templates 10 | prune doc/_build 11 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testtools-0.9.34/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2008-2013 testtools developers. See LICENSE for details. 2 | 3 | PYTHON=python 4 | SOURCES=$(shell find testtools -name "*.py") 5 | 6 | check: 7 | PYTHONPATH=$(PWD) $(PYTHON) -m testtools.run testtools.tests.test_suite 8 | 9 | TAGS: ${SOURCES} 10 | ctags -e -R testtools/ 11 | 12 | tags: ${SOURCES} 13 | ctags -R testtools/ 14 | 15 | clean: clean-sphinx 16 | rm -f TAGS tags 17 | find testtools -name "*.pyc" -exec rm '{}' \; 18 | 19 | prerelease: 20 | # An existing MANIFEST breaks distutils sometimes. Avoid that. 21 | -rm MANIFEST 22 | 23 | release: 24 | ./setup.py sdist upload --sign 25 | $(PYTHON) scripts/_lp_release.py 26 | 27 | snapshot: prerelease 28 | ./setup.py sdist 29 | 30 | ### Documentation ### 31 | 32 | apidocs: 33 | # pydoctor emits deprecation warnings under Ubuntu 10.10 LTS 34 | PYTHONWARNINGS='ignore::DeprecationWarning' \ 35 | pydoctor --make-html --add-package testtools \ 36 | --docformat=restructuredtext --project-name=testtools \ 37 | --project-url=https://github.com/testing-cabal/testtools 38 | 39 | doc/news.rst: 40 | ln -s ../NEWS doc/news.rst 41 | 42 | docs: doc/news.rst docs-sphinx 43 | rm doc/news.rst 44 | 45 | docs-sphinx: html-sphinx 46 | 47 | # Clean out generated documentation 48 | clean-sphinx: 49 | cd doc && make clean 50 | 51 | # Build the html docs using Sphinx. 52 | html-sphinx: 53 | cd doc && make html 54 | 55 | .PHONY: apidocs docs-sphinx clean-sphinx html-sphinx docs 56 | .PHONY: check clean prerelease release 57 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testtools-0.9.34/doc/_static/placeholder.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/test/3rdparty/testtools-0.9.34/doc/_static/placeholder.txt -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testtools-0.9.34/doc/_templates/placeholder.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wiredtiger/node-wiredtiger/9f83787d53e5c5b9085a180e32f98e745d03ca70/deps/wiredtiger-2.1.2/test/3rdparty/testtools-0.9.34/doc/_templates/placeholder.txt -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testtools-0.9.34/doc/index.rst: -------------------------------------------------------------------------------- 1 | .. testtools documentation master file, created by 2 | sphinx-quickstart on Sun Nov 28 13:45:40 2010. 3 | You can adapt this file completely to your liking, but it should at least 4 | contain the root `toctree` directive. 5 | 6 | testtools: tasteful testing for Python 7 | ====================================== 8 | 9 | testtools is a set of extensions to the Python standard library's unit testing 10 | framework. These extensions have been derived from many years of experience 11 | with unit testing in Python and come from many different sources. testtools 12 | also ports recent unittest changes all the way back to Python 2.4. The next 13 | release of testtools will change that to support versions that are maintained 14 | by the Python community instead, to allow the use of modern language features 15 | within testtools. 16 | 17 | 18 | Contents: 19 | 20 | .. toctree:: 21 | :maxdepth: 1 22 | 23 | overview 24 | for-test-authors 25 | for-framework-folk 26 | hacking 27 | Changes to testtools 28 | API reference documentation 29 | 30 | Indices and tables 31 | ================== 32 | 33 | * :ref:`genindex` 34 | * :ref:`modindex` 35 | * :ref:`search` 36 | 37 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testtools-0.9.34/setup.cfg: -------------------------------------------------------------------------------- 1 | [test] 2 | test_module = testtools.tests 3 | buffer = 1 4 | catch = 1 5 | 6 | [egg_info] 7 | tag_build = 8 | tag_date = 0 9 | tag_svn_revision = 0 10 | 11 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testtools-0.9.34/testtools/_compat2x.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2011 testtools developers. See LICENSE for details. 2 | 3 | """Compatibility helpers that are valid syntax in Python 2.x. 4 | 5 | Only add things here if they *only* work in Python 2.x or are Python 2 6 | alternatives to things that *only* work in Python 3.x. 7 | """ 8 | 9 | __all__ = [ 10 | 'reraise', 11 | ] 12 | 13 | 14 | def reraise(exc_class, exc_obj, exc_tb, _marker=object()): 15 | """Re-raise an exception received from sys.exc_info() or similar.""" 16 | raise exc_class, exc_obj, exc_tb 17 | 18 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testtools-0.9.34/testtools/_compat3x.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2011 testtools developers. See LICENSE for details. 2 | 3 | """Compatibility helpers that are valid syntax in Python 3.x. 4 | 5 | Only add things here if they *only* work in Python 3.x or are Python 3 6 | alternatives to things that *only* work in Python 2.x. 7 | """ 8 | 9 | __all__ = [ 10 | 'reraise', 11 | ] 12 | 13 | 14 | def reraise(exc_class, exc_obj, exc_tb, _marker=object()): 15 | """Re-raise an exception received from sys.exc_info() or similar.""" 16 | raise exc_obj.with_traceback(exc_tb) 17 | 18 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testtools-0.9.34/testtools/content_type.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009-2012 testtools developers. See LICENSE for details. 2 | 3 | """ContentType - a MIME Content Type.""" 4 | 5 | 6 | class ContentType(object): 7 | """A content type from http://www.iana.org/assignments/media-types/ 8 | 9 | :ivar type: The primary type, e.g. "text" or "application" 10 | :ivar subtype: The subtype, e.g. "plain" or "octet-stream" 11 | :ivar parameters: A dict of additional parameters specific to the 12 | content type. 13 | """ 14 | 15 | def __init__(self, primary_type, sub_type, parameters=None): 16 | """Create a ContentType.""" 17 | if None in (primary_type, sub_type): 18 | raise ValueError("None not permitted in %r, %r" % ( 19 | primary_type, sub_type)) 20 | self.type = primary_type 21 | self.subtype = sub_type 22 | self.parameters = parameters or {} 23 | 24 | def __eq__(self, other): 25 | if type(other) != ContentType: 26 | return False 27 | return self.__dict__ == other.__dict__ 28 | 29 | def __repr__(self): 30 | if self.parameters: 31 | params = '; ' 32 | params += '; '.join( 33 | sorted('%s="%s"' % (k, v) for k, v in self.parameters.items())) 34 | else: 35 | params = '' 36 | return "%s/%s%s" % (self.type, self.subtype, params) 37 | 38 | 39 | JSON = ContentType('application', 'json') 40 | 41 | UTF8_TEXT = ContentType('text', 'plain', {'charset': 'utf8'}) 42 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testtools-0.9.34/testtools/helpers.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2010-2012 testtools developers. See LICENSE for details. 2 | 3 | __all__ = [ 4 | 'safe_hasattr', 5 | 'try_import', 6 | 'try_imports', 7 | ] 8 | 9 | import sys 10 | 11 | # Compat - removal announced in 0.9.25. 12 | from extras import ( 13 | safe_hasattr, 14 | try_import, 15 | try_imports, 16 | ) 17 | 18 | 19 | def map_values(function, dictionary): 20 | """Map ``function`` across the values of ``dictionary``. 21 | 22 | :return: A dict with the same keys as ``dictionary``, where the value 23 | of each key ``k`` is ``function(dictionary[k])``. 24 | """ 25 | return dict((k, function(dictionary[k])) for k in dictionary) 26 | 27 | 28 | def filter_values(function, dictionary): 29 | """Filter ``dictionary`` by its values using ``function``.""" 30 | return dict((k, v) for k, v in dictionary.items() if function(v)) 31 | 32 | 33 | def dict_subtract(a, b): 34 | """Return the part of ``a`` that's not in ``b``.""" 35 | return dict((k, a[k]) for k in set(a) - set(b)) 36 | 37 | 38 | def list_subtract(a, b): 39 | """Return a list ``a`` without the elements of ``b``. 40 | 41 | If a particular value is in ``a`` twice and ``b`` once then the returned 42 | list then that value will appear once in the returned list. 43 | """ 44 | a_only = list(a) 45 | for x in b: 46 | if x in a_only: 47 | a_only.remove(x) 48 | return a_only 49 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testtools-0.9.34/testtools/tags.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2012 testtools developers. See LICENSE for details. 2 | 3 | """Tag support.""" 4 | 5 | 6 | class TagContext(object): 7 | """A tag context.""" 8 | 9 | def __init__(self, parent=None): 10 | """Create a new TagContext. 11 | 12 | :param parent: If provided, uses this as the parent context. Any tags 13 | that are current on the parent at the time of construction are 14 | current in this context. 15 | """ 16 | self.parent = parent 17 | self._tags = set() 18 | if parent: 19 | self._tags.update(parent.get_current_tags()) 20 | 21 | def get_current_tags(self): 22 | """Return any current tags.""" 23 | return set(self._tags) 24 | 25 | def change_tags(self, new_tags, gone_tags): 26 | """Change the tags on this context. 27 | 28 | :param new_tags: A set of tags to add to this context. 29 | :param gone_tags: A set of tags to remove from this context. 30 | :return: The tags now current on this context. 31 | """ 32 | self._tags.update(new_tags) 33 | self._tags.difference_update(gone_tags) 34 | return self.get_current_tags() 35 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testtools-0.9.34/testtools/testresult/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009-2012 testtools developers. See LICENSE for details. 2 | 3 | """Test result objects.""" 4 | 5 | __all__ = [ 6 | 'CopyStreamResult', 7 | 'ExtendedToOriginalDecorator', 8 | 'ExtendedToStreamDecorator', 9 | 'MultiTestResult', 10 | 'StreamFailFast', 11 | 'StreamResult', 12 | 'StreamResultRouter', 13 | 'StreamSummary', 14 | 'StreamTagger', 15 | 'StreamToDict', 16 | 'StreamToExtendedDecorator', 17 | 'StreamToQueue', 18 | 'Tagger', 19 | 'TestByTestResult', 20 | 'TestControl', 21 | 'TestResult', 22 | 'TestResultDecorator', 23 | 'TextTestResult', 24 | 'ThreadsafeForwardingResult', 25 | 'TimestampingStreamResult', 26 | ] 27 | 28 | from testtools.testresult.real import ( 29 | CopyStreamResult, 30 | ExtendedToOriginalDecorator, 31 | ExtendedToStreamDecorator, 32 | MultiTestResult, 33 | StreamFailFast, 34 | StreamResult, 35 | StreamResultRouter, 36 | StreamSummary, 37 | StreamTagger, 38 | StreamToDict, 39 | StreamToExtendedDecorator, 40 | StreamToQueue, 41 | Tagger, 42 | TestByTestResult, 43 | TestControl, 44 | TestResult, 45 | TestResultDecorator, 46 | TextTestResult, 47 | ThreadsafeForwardingResult, 48 | TimestampingStreamResult, 49 | ) 50 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testtools-0.9.34/testtools/tests/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2008-2013 testtools developers. See LICENSE for details. 2 | 3 | """Tests for testtools itself.""" 4 | 5 | 6 | from unittest import TestSuite 7 | 8 | 9 | def test_suite(): 10 | from testtools.tests import ( 11 | matchers, 12 | test_compat, 13 | test_content, 14 | test_content_type, 15 | test_deferredruntest, 16 | test_distutilscmd, 17 | test_fixturesupport, 18 | test_helpers, 19 | test_monkey, 20 | test_run, 21 | test_runtest, 22 | test_spinner, 23 | test_tags, 24 | test_testcase, 25 | test_testresult, 26 | test_testsuite, 27 | ) 28 | modules = [ 29 | matchers, 30 | test_compat, 31 | test_content, 32 | test_content_type, 33 | test_deferredruntest, 34 | test_distutilscmd, 35 | test_fixturesupport, 36 | test_helpers, 37 | test_monkey, 38 | test_run, 39 | test_runtest, 40 | test_spinner, 41 | test_tags, 42 | test_testcase, 43 | test_testresult, 44 | test_testsuite, 45 | ] 46 | suites = map(lambda x: x.test_suite(), modules) 47 | return TestSuite(suites) 48 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testtools-0.9.34/testtools/tests/matchers/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009-2012 testtools developers. See LICENSE for details. 2 | 3 | 4 | from unittest import TestSuite 5 | 6 | 7 | def test_suite(): 8 | from testtools.tests.matchers import ( 9 | test_basic, 10 | test_datastructures, 11 | test_dict, 12 | test_doctest, 13 | test_exception, 14 | test_filesystem, 15 | test_higherorder, 16 | test_impl, 17 | ) 18 | modules = [ 19 | test_basic, 20 | test_datastructures, 21 | test_dict, 22 | test_doctest, 23 | test_exception, 24 | test_filesystem, 25 | test_higherorder, 26 | test_impl, 27 | ] 28 | suites = map(lambda x: x.test_suite(), modules) 29 | return TestSuite(suites) 30 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testtools-0.9.34/testtools/tests/test_helpers.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2010-2012 testtools developers. See LICENSE for details. 2 | 3 | from testtools import TestCase 4 | from testtools.tests.helpers import ( 5 | FullStackRunTest, 6 | hide_testtools_stack, 7 | is_stack_hidden, 8 | ) 9 | 10 | 11 | class TestStackHiding(TestCase): 12 | 13 | run_tests_with = FullStackRunTest 14 | 15 | def setUp(self): 16 | super(TestStackHiding, self).setUp() 17 | self.addCleanup(hide_testtools_stack, is_stack_hidden()) 18 | 19 | def test_is_stack_hidden_consistent_true(self): 20 | hide_testtools_stack(True) 21 | self.assertEqual(True, is_stack_hidden()) 22 | 23 | def test_is_stack_hidden_consistent_false(self): 24 | hide_testtools_stack(False) 25 | self.assertEqual(False, is_stack_hidden()) 26 | 27 | 28 | def test_suite(): 29 | from unittest import TestLoader 30 | return TestLoader().loadTestsFromName(__name__) 31 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/3rdparty/testtools-0.9.34/testtools/utils.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2008-2010 testtools developers. See LICENSE for details. 2 | 3 | """Utilities for dealing with stuff in unittest. 4 | 5 | Legacy - deprecated - use testtools.testsuite.iterate_tests 6 | """ 7 | 8 | import warnings 9 | warnings.warn("Please import iterate_tests from testtools.testsuite - " 10 | "testtools.utils is deprecated.", DeprecationWarning, stacklevel=2) 11 | 12 | from testtools.testsuite import iterate_tests 13 | 14 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/bloom/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)/src/include 2 | 3 | noinst_PROGRAMS = t 4 | t_SOURCES = test_bloom.c 5 | t_LDADD = $(top_builddir)/libwiredtiger.la 6 | t_LDFLAGS = -static 7 | 8 | # Run this during a "make check" smoke test. 9 | TESTS = $(noinst_PROGRAMS) 10 | 11 | clean-local: 12 | rm -rf WiredTiger* *.core __* 13 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/fops/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)/src/include 2 | 3 | noinst_PROGRAMS = t 4 | t_LDADD = $(top_builddir)/libwiredtiger.la 5 | t_SOURCES = thread.h file.c fops.c t.c 6 | t_LDFLAGS = -static 7 | 8 | TESTS = $(noinst_PROGRAMS) 9 | 10 | clean-local: 11 | rm -rf WiredTiger* __* *.core 12 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/huge/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)/src/include 2 | 3 | noinst_PROGRAMS = t 4 | t_SOURCES = huge.c 5 | t_LDADD = $(top_builddir)/libwiredtiger.la 6 | t_LDFLAGS = -static 7 | 8 | # Run this during a "make check" smoke test. 9 | TESTS = smoke.sh 10 | 11 | clean-local: 12 | rm -rf WiredTiger* *.core __* 13 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/huge/smoke.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Smoke-test as part of running "make check". 4 | ./t -s 5 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/test/suite/valgrind-python.supp: -------------------------------------------------------------------------------- 1 | { 2 | Ignore python stuff: Cond 3 | Memcheck:Cond 4 | obj:*python* 5 | } 6 | { 7 | Ignore python stuff: Addr4 8 | Memcheck:Addr4 9 | obj:*python* 10 | } 11 | { 12 | Ignore python stuff: Addr8 13 | Memcheck:Addr8 14 | obj:*python* 15 | } 16 | { 17 | Ignore python stuff: Value4 18 | Memcheck:Value4 19 | obj:*python* 20 | } 21 | { 22 | Ignore python stuff: Value8 23 | Memcheck:Value8 24 | obj:*python* 25 | } 26 | { 27 | Ignore python stuff: Leak 28 | Memcheck:Leak 29 | fun:*alloc 30 | obj:*python* 31 | } 32 | 33 | { 34 | FreeBSD: shared libraries. 35 | Memcheck:Addr8 36 | ... 37 | fun:dlopen 38 | } 39 | { 40 | FreeBSD: shared libraries. 41 | Memcheck:Addr8 42 | ... 43 | fun:__wt_dlsym 44 | } 45 | 46 | { 47 | Berkeley DB: uninitialized writes. 48 | Memcheck:Param 49 | write(buf) 50 | ... 51 | fun:__memp_pgwrite 52 | } 53 | -------------------------------------------------------------------------------- /deps/wiredtiger-2.1.2/tools/stat_data.py: -------------------------------------------------------------------------------- 1 | # DO NOT EDIT: automatically built by dist/stat.py. */ 2 | 3 | no_scale_per_second_list = [ 4 | 'cache: tracked dirty bytes in the cache', 5 | 'cache: bytes currently in the cache', 6 | 'cache: maximum bytes configured', 7 | 'cache: tracked dirty pages in the cache', 8 | 'cache: pages currently held in the cache', 9 | 'files currently open', 10 | 'log: total log buffer size', 11 | 'open cursor count', 12 | 'transaction checkpoint currently running', 13 | 'block manager: file allocation unit size', 14 | 'block manager: checkpoint size', 15 | 'block manager: file magic number', 16 | 'block manager: file major version number', 17 | 'block manager: minor version number', 18 | 'block manager: file size in bytes', 19 | 'bloom filters in the LSM tree', 20 | 'total size of bloom filters', 21 | 'column-store variable-size deleted values', 22 | 'column-store fixed-size leaf pages', 23 | 'column-store internal pages', 24 | 'column-store variable-size leaf pages', 25 | 'total LSM, table or file object key/value pairs', 26 | 'fixed-record size', 27 | 'maximum tree depth', 28 | 'maximum internal page item size', 29 | 'maximum internal page size', 30 | 'maximum leaf page item size', 31 | 'maximum leaf page size', 32 | 'overflow pages', 33 | 'row-store internal pages', 34 | 'row-store leaf pages', 35 | 'overflow values cached in memory', 36 | 'chunks in the LSM tree', 37 | 'highest merge generation in the LSM tree', 38 | 'reconciliation maximum splits for a page', 39 | 'open cursor count', 40 | ] 41 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (c) 2014- WiredTiger, Inc. 3 | // All rights reserved. 4 | // 5 | // See the file LICENSE for redistribution information. 6 | // 7 | 8 | //module.exports = require('bindings')('wiredtiger.node') 9 | 10 | var EventEmitter = require('events').EventEmitter, 11 | addon = require('bindings')('wiredtiger.node'); 12 | 13 | addon.WTTable.prototype.__proto__ = EventEmitter.prototype; 14 | 15 | module.exports = addon; 16 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "wiredtiger", 3 | "description": "A Node.js WiredTiger binding", 4 | "version": "0.1.0", 5 | "contributors": [ 6 | "Alexander Gorrod (https://github.com/agorrod)" 7 | ], 8 | "repository": { 9 | "type": "git", 10 | "url": "https://github.com/wiredtiger/node-wiredtiger.git" 11 | }, 12 | "homepage": "http://wiredtiger.com", 13 | "keywords": [ 14 | "wiredtiger", 15 | "database", 16 | "key/value" 17 | ], 18 | "main": "index.js", 19 | "dependencies": { 20 | "nan": "~0.6.0", 21 | "underscore": "~1.1.1" 22 | }, 23 | "devDependencies": { 24 | "bindings" : "~1.1.1", 25 | "tap": "~0.4.1", 26 | "node-gyp": "~0.12.1" 27 | }, 28 | "scripts" : 29 | { "preinstall" : "make config && make all" 30 | , "test": "tap test/*-test.js --stderr" 31 | }, 32 | "license": "GPLv3", 33 | "gypfile": true 34 | } 35 | -------------------------------------------------------------------------------- /src/wiredtiger.cc: -------------------------------------------------------------------------------- 1 | /*- 2 | * Copyright (c) 2014- WiredTiger, Inc. 3 | * All rights reserved. 4 | * 5 | * See the file LICENSE for redistribution information. 6 | */ 7 | 8 | #include 9 | #include 10 | 11 | #include "wiredtiger.h" 12 | #include "NodeWiredTiger.hpp" 13 | 14 | using namespace v8; 15 | 16 | extern "C" { 17 | void InitAll(Handle target) { 18 | HandleScope scope; 19 | wiredtiger::WTConnection::Init(target); 20 | wiredtiger::WTTable::Init(target); 21 | wiredtiger::WTCursor::Init(target); 22 | } 23 | 24 | NODE_MODULE(wiredtiger, InitAll) 25 | 26 | } 27 | --------------------------------------------------------------------------------