mirror of
https://github.com/MariaDB/server.git
synced 2025-08-26 01:44:06 +03:00
storage/bdb/LICENSE: Import db-4.3.28 storage/bdb/btree/bt_compare.c: Import db-4.3.28 storage/bdb/btree/bt_conv.c: Import db-4.3.28 storage/bdb/btree/bt_curadj.c: Import db-4.3.28 storage/bdb/btree/bt_cursor.c: Import db-4.3.28 storage/bdb/btree/bt_delete.c: Import db-4.3.28 storage/bdb/btree/bt_method.c: Import db-4.3.28 storage/bdb/btree/bt_open.c: Import db-4.3.28 storage/bdb/btree/bt_put.c: Import db-4.3.28 storage/bdb/btree/bt_rec.c: Import db-4.3.28 storage/bdb/btree/bt_reclaim.c: Import db-4.3.28 storage/bdb/btree/bt_recno.c: Import db-4.3.28 storage/bdb/btree/bt_rsearch.c: Import db-4.3.28 storage/bdb/btree/bt_search.c: Import db-4.3.28 storage/bdb/btree/bt_split.c: Import db-4.3.28 storage/bdb/btree/bt_stat.c: Import db-4.3.28 storage/bdb/btree/bt_upgrade.c: Import db-4.3.28 storage/bdb/btree/bt_verify.c: Import db-4.3.28 storage/bdb/btree/btree.src: Import db-4.3.28 storage/bdb/build_win32/Berkeley_DB.dsw: Import db-4.3.28 storage/bdb/build_win32/app_dsp.src: Import db-4.3.28 storage/bdb/build_win32/db_test.src: Import db-4.3.28 storage/bdb/build_win32/dbkill.cpp: Import db-4.3.28 storage/bdb/build_win32/dynamic_dsp.src: Import db-4.3.28 storage/bdb/build_win32/java_dsp.src: Import db-4.3.28 storage/bdb/build_win32/libdb_tcl.def: Import db-4.3.28 storage/bdb/build_win32/libdbrc.src: Import db-4.3.28 storage/bdb/build_win32/static_dsp.src: Import db-4.3.28 storage/bdb/build_win32/tcl_dsp.src: Import db-4.3.28 storage/bdb/clib/getcwd.c: Import db-4.3.28 storage/bdb/clib/getopt.c: Import db-4.3.28 storage/bdb/clib/memcmp.c: Import db-4.3.28 storage/bdb/clib/memmove.c: Import db-4.3.28 storage/bdb/clib/raise.c: Import db-4.3.28 storage/bdb/clib/snprintf.c: Import db-4.3.28 storage/bdb/clib/strcasecmp.c: Import db-4.3.28 storage/bdb/clib/strdup.c: Import db-4.3.28 storage/bdb/clib/strerror.c: Import db-4.3.28 storage/bdb/common/db_byteorder.c: Import db-4.3.28 storage/bdb/common/db_err.c: Import db-4.3.28 storage/bdb/common/db_getlong.c: Import db-4.3.28 storage/bdb/common/db_idspace.c: Import db-4.3.28 storage/bdb/common/db_log2.c: Import db-4.3.28 storage/bdb/common/util_arg.c: Import db-4.3.28 storage/bdb/common/util_cache.c: Import db-4.3.28 storage/bdb/common/util_log.c: Import db-4.3.28 storage/bdb/common/util_sig.c: Import db-4.3.28 storage/bdb/cxx/cxx_db.cpp: Import db-4.3.28 storage/bdb/cxx/cxx_dbc.cpp: Import db-4.3.28 storage/bdb/cxx/cxx_dbt.cpp: Import db-4.3.28 storage/bdb/cxx/cxx_env.cpp: Import db-4.3.28 storage/bdb/cxx/cxx_except.cpp: Import db-4.3.28 storage/bdb/cxx/cxx_lock.cpp: Import db-4.3.28 storage/bdb/cxx/cxx_logc.cpp: Import db-4.3.28 storage/bdb/cxx/cxx_mpool.cpp: Import db-4.3.28 storage/bdb/cxx/cxx_txn.cpp: Import db-4.3.28 storage/bdb/db/crdel.src: Import db-4.3.28 storage/bdb/db/crdel_rec.c: Import db-4.3.28 storage/bdb/db/db.c: Import db-4.3.28 storage/bdb/db/db.src: Import db-4.3.28 storage/bdb/db/db_am.c: Import db-4.3.28 storage/bdb/db/db_cam.c: Import db-4.3.28 storage/bdb/db/db_conv.c: Import db-4.3.28 storage/bdb/db/db_dispatch.c: Import db-4.3.28 storage/bdb/db/db_dup.c: Import db-4.3.28 storage/bdb/db/db_iface.c: Import db-4.3.28 storage/bdb/db/db_join.c: Import db-4.3.28 storage/bdb/db/db_meta.c: Import db-4.3.28 storage/bdb/db/db_method.c: Import db-4.3.28 storage/bdb/db/db_open.c: Import db-4.3.28 storage/bdb/db/db_overflow.c: Import db-4.3.28 storage/bdb/db/db_pr.c: Import db-4.3.28 storage/bdb/db/db_rec.c: Import db-4.3.28 storage/bdb/db/db_reclaim.c: Import db-4.3.28 storage/bdb/db/db_remove.c: Import db-4.3.28 storage/bdb/db/db_rename.c: Import db-4.3.28 storage/bdb/db/db_ret.c: Import db-4.3.28 storage/bdb/db/db_truncate.c: Import db-4.3.28 storage/bdb/db/db_upg.c: Import db-4.3.28 storage/bdb/db/db_upg_opd.c: Import db-4.3.28 storage/bdb/db/db_vrfy.c: Import db-4.3.28 storage/bdb/db/db_vrfyutil.c: Import db-4.3.28 storage/bdb/db185/db185.c: Import db-4.3.28 storage/bdb/db185/db185_int.in: Import db-4.3.28 storage/bdb/db_archive/db_archive.c: Import db-4.3.28 storage/bdb/db_checkpoint/db_checkpoint.c: Import db-4.3.28 storage/bdb/db_deadlock/db_deadlock.c: Import db-4.3.28 storage/bdb/db_dump/db_dump.c: Import db-4.3.28 storage/bdb/db_dump185/db_dump185.c: Import db-4.3.28 storage/bdb/db_load/db_load.c: Import db-4.3.28 storage/bdb/db_printlog/README: Import db-4.3.28 storage/bdb/db_printlog/db_printlog.c: Import db-4.3.28 storage/bdb/db_printlog/dbname.awk: Import db-4.3.28 storage/bdb/db_printlog/rectype.awk: Import db-4.3.28 storage/bdb/db_printlog/status.awk: Import db-4.3.28 storage/bdb/db_recover/db_recover.c: Import db-4.3.28 storage/bdb/db_stat/db_stat.c: Import db-4.3.28 storage/bdb/db_upgrade/db_upgrade.c: Import db-4.3.28 storage/bdb/db_verify/db_verify.c: Import db-4.3.28 storage/bdb/dbinc/btree.h: Import db-4.3.28 storage/bdb/dbinc/crypto.h: Import db-4.3.28 storage/bdb/dbinc/cxx_int.h: Import db-4.3.28 storage/bdb/dbinc/db.in: Import db-4.3.28 storage/bdb/dbinc/db_185.in: Import db-4.3.28 storage/bdb/dbinc/db_am.h: Import db-4.3.28 storage/bdb/dbinc/db_cxx.in: Import db-4.3.28 storage/bdb/dbinc/db_dispatch.h: Import db-4.3.28 storage/bdb/dbinc/db_int.in: Import db-4.3.28 storage/bdb/dbinc/db_join.h: Import db-4.3.28 storage/bdb/dbinc/db_page.h: Import db-4.3.28 storage/bdb/dbinc/db_server_int.h: Import db-4.3.28 storage/bdb/dbinc/db_shash.h: Import db-4.3.28 storage/bdb/dbinc/db_swap.h: Import db-4.3.28 storage/bdb/dbinc/db_upgrade.h: Import db-4.3.28 storage/bdb/dbinc/db_verify.h: Import db-4.3.28 storage/bdb/dbinc/debug.h: Import db-4.3.28 storage/bdb/dbinc/fop.h: Import db-4.3.28 storage/bdb/dbinc/globals.h: Import db-4.3.28 storage/bdb/dbinc/hash.h: Import db-4.3.28 storage/bdb/dbinc/hmac.h: Import db-4.3.28 storage/bdb/dbinc/lock.h: Import db-4.3.28 storage/bdb/dbinc/log.h: Import db-4.3.28 storage/bdb/dbinc/mp.h: Import db-4.3.28 storage/bdb/dbinc/mutex.h: Import db-4.3.28 storage/bdb/dbinc/os.h: Import db-4.3.28 storage/bdb/dbinc/qam.h: Import db-4.3.28 storage/bdb/dbinc/queue.h: Import db-4.3.28 storage/bdb/dbinc/region.h: Import db-4.3.28 storage/bdb/dbinc/rep.h: Import db-4.3.28 storage/bdb/dbinc/shqueue.h: Import db-4.3.28 storage/bdb/dbinc/tcl_db.h: Import db-4.3.28 storage/bdb/dbinc/txn.h: Import db-4.3.28 storage/bdb/dbinc/xa.h: Import db-4.3.28 storage/bdb/dbm/dbm.c: Import db-4.3.28 storage/bdb/dbreg/dbreg.c: Import db-4.3.28 storage/bdb/dbreg/dbreg.src: Import db-4.3.28 storage/bdb/dbreg/dbreg_rec.c: Import db-4.3.28 storage/bdb/dbreg/dbreg_util.c: Import db-4.3.28 storage/bdb/dist/Makefile.in: Import db-4.3.28 storage/bdb/dist/RELEASE: Import db-4.3.28 storage/bdb/dist/aclocal/config.ac: Import db-4.3.28 storage/bdb/dist/aclocal/libtool.ac: Import db-4.3.28 storage/bdb/dist/aclocal/mutex.ac: Import db-4.3.28 storage/bdb/dist/aclocal/options.ac: Import db-4.3.28 storage/bdb/dist/aclocal/programs.ac: Import db-4.3.28 storage/bdb/dist/aclocal/sosuffix.ac: Import db-4.3.28 storage/bdb/dist/aclocal/tcl.ac: Import db-4.3.28 storage/bdb/dist/aclocal/types.ac: Import db-4.3.28 storage/bdb/dist/aclocal_java/ac_jni_include_dirs.ac: Import db-4.3.28 storage/bdb/dist/aclocal_java/ac_prog_java.ac: Import db-4.3.28 storage/bdb/dist/buildrel: Import db-4.3.28 storage/bdb/dist/configure.ac: Import db-4.3.28 storage/bdb/dist/gen_inc.awk: Import db-4.3.28 storage/bdb/dist/gen_rec.awk: Import db-4.3.28 storage/bdb/dist/gen_rpc.awk: Import db-4.3.28 storage/bdb/dist/ltmain.sh: Import db-4.3.28 storage/bdb/dist/pubdef.in: Import db-4.3.28 storage/bdb/dist/srcfiles.in: Import db-4.3.28 storage/bdb/dist/vx_2.0/BerkeleyDB.wpj: Import db-4.3.28 storage/bdb/dist/vx_2.0/wpj.in: Import db-4.3.28 storage/bdb/dist/vx_config.in: Import db-4.3.28 storage/bdb/dist/vx_setup/CONFIG.in: Import db-4.3.28 storage/bdb/dist/vx_setup/LICENSE.TXT: Import db-4.3.28 storage/bdb/dist/vx_setup/vx_allfile.in: Import db-4.3.28 storage/bdb/dist/vx_setup/vx_demofile.in: Import db-4.3.28 storage/bdb/dist/win_config.in: Import db-4.3.28 storage/bdb/dist/win_exports.in: Import db-4.3.28 storage/bdb/env/db_salloc.c: Import db-4.3.28 storage/bdb/env/db_shash.c: Import db-4.3.28 storage/bdb/env/env_file.c: Import db-4.3.28 storage/bdb/env/env_method.c: Import db-4.3.28 storage/bdb/env/env_open.c: Import db-4.3.28 storage/bdb/env/env_recover.c: Import db-4.3.28 storage/bdb/env/env_region.c: Import db-4.3.28 storage/bdb/fileops/fileops.src: Import db-4.3.28 storage/bdb/fileops/fop_basic.c: Import db-4.3.28 storage/bdb/fileops/fop_rec.c: Import db-4.3.28 storage/bdb/fileops/fop_util.c: Import db-4.3.28 storage/bdb/hash/hash.c: Import db-4.3.28 storage/bdb/hash/hash.src: Import db-4.3.28 storage/bdb/hash/hash_conv.c: Import db-4.3.28 storage/bdb/hash/hash_dup.c: Import db-4.3.28 storage/bdb/hash/hash_func.c: Import db-4.3.28 storage/bdb/hash/hash_meta.c: Import db-4.3.28 storage/bdb/hash/hash_method.c: Import db-4.3.28 storage/bdb/hash/hash_open.c: Import db-4.3.28 storage/bdb/hash/hash_page.c: Import db-4.3.28 storage/bdb/hash/hash_rec.c: Import db-4.3.28 storage/bdb/hash/hash_reclaim.c: Import db-4.3.28 storage/bdb/hash/hash_stat.c: Import db-4.3.28 storage/bdb/hash/hash_upgrade.c: Import db-4.3.28 storage/bdb/hash/hash_verify.c: Import db-4.3.28 storage/bdb/hmac/hmac.c: Import db-4.3.28 storage/bdb/hmac/sha1.c: Import db-4.3.28 storage/bdb/hsearch/hsearch.c: Import db-4.3.28 storage/bdb/lock/lock.c: Import db-4.3.28 storage/bdb/lock/lock_deadlock.c: Import db-4.3.28 storage/bdb/lock/lock_method.c: Import db-4.3.28 storage/bdb/lock/lock_region.c: Import db-4.3.28 storage/bdb/lock/lock_stat.c: Import db-4.3.28 storage/bdb/lock/lock_util.c: Import db-4.3.28 storage/bdb/log/log.c: Import db-4.3.28 storage/bdb/log/log_archive.c: Import db-4.3.28 storage/bdb/log/log_compare.c: Import db-4.3.28 storage/bdb/log/log_get.c: Import db-4.3.28 storage/bdb/log/log_method.c: Import db-4.3.28 storage/bdb/log/log_put.c: Import db-4.3.28 storage/bdb/mp/mp_alloc.c: Import db-4.3.28 storage/bdb/mp/mp_bh.c: Import db-4.3.28 storage/bdb/mp/mp_fget.c: Import db-4.3.28 storage/bdb/mp/mp_fopen.c: Import db-4.3.28 storage/bdb/mp/mp_fput.c: Import db-4.3.28 storage/bdb/mp/mp_fset.c: Import db-4.3.28 storage/bdb/mp/mp_method.c: Import db-4.3.28 storage/bdb/mp/mp_region.c: Import db-4.3.28 storage/bdb/mp/mp_register.c: Import db-4.3.28 storage/bdb/mp/mp_stat.c: Import db-4.3.28 storage/bdb/mp/mp_sync.c: Import db-4.3.28 storage/bdb/mp/mp_trickle.c: Import db-4.3.28 storage/bdb/mutex/mut_fcntl.c: Import db-4.3.28 storage/bdb/mutex/mut_pthread.c: Import db-4.3.28 storage/bdb/mutex/mut_tas.c: Import db-4.3.28 storage/bdb/mutex/mut_win32.c: Import db-4.3.28 storage/bdb/mutex/mutex.c: Import db-4.3.28 storage/bdb/mutex/tm.c: Import db-4.3.28 storage/bdb/mutex/uts4_cc.s: Import db-4.3.28 storage/bdb/os/os_abs.c: Import db-4.3.28 storage/bdb/os/os_alloc.c: Import db-4.3.28 storage/bdb/os/os_clock.c: Import db-4.3.28 storage/bdb/os/os_config.c: Import db-4.3.28 storage/bdb/os/os_dir.c: Import db-4.3.28 storage/bdb/os/os_errno.c: Import db-4.3.28 storage/bdb/os/os_fid.c: Import db-4.3.28 storage/bdb/os/os_fsync.c: Import db-4.3.28 storage/bdb/os/os_handle.c: Import db-4.3.28 storage/bdb/os/os_id.c: Import db-4.3.28 storage/bdb/os/os_map.c: Import db-4.3.28 storage/bdb/os/os_method.c: Import db-4.3.28 storage/bdb/os/os_oflags.c: Import db-4.3.28 storage/bdb/os/os_open.c: Import db-4.3.28 storage/bdb/os/os_region.c: Import db-4.3.28 storage/bdb/os/os_rename.c: Import db-4.3.28 storage/bdb/os/os_root.c: Import db-4.3.28 storage/bdb/os/os_rpath.c: Import db-4.3.28 storage/bdb/os/os_rw.c: Import db-4.3.28 storage/bdb/os/os_seek.c: Import db-4.3.28 storage/bdb/os/os_sleep.c: Import db-4.3.28 storage/bdb/os/os_spin.c: Import db-4.3.28 storage/bdb/os/os_stat.c: Import db-4.3.28 storage/bdb/os/os_tmpdir.c: Import db-4.3.28 storage/bdb/os/os_unlink.c: Import db-4.3.28 storage/bdb/os_vxworks/os_vx_abs.c: Import db-4.3.28 storage/bdb/os_vxworks/os_vx_config.c: Import db-4.3.28 storage/bdb/os_vxworks/os_vx_map.c: Import db-4.3.28 storage/bdb/os_win32/os_abs.c: Import db-4.3.28 storage/bdb/os_win32/os_clock.c: Import db-4.3.28 storage/bdb/os_win32/os_config.c: Import db-4.3.28 storage/bdb/os_win32/os_dir.c: Import db-4.3.28 storage/bdb/os_win32/os_errno.c: Import db-4.3.28 storage/bdb/os_win32/os_fid.c: Import db-4.3.28 storage/bdb/os_win32/os_fsync.c: Import db-4.3.28 storage/bdb/os_win32/os_handle.c: Import db-4.3.28 storage/bdb/os_win32/os_map.c: Import db-4.3.28 storage/bdb/os_win32/os_open.c: Import db-4.3.28 storage/bdb/os_win32/os_rename.c: Import db-4.3.28 storage/bdb/os_win32/os_rw.c: Import db-4.3.28 storage/bdb/os_win32/os_seek.c: Import db-4.3.28 storage/bdb/os_win32/os_sleep.c: Import db-4.3.28 storage/bdb/os_win32/os_spin.c: Import db-4.3.28 storage/bdb/os_win32/os_stat.c: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/BerkeleyDB.pm: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/BerkeleyDB.pod.P: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/BerkeleyDB.pod: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/BerkeleyDB.xs: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/Changes: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/MANIFEST: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/Makefile.PL: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/README: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/config.in: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/constants.h: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/mkconsts: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/patches/5.004: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/ppport.h: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/scan: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/btree.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/destroy.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/env.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/filter.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/hash.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/join.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/mldbm.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/queue.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/recno.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/strict.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/subdb.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/txn.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/util.pm: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/typemap: Import db-4.3.28 storage/bdb/perl/DB_File/Changes: Import db-4.3.28 storage/bdb/perl/DB_File/DB_File.pm: Import db-4.3.28 storage/bdb/perl/DB_File/DB_File.xs: Import db-4.3.28 storage/bdb/perl/DB_File/MANIFEST: Import db-4.3.28 storage/bdb/perl/DB_File/Makefile.PL: Import db-4.3.28 storage/bdb/perl/DB_File/README: Import db-4.3.28 storage/bdb/perl/DB_File/dbinfo: Import db-4.3.28 storage/bdb/perl/DB_File/patches/5.004: Import db-4.3.28 storage/bdb/perl/DB_File/ppport.h: Import db-4.3.28 storage/bdb/perl/DB_File/t/db-btree.t: Import db-4.3.28 storage/bdb/perl/DB_File/t/db-hash.t: Import db-4.3.28 storage/bdb/perl/DB_File/t/db-recno.t: Import db-4.3.28 storage/bdb/perl/DB_File/typemap: Import db-4.3.28 storage/bdb/qam/qam.c: Import db-4.3.28 storage/bdb/qam/qam.src: Import db-4.3.28 storage/bdb/qam/qam_conv.c: Import db-4.3.28 storage/bdb/qam/qam_files.c: Import db-4.3.28 storage/bdb/qam/qam_method.c: Import db-4.3.28 storage/bdb/qam/qam_open.c: Import db-4.3.28 storage/bdb/qam/qam_rec.c: Import db-4.3.28 storage/bdb/qam/qam_stat.c: Import db-4.3.28 storage/bdb/qam/qam_upgrade.c: Import db-4.3.28 storage/bdb/qam/qam_verify.c: Import db-4.3.28 storage/bdb/rep/rep_method.c: Import db-4.3.28 storage/bdb/rep/rep_record.c: Import db-4.3.28 storage/bdb/rep/rep_region.c: Import db-4.3.28 storage/bdb/rep/rep_util.c: Import db-4.3.28 storage/bdb/rpc_client/client.c: Import db-4.3.28 storage/bdb/rpc_client/gen_client_ret.c: Import db-4.3.28 storage/bdb/rpc_server/c/db_server_util.c: Import db-4.3.28 storage/bdb/rpc_server/cxx/db_server_cxxproc.cpp: Import db-4.3.28 storage/bdb/rpc_server/cxx/db_server_cxxutil.cpp: Import db-4.3.28 storage/bdb/rpc_server/java/FreeList.java: Import db-4.3.28 storage/bdb/rpc_server/java/LocalIterator.java: Import db-4.3.28 storage/bdb/rpc_server/java/README: Import db-4.3.28 storage/bdb/rpc_server/java/RpcDb.java: Import db-4.3.28 storage/bdb/rpc_server/java/RpcDbEnv.java: Import db-4.3.28 storage/bdb/rpc_server/java/RpcDbTxn.java: Import db-4.3.28 storage/bdb/rpc_server/java/RpcDbc.java: Import db-4.3.28 storage/bdb/rpc_server/java/Timer.java: Import db-4.3.28 storage/bdb/rpc_server/java/gen/__db_open_reply.java: Import db-4.3.28 storage/bdb/rpc_server/java/gen/__db_stat_msg.java: Import db-4.3.28 storage/bdb/rpc_server/java/gen/db_server.java: Import db-4.3.28 storage/bdb/rpc_server/java/s_jrpcgen: Import db-4.3.28 storage/bdb/rpc_server/rpc.src: Import db-4.3.28 storage/bdb/tcl/docs/db.html: Import db-4.3.28 storage/bdb/tcl/docs/env.html: Import db-4.3.28 storage/bdb/tcl/docs/historic.html: Import db-4.3.28 storage/bdb/tcl/docs/index.html: Import db-4.3.28 storage/bdb/tcl/docs/library.html: Import db-4.3.28 storage/bdb/tcl/docs/lock.html: Import db-4.3.28 storage/bdb/tcl/docs/log.html: Import db-4.3.28 storage/bdb/tcl/docs/mpool.html: Import db-4.3.28 storage/bdb/tcl/docs/rep.html: Import db-4.3.28 storage/bdb/tcl/docs/test.html: Import db-4.3.28 storage/bdb/tcl/docs/txn.html: Import db-4.3.28 storage/bdb/tcl/tcl_compat.c: Import db-4.3.28 storage/bdb/tcl/tcl_db.c: Import db-4.3.28 storage/bdb/tcl/tcl_db_pkg.c: Import db-4.3.28 storage/bdb/tcl/tcl_dbcursor.c: Import db-4.3.28 storage/bdb/tcl/tcl_env.c: Import db-4.3.28 storage/bdb/tcl/tcl_internal.c: Import db-4.3.28 storage/bdb/tcl/tcl_lock.c: Import db-4.3.28 storage/bdb/tcl/tcl_log.c: Import db-4.3.28 storage/bdb/tcl/tcl_mp.c: Import db-4.3.28 storage/bdb/tcl/tcl_rep.c: Import db-4.3.28 storage/bdb/tcl/tcl_txn.c: Import db-4.3.28 storage/bdb/tcl/tcl_util.c: Import db-4.3.28 storage/bdb/test/archive.tcl: Import db-4.3.28 storage/bdb/test/bigfile001.tcl: Import db-4.3.28 storage/bdb/test/bigfile002.tcl: Import db-4.3.28 storage/bdb/test/byteorder.tcl: Import db-4.3.28 storage/bdb/test/conscript.tcl: Import db-4.3.28 storage/bdb/test/dbm.tcl: Import db-4.3.28 storage/bdb/test/dbscript.tcl: Import db-4.3.28 storage/bdb/test/ddoyscript.tcl: Import db-4.3.28 storage/bdb/test/ddscript.tcl: Import db-4.3.28 storage/bdb/test/dead001.tcl: Import db-4.3.28 storage/bdb/test/dead002.tcl: Import db-4.3.28 storage/bdb/test/dead003.tcl: Import db-4.3.28 storage/bdb/test/dead004.tcl: Import db-4.3.28 storage/bdb/test/dead005.tcl: Import db-4.3.28 storage/bdb/test/dead006.tcl: Import db-4.3.28 storage/bdb/test/dead007.tcl: Import db-4.3.28 storage/bdb/test/env001.tcl: Import db-4.3.28 storage/bdb/test/env002.tcl: Import db-4.3.28 storage/bdb/test/env003.tcl: Import db-4.3.28 storage/bdb/test/env004.tcl: Import db-4.3.28 storage/bdb/test/env005.tcl: Import db-4.3.28 storage/bdb/test/env006.tcl: Import db-4.3.28 storage/bdb/test/env007.tcl: Import db-4.3.28 storage/bdb/test/env008.tcl: Import db-4.3.28 storage/bdb/test/env009.tcl: Import db-4.3.28 storage/bdb/test/env010.tcl: Import db-4.3.28 storage/bdb/test/env011.tcl: Import db-4.3.28 storage/bdb/test/hsearch.tcl: Import db-4.3.28 storage/bdb/test/join.tcl: Import db-4.3.28 storage/bdb/test/lock001.tcl: Import db-4.3.28 storage/bdb/test/lock002.tcl: Import db-4.3.28 storage/bdb/test/lock003.tcl: Import db-4.3.28 storage/bdb/test/lock004.tcl: Import db-4.3.28 storage/bdb/test/lock005.tcl: Import db-4.3.28 storage/bdb/test/lockscript.tcl: Import db-4.3.28 storage/bdb/test/log001.tcl: Import db-4.3.28 storage/bdb/test/log002.tcl: Import db-4.3.28 storage/bdb/test/log003.tcl: Import db-4.3.28 storage/bdb/test/log004.tcl: Import db-4.3.28 storage/bdb/test/log005.tcl: Import db-4.3.28 storage/bdb/test/logtrack.tcl: Import db-4.3.28 storage/bdb/test/mdbscript.tcl: Import db-4.3.28 storage/bdb/test/memp001.tcl: Import db-4.3.28 storage/bdb/test/memp002.tcl: Import db-4.3.28 storage/bdb/test/memp003.tcl: Import db-4.3.28 storage/bdb/test/mpoolscript.tcl: Import db-4.3.28 storage/bdb/test/mutex001.tcl: Import db-4.3.28 storage/bdb/test/mutex002.tcl: Import db-4.3.28 storage/bdb/test/mutex003.tcl: Import db-4.3.28 storage/bdb/test/mutexscript.tcl: Import db-4.3.28 storage/bdb/test/ndbm.tcl: Import db-4.3.28 storage/bdb/test/parallel.tcl: Import db-4.3.28 storage/bdb/test/recd001.tcl: Import db-4.3.28 storage/bdb/test/recd002.tcl: Import db-4.3.28 storage/bdb/test/recd003.tcl: Import db-4.3.28 storage/bdb/test/recd004.tcl: Import db-4.3.28 storage/bdb/test/recd005.tcl: Import db-4.3.28 storage/bdb/test/recd006.tcl: Import db-4.3.28 storage/bdb/test/recd007.tcl: Import db-4.3.28 storage/bdb/test/recd008.tcl: Import db-4.3.28 storage/bdb/test/recd009.tcl: Import db-4.3.28 storage/bdb/test/recd010.tcl: Import db-4.3.28 storage/bdb/test/recd011.tcl: Import db-4.3.28 storage/bdb/test/recd012.tcl: Import db-4.3.28 storage/bdb/test/recd013.tcl: Import db-4.3.28 storage/bdb/test/recd014.tcl: Import db-4.3.28 storage/bdb/test/recd015.tcl: Import db-4.3.28 storage/bdb/test/recd016.tcl: Import db-4.3.28 storage/bdb/test/recd017.tcl: Import db-4.3.28 storage/bdb/test/recd018.tcl: Import db-4.3.28 storage/bdb/test/recd019.tcl: Import db-4.3.28 storage/bdb/test/recd020.tcl: Import db-4.3.28 storage/bdb/test/recd15scr.tcl: Import db-4.3.28 storage/bdb/test/recdscript.tcl: Import db-4.3.28 storage/bdb/test/rep001.tcl: Import db-4.3.28 storage/bdb/test/rep002.tcl: Import db-4.3.28 storage/bdb/test/rep003.tcl: Import db-4.3.28 storage/bdb/test/rep005.tcl: Import db-4.3.28 storage/bdb/test/reputils.tcl: Import db-4.3.28 storage/bdb/test/rpc001.tcl: Import db-4.3.28 storage/bdb/test/rpc002.tcl: Import db-4.3.28 storage/bdb/test/rpc003.tcl: Import db-4.3.28 storage/bdb/test/rpc004.tcl: Import db-4.3.28 storage/bdb/test/rpc005.tcl: Import db-4.3.28 storage/bdb/test/rsrc001.tcl: Import db-4.3.28 storage/bdb/test/rsrc002.tcl: Import db-4.3.28 storage/bdb/test/rsrc003.tcl: Import db-4.3.28 storage/bdb/test/rsrc004.tcl: Import db-4.3.28 storage/bdb/test/scr001/chk.code: Import db-4.3.28 storage/bdb/test/scr003/chk.define: Import db-4.3.28 storage/bdb/test/scr004/chk.javafiles: Import db-4.3.28 storage/bdb/test/scr005/chk.nl: Import db-4.3.28 storage/bdb/test/scr006/chk.offt: Import db-4.3.28 storage/bdb/test/scr007/chk.proto: Import db-4.3.28 storage/bdb/test/scr008/chk.pubdef: Import db-4.3.28 storage/bdb/test/scr009/chk.srcfiles: Import db-4.3.28 storage/bdb/test/scr010/chk.str: Import db-4.3.28 storage/bdb/test/scr010/spell.ok: Import db-4.3.28 storage/bdb/test/scr011/chk.tags: Import db-4.3.28 storage/bdb/test/scr012/chk.vx_code: Import db-4.3.28 storage/bdb/test/scr013/chk.stats: Import db-4.3.28 storage/bdb/test/scr015/TestConstruct01.cpp: Import db-4.3.28 storage/bdb/test/scr015/TestConstruct01.testerr: Import db-4.3.28 storage/bdb/test/scr015/TestGetSetMethods.cpp: Import db-4.3.28 storage/bdb/test/scr015/TestKeyRange.cpp: Import db-4.3.28 storage/bdb/test/scr015/TestLogc.cpp: Import db-4.3.28 storage/bdb/test/scr015/TestSimpleAccess.cpp: Import db-4.3.28 storage/bdb/test/scr015/TestTruncate.cpp: Import db-4.3.28 storage/bdb/test/scr015/chk.cxxtests: Import db-4.3.28 storage/bdb/test/scr016/CallbackTest.java: Import db-4.3.28 storage/bdb/test/scr016/CallbackTest.testout: Import db-4.3.28 storage/bdb/test/scr016/TestAppendRecno.java: Import db-4.3.28 storage/bdb/test/scr016/TestAssociate.java: Import db-4.3.28 storage/bdb/test/scr016/TestClosedDb.java: Import db-4.3.28 storage/bdb/test/scr016/TestClosedDb.testout: Import db-4.3.28 storage/bdb/test/scr016/TestConstruct01.java: Import db-4.3.28 storage/bdb/test/scr016/TestConstruct01.testout: Import db-4.3.28 storage/bdb/test/scr016/TestConstruct02.java: Import db-4.3.28 storage/bdb/test/scr016/TestDbtFlags.java: Import db-4.3.28 storage/bdb/test/scr016/TestGetSetMethods.java: Import db-4.3.28 storage/bdb/test/scr016/TestKeyRange.java: Import db-4.3.28 storage/bdb/test/scr016/TestLockVec.java: Import db-4.3.28 storage/bdb/test/scr016/TestLogc.java: Import db-4.3.28 storage/bdb/test/scr016/TestOpenEmpty.java: Import db-4.3.28 storage/bdb/test/scr016/TestOpenEmpty.testerr: Import db-4.3.28 storage/bdb/test/scr016/TestReplication.java: Import db-4.3.28 storage/bdb/test/scr016/TestRpcServer.java: Import db-4.3.28 storage/bdb/test/scr016/TestSameDbt.java: Import db-4.3.28 storage/bdb/test/scr016/TestSimpleAccess.java: Import db-4.3.28 storage/bdb/test/scr016/TestStat.java: Import db-4.3.28 storage/bdb/test/scr016/TestStat.testout: Import db-4.3.28 storage/bdb/test/scr016/TestTruncate.java: Import db-4.3.28 storage/bdb/test/scr016/TestTruncate.testout: Import db-4.3.28 storage/bdb/test/scr016/TestUtil.java: Import db-4.3.28 storage/bdb/test/scr016/TestXAServlet.java: Import db-4.3.28 storage/bdb/test/scr016/chk.javatests: Import db-4.3.28 storage/bdb/test/scr016/ignore: Import db-4.3.28 storage/bdb/test/scr016/testone: Import db-4.3.28 storage/bdb/test/scr017/chk.db185: Import db-4.3.28 storage/bdb/test/scr019/chk.include: Import db-4.3.28 storage/bdb/test/scr020/chk.inc: Import db-4.3.28 storage/bdb/test/scr021/chk.flags: Import db-4.3.28 storage/bdb/test/scr022/chk.rr: Import db-4.3.28 storage/bdb/test/sdb001.tcl: Import db-4.3.28 storage/bdb/test/sdb002.tcl: Import db-4.3.28 storage/bdb/test/sdb003.tcl: Import db-4.3.28 storage/bdb/test/sdb004.tcl: Import db-4.3.28 storage/bdb/test/sdb005.tcl: Import db-4.3.28 storage/bdb/test/sdb006.tcl: Import db-4.3.28 storage/bdb/test/sdb007.tcl: Import db-4.3.28 storage/bdb/test/sdb008.tcl: Import db-4.3.28 storage/bdb/test/sdb009.tcl: Import db-4.3.28 storage/bdb/test/sdb010.tcl: Import db-4.3.28 storage/bdb/test/sdb011.tcl: Import db-4.3.28 storage/bdb/test/sdb012.tcl: Import db-4.3.28 storage/bdb/test/sdbscript.tcl: Import db-4.3.28 storage/bdb/test/sdbtest001.tcl: Import db-4.3.28 storage/bdb/test/sdbtest002.tcl: Import db-4.3.28 storage/bdb/test/sdbutils.tcl: Import db-4.3.28 storage/bdb/test/sec001.tcl: Import db-4.3.28 storage/bdb/test/sec002.tcl: Import db-4.3.28 storage/bdb/test/shelltest.tcl: Import db-4.3.28 storage/bdb/test/si001.tcl: Import db-4.3.28 storage/bdb/test/si002.tcl: Import db-4.3.28 storage/bdb/test/si003.tcl: Import db-4.3.28 storage/bdb/test/si004.tcl: Import db-4.3.28 storage/bdb/test/si005.tcl: Import db-4.3.28 storage/bdb/test/sysscript.tcl: Import db-4.3.28 storage/bdb/test/test.tcl: Import db-4.3.28 storage/bdb/test/test001.tcl: Import db-4.3.28 storage/bdb/test/test002.tcl: Import db-4.3.28 storage/bdb/test/test003.tcl: Import db-4.3.28 storage/bdb/test/test004.tcl: Import db-4.3.28 storage/bdb/test/test005.tcl: Import db-4.3.28 storage/bdb/test/test006.tcl: Import db-4.3.28 storage/bdb/test/test007.tcl: Import db-4.3.28 storage/bdb/test/test008.tcl: Import db-4.3.28 storage/bdb/test/test009.tcl: Import db-4.3.28 storage/bdb/test/test010.tcl: Import db-4.3.28 storage/bdb/test/test011.tcl: Import db-4.3.28 storage/bdb/test/test012.tcl: Import db-4.3.28 storage/bdb/test/test013.tcl: Import db-4.3.28 storage/bdb/test/test014.tcl: Import db-4.3.28 storage/bdb/test/test015.tcl: Import db-4.3.28 storage/bdb/test/test016.tcl: Import db-4.3.28 storage/bdb/test/test017.tcl: Import db-4.3.28 storage/bdb/test/test018.tcl: Import db-4.3.28 storage/bdb/test/test019.tcl: Import db-4.3.28 storage/bdb/test/test020.tcl: Import db-4.3.28 storage/bdb/test/test021.tcl: Import db-4.3.28 storage/bdb/test/test022.tcl: Import db-4.3.28 storage/bdb/test/test023.tcl: Import db-4.3.28 storage/bdb/test/test024.tcl: Import db-4.3.28 storage/bdb/test/test025.tcl: Import db-4.3.28 storage/bdb/test/test026.tcl: Import db-4.3.28 storage/bdb/test/test027.tcl: Import db-4.3.28 storage/bdb/test/test028.tcl: Import db-4.3.28 storage/bdb/test/test029.tcl: Import db-4.3.28 storage/bdb/test/test030.tcl: Import db-4.3.28 storage/bdb/test/test031.tcl: Import db-4.3.28 storage/bdb/test/test032.tcl: Import db-4.3.28 storage/bdb/test/test033.tcl: Import db-4.3.28 storage/bdb/test/test034.tcl: Import db-4.3.28 storage/bdb/test/test035.tcl: Import db-4.3.28 storage/bdb/test/test036.tcl: Import db-4.3.28 storage/bdb/test/test037.tcl: Import db-4.3.28 storage/bdb/test/test038.tcl: Import db-4.3.28 storage/bdb/test/test039.tcl: Import db-4.3.28 storage/bdb/test/test040.tcl: Import db-4.3.28 storage/bdb/test/test041.tcl: Import db-4.3.28 storage/bdb/test/test042.tcl: Import db-4.3.28 storage/bdb/test/test043.tcl: Import db-4.3.28 storage/bdb/test/test044.tcl: Import db-4.3.28 storage/bdb/test/test045.tcl: Import db-4.3.28 storage/bdb/test/test046.tcl: Import db-4.3.28 storage/bdb/test/test047.tcl: Import db-4.3.28 storage/bdb/test/test048.tcl: Import db-4.3.28 storage/bdb/test/test049.tcl: Import db-4.3.28 storage/bdb/test/test050.tcl: Import db-4.3.28 storage/bdb/test/test051.tcl: Import db-4.3.28 storage/bdb/test/test052.tcl: Import db-4.3.28 storage/bdb/test/test053.tcl: Import db-4.3.28 storage/bdb/test/test054.tcl: Import db-4.3.28 storage/bdb/test/test055.tcl: Import db-4.3.28 storage/bdb/test/test056.tcl: Import db-4.3.28 storage/bdb/test/test057.tcl: Import db-4.3.28 storage/bdb/test/test058.tcl: Import db-4.3.28 storage/bdb/test/test059.tcl: Import db-4.3.28 storage/bdb/test/test060.tcl: Import db-4.3.28 storage/bdb/test/test061.tcl: Import db-4.3.28 storage/bdb/test/test062.tcl: Import db-4.3.28 storage/bdb/test/test063.tcl: Import db-4.3.28 storage/bdb/test/test064.tcl: Import db-4.3.28 storage/bdb/test/test065.tcl: Import db-4.3.28 storage/bdb/test/test066.tcl: Import db-4.3.28 storage/bdb/test/test067.tcl: Import db-4.3.28 storage/bdb/test/test068.tcl: Import db-4.3.28 storage/bdb/test/test069.tcl: Import db-4.3.28 storage/bdb/test/test070.tcl: Import db-4.3.28 storage/bdb/test/test071.tcl: Import db-4.3.28 storage/bdb/test/test072.tcl: Import db-4.3.28 storage/bdb/test/test073.tcl: Import db-4.3.28 storage/bdb/test/test074.tcl: Import db-4.3.28 storage/bdb/test/test076.tcl: Import db-4.3.28 storage/bdb/test/test077.tcl: Import db-4.3.28 storage/bdb/test/test078.tcl: Import db-4.3.28 storage/bdb/test/test079.tcl: Import db-4.3.28 storage/bdb/test/test081.tcl: Import db-4.3.28 storage/bdb/test/test082.tcl: Import db-4.3.28 storage/bdb/test/test083.tcl: Import db-4.3.28 storage/bdb/test/test084.tcl: Import db-4.3.28 storage/bdb/test/test085.tcl: Import db-4.3.28 storage/bdb/test/test086.tcl: Import db-4.3.28 storage/bdb/test/test087.tcl: Import db-4.3.28 storage/bdb/test/test088.tcl: Import db-4.3.28 storage/bdb/test/test089.tcl: Import db-4.3.28 storage/bdb/test/test090.tcl: Import db-4.3.28 storage/bdb/test/test091.tcl: Import db-4.3.28 storage/bdb/test/test092.tcl: Import db-4.3.28 storage/bdb/test/test093.tcl: Import db-4.3.28 storage/bdb/test/test094.tcl: Import db-4.3.28 storage/bdb/test/test095.tcl: Import db-4.3.28 storage/bdb/test/test096.tcl: Import db-4.3.28 storage/bdb/test/test097.tcl: Import db-4.3.28 storage/bdb/test/test098.tcl: Import db-4.3.28 storage/bdb/test/test099.tcl: Import db-4.3.28 storage/bdb/test/test100.tcl: Import db-4.3.28 storage/bdb/test/test101.tcl: Import db-4.3.28 storage/bdb/test/testparams.tcl: Import db-4.3.28 storage/bdb/test/testutils.tcl: Import db-4.3.28 storage/bdb/test/txn001.tcl: Import db-4.3.28 storage/bdb/test/txn002.tcl: Import db-4.3.28 storage/bdb/test/txn003.tcl: Import db-4.3.28 storage/bdb/test/txn004.tcl: Import db-4.3.28 storage/bdb/test/txn005.tcl: Import db-4.3.28 storage/bdb/test/txn006.tcl: Import db-4.3.28 storage/bdb/test/txn007.tcl: Import db-4.3.28 storage/bdb/test/txn008.tcl: Import db-4.3.28 storage/bdb/test/txn009.tcl: Import db-4.3.28 storage/bdb/test/txnscript.tcl: Import db-4.3.28 storage/bdb/test/update.tcl: Import db-4.3.28 storage/bdb/test/upgrade.tcl: Import db-4.3.28 storage/bdb/test/wrap.tcl: Import db-4.3.28 storage/bdb/txn/txn.c: Import db-4.3.28 storage/bdb/txn/txn.src: Import db-4.3.28 storage/bdb/txn/txn_method.c: Import db-4.3.28 storage/bdb/txn/txn_rec.c: Import db-4.3.28 storage/bdb/txn/txn_recover.c: Import db-4.3.28 storage/bdb/txn/txn_region.c: Import db-4.3.28 storage/bdb/txn/txn_stat.c: Import db-4.3.28 storage/bdb/txn/txn_util.c: Import db-4.3.28 storage/bdb/xa/xa.c: Import db-4.3.28 storage/bdb/xa/xa_db.c: Import db-4.3.28 storage/bdb/xa/xa_map.c: Import db-4.3.28 storage/bdb/clib/strtol.c: Import db-4.3.28 storage/bdb/clib/strtoul.c: Import db-4.3.28 storage/bdb/common/crypto_stub.c: Import db-4.3.28 storage/bdb/crypto/aes_method.c: Import db-4.3.28 storage/bdb/crypto/crypto.c: Import db-4.3.28 storage/bdb/crypto/crypto.html: Import db-4.3.28 storage/bdb/crypto/mersenne/mt19937db.c: Import db-4.3.28 storage/bdb/crypto/rijndael/rijndael-alg-fst.c: Import db-4.3.28 storage/bdb/crypto/rijndael/rijndael-alg-fst.h: Import db-4.3.28 storage/bdb/crypto/rijndael/rijndael-api-fst.c: Import db-4.3.28 storage/bdb/crypto/rijndael/rijndael-api-fst.h: Import db-4.3.28 storage/bdb/cxx/cxx_multi.cpp: Import db-4.3.28 storage/bdb/cxx/cxx_seq.cpp: Import db-4.3.28 storage/bdb/db/db_ovfl_vrfy.c: Import db-4.3.28 storage/bdb/db/db_setid.c: Import db-4.3.28 storage/bdb/db/db_setlsn.c: Import db-4.3.28 storage/bdb/db/db_stati.c: Import db-4.3.28 storage/bdb/db/db_vrfy_stub.c: Import db-4.3.28 storage/bdb/db_stat/dd.sh: Import db-4.3.28 storage/bdb/dbreg/dbreg_stat.c: Import db-4.3.28 storage/bdb/dist/aclocal/rpc.ac: Import db-4.3.28 storage/bdb/dist/aclocal/sequence.ac: Import db-4.3.28 storage/bdb/dist/config.hin: Import db-4.3.28 storage/bdb/dist/s_java_const: Import db-4.3.28 storage/bdb/dist/s_java_stat: Import db-4.3.28 storage/bdb/dist/s_java_swig: Import db-4.3.28 storage/bdb/dist/s_je2db: Import db-4.3.28 storage/bdb/dist/s_winmsi: Import db-4.3.28 storage/bdb/dist/template/db_server_proc: Import db-4.3.28 storage/bdb/dist/template/gen_client_ret: Import db-4.3.28 storage/bdb/dist/template/rec_btree: Import db-4.3.28 storage/bdb/dist/template/rec_crdel: Import db-4.3.28 storage/bdb/dist/template/rec_dbreg: Import db-4.3.28 storage/bdb/dist/template/rec_db: Import db-4.3.28 storage/bdb/dist/template/rec_fileops: Import db-4.3.28 storage/bdb/dist/template/rec_hash: Import db-4.3.28 storage/bdb/dist/template/rec_qam: Import db-4.3.28 storage/bdb/dist/template/rec_rep: Import db-4.3.28 storage/bdb/dist/template/rec_txn: Import db-4.3.28 storage/bdb/dist/vx_2.0/BerkeleyDBsmall.wpj: Import db-4.3.28 storage/bdb/dist/vx_2.2/BerkeleyDB.wpj: Import db-4.3.28 storage/bdb/dist/vx_2.2/BerkeleyDBsmall.wpj: Import db-4.3.28 storage/bdb/dist/vx_2.2/wpj.in: Import db-4.3.28 storage/bdb/dist/win_db.in: Import db-4.3.28 storage/bdb/dist/winmsi/dbcorewix.in: Import db-4.3.28 storage/bdb/dist/winmsi/dbvarsbat.in: Import db-4.3.28 storage/bdb/dist/winmsi/dbwix.m4: Import db-4.3.28 storage/bdb/dist/winmsi/environment.in: Import db-4.3.28 storage/bdb/dist/winmsi/features.in: Import db-4.3.28 storage/bdb/dist/winmsi/files.in: Import db-4.3.28 storage/bdb/dist/winmsi/images/caticon.ibd: Import db-4.3.28 storage/bdb/dist/winmsi/images/foldernew.ibd: Import db-4.3.28 storage/bdb/dist/winmsi/images/folderup.ibd: Import db-4.3.28 storage/bdb/dist/winmsi/images/sleepycat.jpg: Import db-4.3.28 storage/bdb/dist/winmsi/images/topstripe.ibd: Import db-4.3.28 storage/bdb/dist/winmsi/images/webicon.ico: Import db-4.3.28 storage/bdb/dist/winmsi/links.in: Import db-4.3.28 storage/bdb/dist/winmsi/s_winmsi.fcn: Import db-4.3.28 storage/bdb/dist/winmsi/winbuild.bat: Import db-4.3.28 storage/bdb/env/env_stat.c: Import db-4.3.28 storage/bdb/hash/hash_stub.c: Import db-4.3.28 storage/bdb/lock/lock_id.c: Import db-4.3.28 storage/bdb/lock/lock_list.c: Import db-4.3.28 storage/bdb/lock/lock_timer.c: Import db-4.3.28 storage/bdb/log/log_stat.c: Import db-4.3.28 storage/bdb/mp/mp_fmethod.c: Import db-4.3.28 storage/bdb/os/os_truncate.c: Import db-4.3.28 storage/bdb/os_win32/os_truncate.c: Import db-4.3.28 storage/bdb/os_win32/os_unlink.c: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/META.yml: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/cds.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/encrypt.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/pod.t: Import db-4.3.28 storage/bdb/perl/DB_File/META.yml: Import db-4.3.28 storage/bdb/qam/qam_stub.c: Import db-4.3.28 storage/bdb/rep/rep.src: Import db-4.3.28 storage/bdb/rep/rep_backup.c: Import db-4.3.28 storage/bdb/rep/rep_stat.c: Import db-4.3.28 storage/bdb/rep/rep_stub.c: Import db-4.3.28 storage/bdb/rpc_client/gen_client.c: Import db-4.3.28 storage/bdb/rpc_server/c/db_server_proc.c: Import db-4.3.28 storage/bdb/rpc_server/c/gen_db_server.c: Import db-4.3.28 storage/bdb/rpc_server/db_server.x: Import db-4.3.28 storage/bdb/sequence/seq_stat.c: Import db-4.3.28 storage/bdb/sequence/sequence.c: Import db-4.3.28 storage/bdb/tcl/tcl_seq.c: Import db-4.3.28 storage/bdb/dist/config.guess: Import db-4.3.28 storage/bdb/dist/config.sub: Import db-4.3.28 storage/bdb/dist/s_all: Import db-4.3.28 storage/bdb/dist/s_config: Import db-4.3.28 storage/bdb/dist/s_crypto: Import db-4.3.28 storage/bdb/dist/s_include: Import db-4.3.28 storage/bdb/dist/s_java: Import db-4.3.28 storage/bdb/dist/s_perm: Import db-4.3.28 storage/bdb/dist/s_readme: Import db-4.3.28 storage/bdb/dist/s_recover: Import db-4.3.28 storage/bdb/dist/s_rpc: Import db-4.3.28 storage/bdb/dist/s_symlink: Import db-4.3.28 storage/bdb/dist/s_tags: Import db-4.3.28 storage/bdb/dist/s_test: Import db-4.3.28 storage/bdb/dist/s_vxworks: Import db-4.3.28 storage/bdb/dist/s_win32_dsp: Import db-4.3.28 storage/bdb/dist/s_win32: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/dbinfo: Import db-4.3.28
865 lines
22 KiB
C
865 lines
22 KiB
C
/*-
|
|
* See the file LICENSE for redistribution information.
|
|
*
|
|
* Copyright (c) 1998-2004
|
|
* Sleepycat Software. All rights reserved.
|
|
*
|
|
* $Id: db_am.c,v 11.120 2004/10/07 17:33:32 sue Exp $
|
|
*/
|
|
|
|
#include "db_config.h"
|
|
|
|
#ifndef NO_SYSTEM_INCLUDES
|
|
#include <sys/types.h>
|
|
|
|
#include <string.h>
|
|
#endif
|
|
|
|
#include "db_int.h"
|
|
#include "dbinc/db_page.h"
|
|
#include "dbinc/db_shash.h"
|
|
#include "dbinc/btree.h"
|
|
#include "dbinc/hash.h"
|
|
#include "dbinc/lock.h"
|
|
#include "dbinc/log.h"
|
|
#include "dbinc/mp.h"
|
|
#include "dbinc/qam.h"
|
|
|
|
static int __db_append_primary __P((DBC *, DBT *, DBT *));
|
|
static int __db_secondary_get __P((DB *, DB_TXN *, DBT *, DBT *, u_int32_t));
|
|
|
|
/*
|
|
* __db_cursor_int --
|
|
* Internal routine to create a cursor.
|
|
*
|
|
* PUBLIC: int __db_cursor_int
|
|
* PUBLIC: __P((DB *, DB_TXN *, DBTYPE, db_pgno_t, int, u_int32_t, DBC **));
|
|
*/
|
|
int
|
|
__db_cursor_int(dbp, txn, dbtype, root, is_opd, lockerid, dbcp)
|
|
DB *dbp;
|
|
DB_TXN *txn;
|
|
DBTYPE dbtype;
|
|
db_pgno_t root;
|
|
int is_opd;
|
|
u_int32_t lockerid;
|
|
DBC **dbcp;
|
|
{
|
|
DBC *dbc;
|
|
DBC_INTERNAL *cp;
|
|
DB_ENV *dbenv;
|
|
int allocated, ret;
|
|
|
|
dbenv = dbp->dbenv;
|
|
allocated = 0;
|
|
|
|
/*
|
|
* If dbcp is non-NULL it is assumed to point to an area to initialize
|
|
* as a cursor.
|
|
*
|
|
* Take one from the free list if it's available. Take only the
|
|
* right type. With off page dups we may have different kinds
|
|
* of cursors on the queue for a single database.
|
|
*/
|
|
MUTEX_THREAD_LOCK(dbenv, dbp->mutexp);
|
|
for (dbc = TAILQ_FIRST(&dbp->free_queue);
|
|
dbc != NULL; dbc = TAILQ_NEXT(dbc, links))
|
|
if (dbtype == dbc->dbtype) {
|
|
TAILQ_REMOVE(&dbp->free_queue, dbc, links);
|
|
F_CLR(dbc, ~DBC_OWN_LID);
|
|
break;
|
|
}
|
|
MUTEX_THREAD_UNLOCK(dbenv, dbp->mutexp);
|
|
|
|
if (dbc == NULL) {
|
|
if ((ret = __os_calloc(dbenv, 1, sizeof(DBC), &dbc)) != 0)
|
|
return (ret);
|
|
allocated = 1;
|
|
dbc->flags = 0;
|
|
|
|
dbc->dbp = dbp;
|
|
|
|
/* Set up locking information. */
|
|
if (LOCKING_ON(dbenv)) {
|
|
/*
|
|
* If we are not threaded, we share a locker ID among
|
|
* all cursors opened in the environment handle,
|
|
* allocating one if this is the first cursor.
|
|
*
|
|
* This relies on the fact that non-threaded DB handles
|
|
* always have non-threaded environment handles, since
|
|
* we set DB_THREAD on DB handles created with threaded
|
|
* environment handles.
|
|
*/
|
|
if (!DB_IS_THREADED(dbp)) {
|
|
if (dbp->dbenv->env_lid == DB_LOCK_INVALIDID &&
|
|
(ret =
|
|
__lock_id(dbenv,&dbp->dbenv->env_lid)) != 0)
|
|
goto err;
|
|
dbc->lid = dbp->dbenv->env_lid;
|
|
} else {
|
|
if ((ret = __lock_id(dbenv, &dbc->lid)) != 0)
|
|
goto err;
|
|
F_SET(dbc, DBC_OWN_LID);
|
|
}
|
|
|
|
/*
|
|
* In CDB, secondary indices should share a lock file
|
|
* ID with the primary; otherwise we're susceptible
|
|
* to deadlocks. We also use __db_cursor_int rather
|
|
* than __db_cursor to create secondary update cursors
|
|
* in c_put and c_del; these won't acquire a new lock.
|
|
*
|
|
* !!!
|
|
* Since this is in the one-time cursor allocation
|
|
* code, we need to be sure to destroy, not just
|
|
* close, all cursors in the secondary when we
|
|
* associate.
|
|
*/
|
|
if (CDB_LOCKING(dbenv) &&
|
|
F_ISSET(dbp, DB_AM_SECONDARY))
|
|
memcpy(dbc->lock.fileid,
|
|
dbp->s_primary->fileid, DB_FILE_ID_LEN);
|
|
else
|
|
memcpy(dbc->lock.fileid,
|
|
dbp->fileid, DB_FILE_ID_LEN);
|
|
|
|
if (CDB_LOCKING(dbenv)) {
|
|
if (F_ISSET(dbenv, DB_ENV_CDB_ALLDB)) {
|
|
/*
|
|
* If we are doing a single lock per
|
|
* environment, set up the global
|
|
* lock object just like we do to
|
|
* single thread creates.
|
|
*/
|
|
DB_ASSERT(sizeof(db_pgno_t) ==
|
|
sizeof(u_int32_t));
|
|
dbc->lock_dbt.size = sizeof(u_int32_t);
|
|
dbc->lock_dbt.data = &dbc->lock.pgno;
|
|
dbc->lock.pgno = 0;
|
|
} else {
|
|
dbc->lock_dbt.size = DB_FILE_ID_LEN;
|
|
dbc->lock_dbt.data = dbc->lock.fileid;
|
|
}
|
|
} else {
|
|
dbc->lock.type = DB_PAGE_LOCK;
|
|
dbc->lock_dbt.size = sizeof(dbc->lock);
|
|
dbc->lock_dbt.data = &dbc->lock;
|
|
}
|
|
}
|
|
/* Init the DBC internal structure. */
|
|
switch (dbtype) {
|
|
case DB_BTREE:
|
|
case DB_RECNO:
|
|
if ((ret = __bam_c_init(dbc, dbtype)) != 0)
|
|
goto err;
|
|
break;
|
|
case DB_HASH:
|
|
if ((ret = __ham_c_init(dbc)) != 0)
|
|
goto err;
|
|
break;
|
|
case DB_QUEUE:
|
|
if ((ret = __qam_c_init(dbc)) != 0)
|
|
goto err;
|
|
break;
|
|
case DB_UNKNOWN:
|
|
default:
|
|
ret = __db_unknown_type(dbenv, "DB->cursor", dbtype);
|
|
goto err;
|
|
}
|
|
|
|
cp = dbc->internal;
|
|
}
|
|
|
|
/* Refresh the DBC structure. */
|
|
dbc->dbtype = dbtype;
|
|
RESET_RET_MEM(dbc);
|
|
|
|
if ((dbc->txn = txn) == NULL) {
|
|
/*
|
|
* There are certain cases in which we want to create a
|
|
* new cursor with a particular locker ID that is known
|
|
* to be the same as (and thus not conflict with) an
|
|
* open cursor.
|
|
*
|
|
* The most obvious case is cursor duplication; when we
|
|
* call DBC->c_dup or __db_c_idup, we want to use the original
|
|
* cursor's locker ID.
|
|
*
|
|
* Another case is when updating secondary indices. Standard
|
|
* CDB locking would mean that we might block ourself: we need
|
|
* to open an update cursor in the secondary while an update
|
|
* cursor in the primary is open, and when the secondary and
|
|
* primary are subdatabases or we're using env-wide locking,
|
|
* this is disastrous.
|
|
*
|
|
* In these cases, our caller will pass a nonzero locker ID
|
|
* into this function. Use this locker ID instead of dbc->lid
|
|
* as the locker ID for our new cursor.
|
|
*/
|
|
if (lockerid != DB_LOCK_INVALIDID)
|
|
dbc->locker = lockerid;
|
|
else
|
|
dbc->locker = dbc->lid;
|
|
} else
|
|
dbc->locker = txn->txnid;
|
|
|
|
/*
|
|
* These fields change when we are used as a secondary index, so
|
|
* if the DB is a secondary, make sure they're set properly just
|
|
* in case we opened some cursors before we were associated.
|
|
*
|
|
* __db_c_get is used by all access methods, so this should be safe.
|
|
*/
|
|
if (F_ISSET(dbp, DB_AM_SECONDARY))
|
|
dbc->c_get = __db_c_secondary_get_pp;
|
|
|
|
if (is_opd)
|
|
F_SET(dbc, DBC_OPD);
|
|
if (F_ISSET(dbp, DB_AM_RECOVER))
|
|
F_SET(dbc, DBC_RECOVER);
|
|
if (F_ISSET(dbp, DB_AM_COMPENSATE))
|
|
F_SET(dbc, DBC_COMPENSATE);
|
|
|
|
/* Refresh the DBC internal structure. */
|
|
cp = dbc->internal;
|
|
cp->opd = NULL;
|
|
|
|
cp->indx = 0;
|
|
cp->page = NULL;
|
|
cp->pgno = PGNO_INVALID;
|
|
cp->root = root;
|
|
|
|
switch (dbtype) {
|
|
case DB_BTREE:
|
|
case DB_RECNO:
|
|
if ((ret = __bam_c_refresh(dbc)) != 0)
|
|
goto err;
|
|
break;
|
|
case DB_HASH:
|
|
case DB_QUEUE:
|
|
break;
|
|
case DB_UNKNOWN:
|
|
default:
|
|
ret = __db_unknown_type(dbenv, "DB->cursor", dbp->type);
|
|
goto err;
|
|
}
|
|
|
|
/*
|
|
* The transaction keeps track of how many cursors were opened within
|
|
* it to catch application errors where the cursor isn't closed when
|
|
* the transaction is resolved.
|
|
*/
|
|
if (txn != NULL)
|
|
++txn->cursors;
|
|
|
|
MUTEX_THREAD_LOCK(dbenv, dbp->mutexp);
|
|
TAILQ_INSERT_TAIL(&dbp->active_queue, dbc, links);
|
|
F_SET(dbc, DBC_ACTIVE);
|
|
MUTEX_THREAD_UNLOCK(dbenv, dbp->mutexp);
|
|
|
|
*dbcp = dbc;
|
|
return (0);
|
|
|
|
err: if (allocated)
|
|
__os_free(dbenv, dbc);
|
|
return (ret);
|
|
}
|
|
|
|
/*
|
|
* __db_put --
|
|
* Store a key/data pair.
|
|
*
|
|
* PUBLIC: int __db_put __P((DB *, DB_TXN *, DBT *, DBT *, u_int32_t));
|
|
*/
|
|
int
|
|
__db_put(dbp, txn, key, data, flags)
|
|
DB *dbp;
|
|
DB_TXN *txn;
|
|
DBT *key, *data;
|
|
u_int32_t flags;
|
|
{
|
|
DBC *dbc;
|
|
DBT tdata;
|
|
DB_ENV *dbenv;
|
|
int ret, t_ret;
|
|
|
|
dbenv = dbp->dbenv;
|
|
|
|
if ((ret = __db_cursor(dbp, txn, &dbc, DB_WRITELOCK)) != 0)
|
|
return (ret);
|
|
|
|
DEBUG_LWRITE(dbc, txn, "DB->put", key, data, flags);
|
|
|
|
SET_RET_MEM(dbc, dbp);
|
|
|
|
/*
|
|
* See the comment in __db_get().
|
|
*
|
|
* Note that the c_get in the DB_NOOVERWRITE case is safe to
|
|
* do with this flag set; if it errors in any way other than
|
|
* DB_NOTFOUND, we're going to close the cursor without doing
|
|
* anything else, and if it returns DB_NOTFOUND then it's safe
|
|
* to do a c_put(DB_KEYLAST) even if an access method moved the
|
|
* cursor, since that's not position-dependent.
|
|
*/
|
|
F_SET(dbc, DBC_TRANSIENT);
|
|
|
|
switch (flags) {
|
|
case DB_APPEND:
|
|
/*
|
|
* If there is an append callback, the value stored in
|
|
* data->data may be replaced and then freed. To avoid
|
|
* passing a freed pointer back to the user, just operate
|
|
* on a copy of the data DBT.
|
|
*/
|
|
tdata = *data;
|
|
|
|
/*
|
|
* Append isn't a normal put operation; call the appropriate
|
|
* access method's append function.
|
|
*/
|
|
switch (dbp->type) {
|
|
case DB_QUEUE:
|
|
if ((ret = __qam_append(dbc, key, &tdata)) != 0)
|
|
goto err;
|
|
break;
|
|
case DB_RECNO:
|
|
if ((ret = __ram_append(dbc, key, &tdata)) != 0)
|
|
goto err;
|
|
break;
|
|
case DB_BTREE:
|
|
case DB_HASH:
|
|
case DB_UNKNOWN:
|
|
default:
|
|
/* The interface should prevent this. */
|
|
DB_ASSERT(
|
|
dbp->type == DB_QUEUE || dbp->type == DB_RECNO);
|
|
|
|
ret = __db_ferr(dbenv, "DB->put", 0);
|
|
goto err;
|
|
}
|
|
|
|
/*
|
|
* Secondary indices: since we've returned zero from
|
|
* an append function, we've just put a record, and done
|
|
* so outside __db_c_put. We know we're not a secondary--
|
|
* the interface prevents puts on them--but we may be a
|
|
* primary. If so, update our secondary indices
|
|
* appropriately.
|
|
*/
|
|
DB_ASSERT(!F_ISSET(dbp, DB_AM_SECONDARY));
|
|
|
|
if (LIST_FIRST(&dbp->s_secondaries) != NULL)
|
|
ret = __db_append_primary(dbc, key, &tdata);
|
|
|
|
/*
|
|
* The append callback, if one exists, may have allocated
|
|
* a new tdata.data buffer. If so, free it.
|
|
*/
|
|
FREE_IF_NEEDED(dbp, &tdata);
|
|
|
|
/* No need for a cursor put; we're done. */
|
|
goto done;
|
|
case DB_NOOVERWRITE:
|
|
flags = 0;
|
|
/*
|
|
* Set DB_DBT_USERMEM, this might be a threaded application and
|
|
* the flags checking will catch us. We don't want the actual
|
|
* data, so request a partial of length 0.
|
|
*/
|
|
memset(&tdata, 0, sizeof(tdata));
|
|
F_SET(&tdata, DB_DBT_USERMEM | DB_DBT_PARTIAL);
|
|
|
|
/*
|
|
* If we're doing page-level locking, set the read-modify-write
|
|
* flag, we're going to overwrite immediately.
|
|
*/
|
|
if ((ret = __db_c_get(dbc, key, &tdata,
|
|
DB_SET | (STD_LOCKING(dbc) ? DB_RMW : 0))) == 0)
|
|
ret = DB_KEYEXIST;
|
|
else if (ret == DB_NOTFOUND || ret == DB_KEYEMPTY)
|
|
ret = 0;
|
|
break;
|
|
default:
|
|
/* Fall through to normal cursor put. */
|
|
break;
|
|
}
|
|
|
|
if (ret == 0)
|
|
ret = __db_c_put(dbc,
|
|
key, data, flags == 0 ? DB_KEYLAST : flags);
|
|
|
|
err:
|
|
done: /* Close the cursor. */
|
|
if ((t_ret = __db_c_close(dbc)) != 0 && ret == 0)
|
|
ret = t_ret;
|
|
|
|
return (ret);
|
|
}
|
|
|
|
/*
|
|
* __db_del --
|
|
* Delete the items referenced by a key.
|
|
*
|
|
* PUBLIC: int __db_del __P((DB *, DB_TXN *, DBT *, u_int32_t));
|
|
*/
|
|
int
|
|
__db_del(dbp, txn, key, flags)
|
|
DB *dbp;
|
|
DB_TXN *txn;
|
|
DBT *key;
|
|
u_int32_t flags;
|
|
{
|
|
DBC *dbc;
|
|
DBT data, lkey;
|
|
u_int32_t f_init, f_next;
|
|
int ret, t_ret;
|
|
|
|
/* Allocate a cursor. */
|
|
if ((ret = __db_cursor(dbp, txn, &dbc, DB_WRITELOCK)) != 0)
|
|
goto err;
|
|
|
|
DEBUG_LWRITE(dbc, txn, "DB->del", key, NULL, flags);
|
|
COMPQUIET(flags, 0);
|
|
|
|
/*
|
|
* Walk a cursor through the key/data pairs, deleting as we go. Set
|
|
* the DB_DBT_USERMEM flag, as this might be a threaded application
|
|
* and the flags checking will catch us. We don't actually want the
|
|
* keys or data, so request a partial of length 0.
|
|
*/
|
|
memset(&lkey, 0, sizeof(lkey));
|
|
F_SET(&lkey, DB_DBT_USERMEM | DB_DBT_PARTIAL);
|
|
memset(&data, 0, sizeof(data));
|
|
F_SET(&data, DB_DBT_USERMEM | DB_DBT_PARTIAL);
|
|
|
|
/*
|
|
* If locking (and we haven't already acquired CDB locks), set the
|
|
* read-modify-write flag.
|
|
*/
|
|
f_init = DB_SET;
|
|
f_next = DB_NEXT_DUP;
|
|
if (STD_LOCKING(dbc)) {
|
|
f_init |= DB_RMW;
|
|
f_next |= DB_RMW;
|
|
}
|
|
|
|
/* Walk through the set of key/data pairs, deleting as we go. */
|
|
if ((ret = __db_c_get(dbc, key, &data, f_init)) != 0)
|
|
goto err;
|
|
|
|
/*
|
|
* Hash permits an optimization in DB->del: since on-page
|
|
* duplicates are stored in a single HKEYDATA structure, it's
|
|
* possible to delete an entire set of them at once, and as
|
|
* the HKEYDATA has to be rebuilt and re-put each time it
|
|
* changes, this is much faster than deleting the duplicates
|
|
* one by one. Thus, if we're not pointing at an off-page
|
|
* duplicate set, and we're not using secondary indices (in
|
|
* which case we'd have to examine the items one by one anyway),
|
|
* let hash do this "quick delete".
|
|
*
|
|
* !!!
|
|
* Note that this is the only application-executed delete call in
|
|
* Berkeley DB that does not go through the __db_c_del function.
|
|
* If anything other than the delete itself (like a secondary index
|
|
* update) has to happen there in a particular situation, the
|
|
* conditions here should be modified not to call __ham_quick_delete.
|
|
* The ordinary AM-independent alternative will work just fine with
|
|
* a hash; it'll just be slower.
|
|
*/
|
|
if (dbp->type == DB_HASH)
|
|
if (LIST_FIRST(&dbp->s_secondaries) == NULL &&
|
|
!F_ISSET(dbp, DB_AM_SECONDARY) &&
|
|
dbc->internal->opd == NULL) {
|
|
ret = __ham_quick_delete(dbc);
|
|
goto done;
|
|
}
|
|
|
|
for (;;) {
|
|
if ((ret = __db_c_del(dbc, 0)) != 0)
|
|
break;
|
|
if ((ret = __db_c_get(dbc, &lkey, &data, f_next)) != 0) {
|
|
if (ret == DB_NOTFOUND)
|
|
ret = 0;
|
|
break;
|
|
}
|
|
}
|
|
|
|
done:
|
|
err: /* Discard the cursor. */
|
|
if ((t_ret = __db_c_close(dbc)) != 0 && ret == 0)
|
|
ret = t_ret;
|
|
|
|
return (ret);
|
|
}
|
|
|
|
/*
|
|
* __db_sync --
|
|
* Flush the database cache.
|
|
*
|
|
* PUBLIC: int __db_sync __P((DB *));
|
|
*/
|
|
int
|
|
__db_sync(dbp)
|
|
DB *dbp;
|
|
{
|
|
int ret, t_ret;
|
|
|
|
ret = 0;
|
|
|
|
/* If the database was read-only, we're done. */
|
|
if (F_ISSET(dbp, DB_AM_RDONLY))
|
|
return (0);
|
|
|
|
/* If it's a Recno tree, write the backing source text file. */
|
|
if (dbp->type == DB_RECNO)
|
|
ret = __ram_writeback(dbp);
|
|
|
|
/* If the database was never backed by a database file, we're done. */
|
|
if (F_ISSET(dbp, DB_AM_INMEM))
|
|
return (ret);
|
|
|
|
if (dbp->type == DB_QUEUE)
|
|
ret = __qam_sync(dbp);
|
|
else
|
|
/* Flush any dirty pages from the cache to the backing file. */
|
|
if ((t_ret = __memp_fsync(dbp->mpf)) != 0 && ret == 0)
|
|
ret = t_ret;
|
|
|
|
return (ret);
|
|
}
|
|
|
|
/*
|
|
* __db_associate --
|
|
* Associate another database as a secondary index to this one.
|
|
*
|
|
* PUBLIC: int __db_associate __P((DB *, DB_TXN *, DB *,
|
|
* PUBLIC: int (*)(DB *, const DBT *, const DBT *, DBT *), u_int32_t));
|
|
*/
|
|
int
|
|
__db_associate(dbp, txn, sdbp, callback, flags)
|
|
DB *dbp, *sdbp;
|
|
DB_TXN *txn;
|
|
int (*callback) __P((DB *, const DBT *, const DBT *, DBT *));
|
|
u_int32_t flags;
|
|
{
|
|
DB_ENV *dbenv;
|
|
DBC *pdbc, *sdbc;
|
|
DBT skey, key, data;
|
|
int build, ret, t_ret;
|
|
|
|
dbenv = dbp->dbenv;
|
|
pdbc = sdbc = NULL;
|
|
ret = 0;
|
|
|
|
sdbp->s_callback = callback;
|
|
sdbp->s_primary = dbp;
|
|
|
|
sdbp->stored_get = sdbp->get;
|
|
sdbp->get = __db_secondary_get;
|
|
|
|
sdbp->stored_close = sdbp->close;
|
|
sdbp->close = __db_secondary_close_pp;
|
|
|
|
F_SET(sdbp, DB_AM_SECONDARY);
|
|
|
|
/*
|
|
* Check to see if the secondary is empty--and thus if we should
|
|
* build it--before we link it in and risk making it show up in
|
|
* other threads.
|
|
*/
|
|
build = 0;
|
|
if (LF_ISSET(DB_CREATE)) {
|
|
if ((ret = __db_cursor(sdbp, txn, &sdbc, 0)) != 0)
|
|
goto err;
|
|
|
|
/*
|
|
* We don't care about key or data; we're just doing
|
|
* an existence check.
|
|
*/
|
|
memset(&key, 0, sizeof(DBT));
|
|
memset(&data, 0, sizeof(DBT));
|
|
F_SET(&key, DB_DBT_PARTIAL | DB_DBT_USERMEM);
|
|
F_SET(&data, DB_DBT_PARTIAL | DB_DBT_USERMEM);
|
|
if ((ret = __db_c_get(sdbc, &key, &data,
|
|
(STD_LOCKING(sdbc) ? DB_RMW : 0) |
|
|
DB_FIRST)) == DB_NOTFOUND) {
|
|
build = 1;
|
|
ret = 0;
|
|
}
|
|
|
|
/*
|
|
* Secondary cursors have special refcounting close
|
|
* methods. Be careful.
|
|
*/
|
|
if ((t_ret = __db_c_close(sdbc)) != 0 && ret == 0)
|
|
ret = t_ret;
|
|
|
|
/* Reset for later error check. */
|
|
sdbc = NULL;
|
|
|
|
if (ret != 0)
|
|
goto err;
|
|
}
|
|
|
|
/*
|
|
* Add the secondary to the list on the primary. Do it here
|
|
* so that we see any updates that occur while we're walking
|
|
* the primary.
|
|
*/
|
|
MUTEX_THREAD_LOCK(dbenv, dbp->mutexp);
|
|
|
|
/* See __db_s_next for an explanation of secondary refcounting. */
|
|
DB_ASSERT(sdbp->s_refcnt == 0);
|
|
sdbp->s_refcnt = 1;
|
|
LIST_INSERT_HEAD(&dbp->s_secondaries, sdbp, s_links);
|
|
MUTEX_THREAD_UNLOCK(dbenv, dbp->mutexp);
|
|
|
|
if (build) {
|
|
/*
|
|
* We loop through the primary, putting each item we
|
|
* find into the new secondary.
|
|
*
|
|
* If we're using CDB, opening these two cursors puts us
|
|
* in a bit of a locking tangle: CDB locks are done on the
|
|
* primary, so that we stay deadlock-free, but that means
|
|
* that updating the secondary while we have a read cursor
|
|
* open on the primary will self-block. To get around this,
|
|
* we force the primary cursor to use the same locker ID
|
|
* as the secondary, so they won't conflict. This should
|
|
* be harmless even if we're not using CDB.
|
|
*/
|
|
if ((ret = __db_cursor(sdbp, txn, &sdbc,
|
|
CDB_LOCKING(sdbp->dbenv) ? DB_WRITECURSOR : 0)) != 0)
|
|
goto err;
|
|
if ((ret = __db_cursor_int(dbp,
|
|
txn, dbp->type, PGNO_INVALID, 0, sdbc->locker, &pdbc)) != 0)
|
|
goto err;
|
|
|
|
/* Lock out other threads, now that we have a locker ID. */
|
|
dbp->associate_lid = sdbc->locker;
|
|
|
|
memset(&key, 0, sizeof(DBT));
|
|
memset(&data, 0, sizeof(DBT));
|
|
while ((ret = __db_c_get(pdbc, &key, &data, DB_NEXT)) == 0) {
|
|
memset(&skey, 0, sizeof(DBT));
|
|
if ((ret = callback(sdbp, &key, &data, &skey)) != 0) {
|
|
if (ret == DB_DONOTINDEX)
|
|
continue;
|
|
goto err;
|
|
}
|
|
if ((ret = __db_c_put(sdbc,
|
|
&skey, &key, DB_UPDATE_SECONDARY)) != 0) {
|
|
FREE_IF_NEEDED(sdbp, &skey);
|
|
goto err;
|
|
}
|
|
|
|
FREE_IF_NEEDED(sdbp, &skey);
|
|
}
|
|
if (ret == DB_NOTFOUND)
|
|
ret = 0;
|
|
}
|
|
|
|
err: if (sdbc != NULL && (t_ret = __db_c_close(sdbc)) != 0 && ret == 0)
|
|
ret = t_ret;
|
|
|
|
if (pdbc != NULL && (t_ret = __db_c_close(pdbc)) != 0 && ret == 0)
|
|
ret = t_ret;
|
|
|
|
dbp->associate_lid = DB_LOCK_INVALIDID;
|
|
|
|
return (ret);
|
|
}
|
|
|
|
/*
|
|
* __db_secondary_get --
|
|
* This wrapper function for DB->pget() is the DB->get() function
|
|
* on a database which has been made into a secondary index.
|
|
*/
|
|
static int
|
|
__db_secondary_get(sdbp, txn, skey, data, flags)
|
|
DB *sdbp;
|
|
DB_TXN *txn;
|
|
DBT *skey, *data;
|
|
u_int32_t flags;
|
|
{
|
|
|
|
DB_ASSERT(F_ISSET(sdbp, DB_AM_SECONDARY));
|
|
return (__db_pget_pp(sdbp, txn, skey, NULL, data, flags));
|
|
}
|
|
|
|
/*
|
|
* __db_secondary_close --
|
|
* Wrapper function for DB->close() which we use on secondaries to
|
|
* manage refcounting and make sure we don't close them underneath
|
|
* a primary that is updating.
|
|
*
|
|
* PUBLIC: int __db_secondary_close __P((DB *, u_int32_t));
|
|
*/
|
|
int
|
|
__db_secondary_close(sdbp, flags)
|
|
DB *sdbp;
|
|
u_int32_t flags;
|
|
{
|
|
DB *primary;
|
|
int doclose;
|
|
|
|
doclose = 0;
|
|
primary = sdbp->s_primary;
|
|
|
|
MUTEX_THREAD_LOCK(primary->dbenv, primary->mutexp);
|
|
/*
|
|
* Check the refcount--if it was at 1 when we were called, no
|
|
* thread is currently updating this secondary through the primary,
|
|
* so it's safe to close it for real.
|
|
*
|
|
* If it's not safe to do the close now, we do nothing; the
|
|
* database will actually be closed when the refcount is decremented,
|
|
* which can happen in either __db_s_next or __db_s_done.
|
|
*/
|
|
DB_ASSERT(sdbp->s_refcnt != 0);
|
|
if (--sdbp->s_refcnt == 0) {
|
|
LIST_REMOVE(sdbp, s_links);
|
|
/* We don't want to call close while the mutex is held. */
|
|
doclose = 1;
|
|
}
|
|
MUTEX_THREAD_UNLOCK(primary->dbenv, primary->mutexp);
|
|
|
|
/*
|
|
* sdbp->close is this function; call the real one explicitly if
|
|
* need be.
|
|
*/
|
|
return (doclose ? __db_close(sdbp, NULL, flags) : 0);
|
|
}
|
|
|
|
/*
|
|
* __db_append_primary --
|
|
* Perform the secondary index updates necessary to put(DB_APPEND)
|
|
* a record to a primary database.
|
|
*/
|
|
static int
|
|
__db_append_primary(dbc, key, data)
|
|
DBC *dbc;
|
|
DBT *key, *data;
|
|
{
|
|
DB *dbp, *sdbp;
|
|
DBC *sdbc, *pdbc;
|
|
DBT oldpkey, pkey, pdata, skey;
|
|
int cmp, ret, t_ret;
|
|
|
|
dbp = dbc->dbp;
|
|
sdbp = NULL;
|
|
ret = 0;
|
|
|
|
/*
|
|
* Worrying about partial appends seems a little like worrying
|
|
* about Linear A character encodings. But we support those
|
|
* too if your application understands them.
|
|
*/
|
|
pdbc = NULL;
|
|
if (F_ISSET(data, DB_DBT_PARTIAL) || F_ISSET(key, DB_DBT_PARTIAL)) {
|
|
/*
|
|
* The dbc we were passed is all set to pass things
|
|
* back to the user; we can't safely do a call on it.
|
|
* Dup the cursor, grab the real data item (we don't
|
|
* care what the key is--we've been passed it directly),
|
|
* and use that instead of the data DBT we were passed.
|
|
*
|
|
* Note that we can get away with this simple get because
|
|
* an appended item is by definition new, and the
|
|
* correctly-constructed full data item from this partial
|
|
* put is on the page waiting for us.
|
|
*/
|
|
if ((ret = __db_c_idup(dbc, &pdbc, DB_POSITION)) != 0)
|
|
return (ret);
|
|
memset(&pkey, 0, sizeof(DBT));
|
|
memset(&pdata, 0, sizeof(DBT));
|
|
|
|
if ((ret = __db_c_get(pdbc, &pkey, &pdata, DB_CURRENT)) != 0)
|
|
goto err;
|
|
|
|
key = &pkey;
|
|
data = &pdata;
|
|
}
|
|
|
|
/*
|
|
* Loop through the secondary indices, putting a new item in
|
|
* each that points to the appended item.
|
|
*
|
|
* This is much like the loop in "step 3" in __db_c_put, so
|
|
* I'm not commenting heavily here; it was unclean to excerpt
|
|
* just that section into a common function, but the basic
|
|
* overview is the same here.
|
|
*/
|
|
for (sdbp = __db_s_first(dbp);
|
|
sdbp != NULL && ret == 0; ret = __db_s_next(&sdbp)) {
|
|
memset(&skey, 0, sizeof(DBT));
|
|
if ((ret = sdbp->s_callback(sdbp, key, data, &skey)) != 0) {
|
|
if (ret == DB_DONOTINDEX)
|
|
continue;
|
|
else
|
|
goto err;
|
|
}
|
|
|
|
if ((ret = __db_cursor_int(sdbp, dbc->txn, sdbp->type,
|
|
PGNO_INVALID, 0, dbc->locker, &sdbc)) != 0) {
|
|
FREE_IF_NEEDED(sdbp, &skey);
|
|
goto err;
|
|
}
|
|
if (CDB_LOCKING(sdbp->dbenv)) {
|
|
DB_ASSERT(sdbc->mylock.off == LOCK_INVALID);
|
|
F_SET(sdbc, DBC_WRITER);
|
|
}
|
|
|
|
/*
|
|
* Since we know we have a new primary key, it can't be a
|
|
* duplicate duplicate in the secondary. It can be a
|
|
* duplicate in a secondary that doesn't support duplicates,
|
|
* however, so we need to be careful to avoid an overwrite
|
|
* (which would corrupt our index).
|
|
*/
|
|
if (!F_ISSET(sdbp, DB_AM_DUP)) {
|
|
memset(&oldpkey, 0, sizeof(DBT));
|
|
F_SET(&oldpkey, DB_DBT_MALLOC);
|
|
ret = __db_c_get(sdbc, &skey, &oldpkey,
|
|
DB_SET | (STD_LOCKING(dbc) ? DB_RMW : 0));
|
|
if (ret == 0) {
|
|
cmp = __bam_defcmp(sdbp, &oldpkey, key);
|
|
/*
|
|
* XXX
|
|
* This needs to use the right free function
|
|
* as soon as this is possible.
|
|
*/
|
|
__os_ufree(sdbp->dbenv,
|
|
oldpkey.data);
|
|
if (cmp != 0) {
|
|
__db_err(sdbp->dbenv, "%s%s",
|
|
"Append results in a non-unique secondary key in",
|
|
" an index not configured to support duplicates");
|
|
ret = EINVAL;
|
|
goto err1;
|
|
}
|
|
} else if (ret != DB_NOTFOUND && ret != DB_KEYEMPTY)
|
|
goto err1;
|
|
}
|
|
|
|
ret = __db_c_put(sdbc, &skey, key, DB_UPDATE_SECONDARY);
|
|
|
|
err1: FREE_IF_NEEDED(sdbp, &skey);
|
|
|
|
if ((t_ret = __db_c_close(sdbc)) != 0 && ret == 0)
|
|
ret = t_ret;
|
|
|
|
if (ret != 0)
|
|
goto err;
|
|
}
|
|
|
|
err: if (pdbc != NULL && (t_ret = __db_c_close(pdbc)) != 0 && ret == 0)
|
|
ret = t_ret;
|
|
if (sdbp != NULL && (t_ret = __db_s_done(sdbp)) != 0 && ret == 0)
|
|
ret = t_ret;
|
|
return (ret);
|
|
}
|