mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
47d10d0eca
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
1180 lines
30 KiB
C
1180 lines
30 KiB
C
/*-
|
|
* See the file LICENSE for redistribution information.
|
|
*
|
|
* Copyright (c) 1996-2004
|
|
* Sleepycat Software. All rights reserved.
|
|
*
|
|
* $Id: log_get.c,v 11.110 2004/09/17 22:00:31 mjc Exp $
|
|
*/
|
|
|
|
#include "db_config.h"
|
|
|
|
#ifndef NO_SYSTEM_INCLUDES
|
|
#include <sys/types.h>
|
|
|
|
#include <string.h>
|
|
#endif
|
|
|
|
#include "db_int.h"
|
|
#include "dbinc/crypto.h"
|
|
#include "dbinc/db_page.h"
|
|
#include "dbinc/hmac.h"
|
|
#include "dbinc/log.h"
|
|
#include "dbinc/hash.h"
|
|
|
|
typedef enum { L_ALREADY, L_ACQUIRED, L_NONE } RLOCK;
|
|
|
|
static int __log_c_close_pp __P((DB_LOGC *, u_int32_t));
|
|
static int __log_c_get_pp __P((DB_LOGC *, DB_LSN *, DBT *, u_int32_t));
|
|
static int __log_c_get_int __P((DB_LOGC *, DB_LSN *, DBT *, u_int32_t));
|
|
static int __log_c_hdrchk __P((DB_LOGC *, DB_LSN *, HDR *, int *));
|
|
static int __log_c_incursor __P((DB_LOGC *, DB_LSN *, HDR *, u_int8_t **));
|
|
static int __log_c_inregion __P((DB_LOGC *,
|
|
DB_LSN *, RLOCK *, DB_LSN *, HDR *, u_int8_t **));
|
|
static int __log_c_io __P((DB_LOGC *,
|
|
u_int32_t, u_int32_t, void *, size_t *, int *));
|
|
static int __log_c_ondisk __P((DB_LOGC *,
|
|
DB_LSN *, DB_LSN *, u_int32_t, HDR *, u_int8_t **, int *));
|
|
static int __log_c_set_maxrec __P((DB_LOGC *, char *));
|
|
static int __log_c_shortread __P((DB_LOGC *, DB_LSN *, int));
|
|
|
|
/*
|
|
* __log_cursor_pp --
|
|
* DB_ENV->log_cursor
|
|
*
|
|
* PUBLIC: int __log_cursor_pp __P((DB_ENV *, DB_LOGC **, u_int32_t));
|
|
*/
|
|
int
|
|
__log_cursor_pp(dbenv, logcp, flags)
|
|
DB_ENV *dbenv;
|
|
DB_LOGC **logcp;
|
|
u_int32_t flags;
|
|
{
|
|
int rep_check, ret;
|
|
|
|
PANIC_CHECK(dbenv);
|
|
ENV_REQUIRES_CONFIG(dbenv,
|
|
dbenv->lg_handle, "DB_ENV->log_cursor", DB_INIT_LOG);
|
|
|
|
/* Validate arguments. */
|
|
if ((ret = __db_fchk(dbenv, "DB_ENV->log_cursor", flags, 0)) != 0)
|
|
return (ret);
|
|
|
|
rep_check = IS_ENV_REPLICATED(dbenv) ? 1 : 0;
|
|
if (rep_check)
|
|
__env_rep_enter(dbenv);
|
|
ret = __log_cursor(dbenv, logcp);
|
|
if (rep_check)
|
|
__env_db_rep_exit(dbenv);
|
|
return (ret);
|
|
}
|
|
|
|
/*
|
|
* __log_cursor --
|
|
* Create a log cursor.
|
|
*
|
|
* PUBLIC: int __log_cursor __P((DB_ENV *, DB_LOGC **));
|
|
*/
|
|
int
|
|
__log_cursor(dbenv, logcp)
|
|
DB_ENV *dbenv;
|
|
DB_LOGC **logcp;
|
|
{
|
|
DB_LOGC *logc;
|
|
int ret;
|
|
|
|
*logcp = NULL;
|
|
|
|
/* Allocate memory for the cursor. */
|
|
if ((ret = __os_calloc(dbenv, 1, sizeof(DB_LOGC), &logc)) != 0)
|
|
return (ret);
|
|
|
|
logc->bp_size = DB_LOGC_BUF_SIZE;
|
|
/*
|
|
* Set this to something positive.
|
|
*/
|
|
logc->bp_maxrec = MEGABYTE;
|
|
if ((ret = __os_malloc(dbenv, logc->bp_size, &logc->bp)) != 0) {
|
|
__os_free(dbenv, logc);
|
|
return (ret);
|
|
}
|
|
|
|
logc->dbenv = dbenv;
|
|
logc->close = __log_c_close_pp;
|
|
logc->get = __log_c_get_pp;
|
|
|
|
*logcp = logc;
|
|
return (0);
|
|
}
|
|
|
|
/*
|
|
* __log_c_close_pp --
|
|
* DB_LOGC->close pre/post processing.
|
|
*/
|
|
static int
|
|
__log_c_close_pp(logc, flags)
|
|
DB_LOGC *logc;
|
|
u_int32_t flags;
|
|
{
|
|
DB_ENV *dbenv;
|
|
int rep_check, ret;
|
|
|
|
dbenv = logc->dbenv;
|
|
|
|
PANIC_CHECK(dbenv);
|
|
if ((ret = __db_fchk(dbenv, "DB_LOGC->close", flags, 0)) != 0)
|
|
return (ret);
|
|
|
|
rep_check = IS_ENV_REPLICATED(dbenv) ? 1 : 0;
|
|
if (rep_check)
|
|
__env_rep_enter(dbenv);
|
|
ret = __log_c_close(logc);
|
|
if (rep_check)
|
|
__env_db_rep_exit(dbenv);
|
|
return (ret);
|
|
}
|
|
|
|
/*
|
|
* __log_c_close --
|
|
* DB_LOGC->close.
|
|
*
|
|
* PUBLIC: int __log_c_close __P((DB_LOGC *));
|
|
*/
|
|
int
|
|
__log_c_close(logc)
|
|
DB_LOGC *logc;
|
|
{
|
|
DB_ENV *dbenv;
|
|
|
|
dbenv = logc->dbenv;
|
|
|
|
if (logc->c_fhp != NULL) {
|
|
(void)__os_closehandle(dbenv, logc->c_fhp);
|
|
logc->c_fhp = NULL;
|
|
}
|
|
|
|
if (logc->c_dbt.data != NULL)
|
|
__os_free(dbenv, logc->c_dbt.data);
|
|
|
|
__os_free(dbenv, logc->bp);
|
|
__os_free(dbenv, logc);
|
|
|
|
return (0);
|
|
}
|
|
|
|
/*
|
|
* __log_c_get_pp --
|
|
* DB_LOGC->get pre/post processing.
|
|
*/
|
|
static int
|
|
__log_c_get_pp(logc, alsn, dbt, flags)
|
|
DB_LOGC *logc;
|
|
DB_LSN *alsn;
|
|
DBT *dbt;
|
|
u_int32_t flags;
|
|
{
|
|
DB_ENV *dbenv;
|
|
int rep_check, ret;
|
|
|
|
dbenv = logc->dbenv;
|
|
|
|
PANIC_CHECK(dbenv);
|
|
|
|
/* Validate arguments. */
|
|
switch (flags) {
|
|
case DB_CURRENT:
|
|
case DB_FIRST:
|
|
case DB_LAST:
|
|
case DB_NEXT:
|
|
case DB_PREV:
|
|
break;
|
|
case DB_SET:
|
|
if (IS_ZERO_LSN(*alsn)) {
|
|
__db_err(dbenv, "DB_LOGC->get: invalid LSN: %lu/%lu",
|
|
(u_long)alsn->file, (u_long)alsn->offset);
|
|
return (EINVAL);
|
|
}
|
|
break;
|
|
default:
|
|
return (__db_ferr(dbenv, "DB_LOGC->get", 1));
|
|
}
|
|
|
|
rep_check = IS_ENV_REPLICATED(dbenv) ? 1 : 0;
|
|
if (rep_check)
|
|
__env_rep_enter(dbenv);
|
|
ret = __log_c_get(logc, alsn, dbt, flags);
|
|
if (rep_check)
|
|
__env_db_rep_exit(dbenv);
|
|
return (ret);
|
|
}
|
|
|
|
/*
|
|
* __log_c_get --
|
|
* DB_LOGC->get.
|
|
*
|
|
* PUBLIC: int __log_c_get __P((DB_LOGC *, DB_LSN *, DBT *, u_int32_t));
|
|
*/
|
|
int
|
|
__log_c_get(logc, alsn, dbt, flags)
|
|
DB_LOGC *logc;
|
|
DB_LSN *alsn;
|
|
DBT *dbt;
|
|
u_int32_t flags;
|
|
{
|
|
DB_ENV *dbenv;
|
|
DB_LSN saved_lsn;
|
|
int ret;
|
|
|
|
dbenv = logc->dbenv;
|
|
|
|
/*
|
|
* On error, we take care not to overwrite the caller's LSN. This
|
|
* is because callers looking for the end of the log loop using the
|
|
* DB_NEXT flag, and expect to take the last successful lsn out of
|
|
* the passed-in structure after DB_LOGC->get fails with DB_NOTFOUND.
|
|
*
|
|
* !!!
|
|
* This line is often flagged an uninitialized memory read during a
|
|
* Purify or similar tool run, as the application didn't initialize
|
|
* *alsn. If the application isn't setting the DB_SET flag, there is
|
|
* no reason it should have initialized *alsn, but we can't know that
|
|
* and we want to make sure we never overwrite whatever the application
|
|
* put in there.
|
|
*/
|
|
saved_lsn = *alsn;
|
|
|
|
/*
|
|
* If we get one of the log's header records as a result of doing a
|
|
* DB_FIRST, DB_NEXT, DB_LAST or DB_PREV, repeat the operation, log
|
|
* file header records aren't useful to applications.
|
|
*/
|
|
if ((ret = __log_c_get_int(logc, alsn, dbt, flags)) != 0) {
|
|
*alsn = saved_lsn;
|
|
return (ret);
|
|
}
|
|
if (alsn->offset == 0 && (flags == DB_FIRST ||
|
|
flags == DB_NEXT || flags == DB_LAST || flags == DB_PREV)) {
|
|
switch (flags) {
|
|
case DB_FIRST:
|
|
flags = DB_NEXT;
|
|
break;
|
|
case DB_LAST:
|
|
flags = DB_PREV;
|
|
break;
|
|
case DB_NEXT:
|
|
case DB_PREV:
|
|
default:
|
|
break;
|
|
}
|
|
if (F_ISSET(dbt, DB_DBT_MALLOC)) {
|
|
__os_free(dbenv, dbt->data);
|
|
dbt->data = NULL;
|
|
}
|
|
if ((ret = __log_c_get_int(logc, alsn, dbt, flags)) != 0) {
|
|
*alsn = saved_lsn;
|
|
return (ret);
|
|
}
|
|
}
|
|
|
|
return (0);
|
|
}
|
|
|
|
/*
|
|
* __log_c_get_int --
|
|
* Get a log record; internal version.
|
|
*/
|
|
static int
|
|
__log_c_get_int(logc, alsn, dbt, flags)
|
|
DB_LOGC *logc;
|
|
DB_LSN *alsn;
|
|
DBT *dbt;
|
|
u_int32_t flags;
|
|
{
|
|
DB_CIPHER *db_cipher;
|
|
DB_ENV *dbenv;
|
|
DB_LOG *dblp;
|
|
DB_LSN last_lsn, nlsn;
|
|
HDR hdr;
|
|
LOG *lp;
|
|
RLOCK rlock;
|
|
logfile_validity status;
|
|
u_int32_t cnt;
|
|
u_int8_t *rp;
|
|
int eof, is_hmac, ret;
|
|
|
|
dbenv = logc->dbenv;
|
|
dblp = dbenv->lg_handle;
|
|
lp = dblp->reginfo.primary;
|
|
is_hmac = 0;
|
|
|
|
/*
|
|
* We don't acquire the log region lock until we need it, and we
|
|
* release it as soon as we're done.
|
|
*/
|
|
rlock = F_ISSET(logc, DB_LOG_LOCKED) ? L_ALREADY : L_NONE;
|
|
|
|
nlsn = logc->c_lsn;
|
|
switch (flags) {
|
|
case DB_NEXT: /* Next log record. */
|
|
if (!IS_ZERO_LSN(nlsn)) {
|
|
/* Increment the cursor by the cursor record size. */
|
|
nlsn.offset += logc->c_len;
|
|
break;
|
|
}
|
|
flags = DB_FIRST;
|
|
/* FALLTHROUGH */
|
|
case DB_FIRST: /* First log record. */
|
|
/* Find the first log file. */
|
|
if ((ret = __log_find(dblp, 1, &cnt, &status)) != 0)
|
|
goto err;
|
|
|
|
/*
|
|
* DB_LV_INCOMPLETE:
|
|
* Theoretically, the log file we want could be created
|
|
* but not yet written, the "first" log record must be
|
|
* in the log buffer.
|
|
* DB_LV_NORMAL:
|
|
* DB_LV_OLD_READABLE:
|
|
* We found a log file we can read.
|
|
* DB_LV_NONEXISTENT:
|
|
* No log files exist, the "first" log record must be in
|
|
* the log buffer.
|
|
* DB_LV_OLD_UNREADABLE:
|
|
* No readable log files exist, we're at the cross-over
|
|
* point between two versions. The "first" log record
|
|
* must be in the log buffer.
|
|
*/
|
|
switch (status) {
|
|
case DB_LV_INCOMPLETE:
|
|
DB_ASSERT(lp->lsn.file == cnt);
|
|
/* FALLTHROUGH */
|
|
case DB_LV_NORMAL:
|
|
case DB_LV_OLD_READABLE:
|
|
nlsn.file = cnt;
|
|
break;
|
|
case DB_LV_NONEXISTENT:
|
|
nlsn.file = 1;
|
|
DB_ASSERT(lp->lsn.file == nlsn.file);
|
|
break;
|
|
case DB_LV_OLD_UNREADABLE:
|
|
nlsn.file = cnt + 1;
|
|
DB_ASSERT(lp->lsn.file == nlsn.file);
|
|
break;
|
|
}
|
|
nlsn.offset = 0;
|
|
break;
|
|
case DB_CURRENT: /* Current log record. */
|
|
break;
|
|
case DB_PREV: /* Previous log record. */
|
|
if (!IS_ZERO_LSN(nlsn)) {
|
|
/* If at start-of-file, move to the previous file. */
|
|
if (nlsn.offset == 0) {
|
|
if (nlsn.file == 1) {
|
|
ret = DB_NOTFOUND;
|
|
goto err;
|
|
}
|
|
if ((!lp->db_log_inmemory &&
|
|
(__log_valid(dblp, nlsn.file - 1, 0, NULL,
|
|
0, &status) != 0 ||
|
|
(status != DB_LV_NORMAL &&
|
|
status != DB_LV_OLD_READABLE)))) {
|
|
ret = DB_NOTFOUND;
|
|
goto err;
|
|
}
|
|
|
|
--nlsn.file;
|
|
}
|
|
nlsn.offset = logc->c_prev;
|
|
break;
|
|
}
|
|
/* FALLTHROUGH */
|
|
case DB_LAST: /* Last log record. */
|
|
if (rlock == L_NONE) {
|
|
rlock = L_ACQUIRED;
|
|
R_LOCK(dbenv, &dblp->reginfo);
|
|
}
|
|
nlsn.file = lp->lsn.file;
|
|
nlsn.offset = lp->lsn.offset - lp->len;
|
|
break;
|
|
case DB_SET: /* Set log record. */
|
|
nlsn = *alsn;
|
|
break;
|
|
default:
|
|
DB_ASSERT(0);
|
|
ret = EINVAL;
|
|
goto err;
|
|
}
|
|
|
|
if (0) { /* Move to the next file. */
|
|
next_file: ++nlsn.file;
|
|
nlsn.offset = 0;
|
|
}
|
|
|
|
/*
|
|
* The above switch statement should have set nlsn to the lsn of
|
|
* the requested record.
|
|
*/
|
|
|
|
if (CRYPTO_ON(dbenv)) {
|
|
hdr.size = HDR_CRYPTO_SZ;
|
|
is_hmac = 1;
|
|
} else {
|
|
hdr.size = HDR_NORMAL_SZ;
|
|
is_hmac = 0;
|
|
}
|
|
/* Check to see if the record is in the cursor's buffer. */
|
|
if ((ret = __log_c_incursor(logc, &nlsn, &hdr, &rp)) != 0)
|
|
goto err;
|
|
if (rp != NULL)
|
|
goto cksum;
|
|
|
|
/*
|
|
* Look to see if we're moving backward in the log with the last record
|
|
* coming from the disk -- it means the record can't be in the region's
|
|
* buffer. Else, check the region's buffer.
|
|
*
|
|
* If the record isn't in the region's buffer, then either logs are
|
|
* in-memory, and we're done, or we're going to have to read the
|
|
* record from disk. We want to make a point of not reading past the
|
|
* end of the logical log (after recovery, there may be data after the
|
|
* end of the logical log, not to mention the log file may have been
|
|
* pre-allocated). So, zero out last_lsn, and initialize it inside
|
|
* __log_c_inregion -- if it's still zero when we check it in
|
|
* __log_c_ondisk, that's OK, it just means the logical end of the log
|
|
* isn't an issue for this request.
|
|
*/
|
|
ZERO_LSN(last_lsn);
|
|
if (!F_ISSET(logc, DB_LOG_DISK) ||
|
|
log_compare(&nlsn, &logc->c_lsn) > 0) {
|
|
F_CLR(logc, DB_LOG_DISK);
|
|
|
|
if ((ret = __log_c_inregion(logc,
|
|
&nlsn, &rlock, &last_lsn, &hdr, &rp)) != 0)
|
|
goto err;
|
|
if (rp != NULL)
|
|
goto cksum;
|
|
if (lp->db_log_inmemory)
|
|
goto nohdr;
|
|
}
|
|
|
|
/*
|
|
* We have to read from an on-disk file to retrieve the record.
|
|
* If we ever can't retrieve the record at offset 0, we're done,
|
|
* return EOF/DB_NOTFOUND.
|
|
*
|
|
* Discard the region lock if we're still holding it, the on-disk
|
|
* reading routines don't need it.
|
|
*/
|
|
if (rlock == L_ACQUIRED) {
|
|
rlock = L_NONE;
|
|
R_UNLOCK(dbenv, &dblp->reginfo);
|
|
}
|
|
if ((ret = __log_c_ondisk(
|
|
logc, &nlsn, &last_lsn, flags, &hdr, &rp, &eof)) != 0)
|
|
goto err;
|
|
if (eof) {
|
|
/*
|
|
* Only DB_NEXT automatically moves to the next file, and
|
|
* it only happens once.
|
|
*/
|
|
if (flags != DB_NEXT || nlsn.offset == 0)
|
|
return (DB_NOTFOUND);
|
|
goto next_file;
|
|
}
|
|
F_SET(logc, DB_LOG_DISK);
|
|
|
|
cksum: /*
|
|
* Discard the region lock if we're still holding it. (The path to
|
|
* get here is that we acquired the lock because of the caller's
|
|
* flag argument, but we found the record in the cursor's buffer.
|
|
* Improbable, but it's easy to avoid.
|
|
*/
|
|
if (rlock == L_ACQUIRED) {
|
|
rlock = L_NONE;
|
|
R_UNLOCK(dbenv, &dblp->reginfo);
|
|
}
|
|
|
|
/*
|
|
* Checksum: there are two types of errors -- a configuration error
|
|
* or a checksum mismatch. The former is always bad. The latter is
|
|
* OK if we're searching for the end of the log, and very, very bad
|
|
* if we're reading random log records.
|
|
*/
|
|
db_cipher = dbenv->crypto_handle;
|
|
if ((ret = __db_check_chksum(dbenv, db_cipher,
|
|
hdr.chksum, rp + hdr.size, hdr.len - hdr.size, is_hmac)) != 0) {
|
|
if (F_ISSET(logc, DB_LOG_SILENT_ERR)) {
|
|
if (ret == 0 || ret == -1)
|
|
ret = EIO;
|
|
} else if (ret == -1) {
|
|
__db_err(dbenv,
|
|
"DB_LOGC->get: log record LSN %lu/%lu: checksum mismatch",
|
|
(u_long)nlsn.file, (u_long)nlsn.offset);
|
|
__db_err(dbenv,
|
|
"DB_LOGC->get: catastrophic recovery may be required");
|
|
ret = __db_panic(dbenv, DB_RUNRECOVERY);
|
|
}
|
|
goto err;
|
|
}
|
|
|
|
/*
|
|
* If we got a 0-length record, that means we're in the midst of
|
|
* some bytes that got 0'd as the result of a vtruncate. We're
|
|
* going to have to retry.
|
|
*/
|
|
if (hdr.len == 0) {
|
|
nohdr: switch (flags) {
|
|
case DB_FIRST:
|
|
case DB_NEXT:
|
|
/* Zero'd records always indicate the end of a file. */
|
|
goto next_file;
|
|
case DB_LAST:
|
|
case DB_PREV:
|
|
/*
|
|
* We should never get here. If we recover a log
|
|
* file with 0's at the end, we'll treat the 0'd
|
|
* headers as the end of log and ignore them. If
|
|
* we're reading backwards from another file, then
|
|
* the first record in that new file should have its
|
|
* prev field set correctly.
|
|
*/
|
|
__db_err(dbenv,
|
|
"Encountered zero length records while traversing backwards");
|
|
DB_ASSERT(0);
|
|
ret = __db_panic(dbenv, DB_RUNRECOVERY);
|
|
goto err;
|
|
case DB_SET:
|
|
default:
|
|
/* Return the 0-length record. */
|
|
break;
|
|
}
|
|
}
|
|
|
|
/* Copy the record into the user's DBT. */
|
|
if ((ret = __db_retcopy(dbenv, dbt, rp + hdr.size,
|
|
(u_int32_t)(hdr.len - hdr.size),
|
|
&logc->c_dbt.data, &logc->c_dbt.ulen)) != 0)
|
|
goto err;
|
|
|
|
if (CRYPTO_ON(dbenv)) {
|
|
if ((ret = db_cipher->decrypt(dbenv, db_cipher->data,
|
|
hdr.iv, dbt->data, hdr.len - hdr.size)) != 0) {
|
|
ret = EAGAIN;
|
|
goto err;
|
|
}
|
|
/*
|
|
* Return the original log record size to the user,
|
|
* even though we've allocated more than that, possibly.
|
|
* The log record is decrypted in the user dbt, not in
|
|
* the buffer, so we must do this here after decryption,
|
|
* not adjust the len passed to the __db_retcopy call.
|
|
*/
|
|
dbt->size = hdr.orig_size;
|
|
}
|
|
|
|
/* Update the cursor and the returned LSN. */
|
|
*alsn = nlsn;
|
|
logc->c_lsn = nlsn;
|
|
logc->c_len = hdr.len;
|
|
logc->c_prev = hdr.prev;
|
|
|
|
err: if (rlock == L_ACQUIRED)
|
|
R_UNLOCK(dbenv, &dblp->reginfo);
|
|
|
|
return (ret);
|
|
}
|
|
|
|
/*
|
|
* __log_c_incursor --
|
|
* Check to see if the requested record is in the cursor's buffer.
|
|
*/
|
|
static int
|
|
__log_c_incursor(logc, lsn, hdr, pp)
|
|
DB_LOGC *logc;
|
|
DB_LSN *lsn;
|
|
HDR *hdr;
|
|
u_int8_t **pp;
|
|
{
|
|
u_int8_t *p;
|
|
int eof;
|
|
|
|
*pp = NULL;
|
|
|
|
/*
|
|
* Test to see if the requested LSN could be part of the cursor's
|
|
* buffer.
|
|
*
|
|
* The record must be part of the same file as the cursor's buffer.
|
|
* The record must start at a byte offset equal to or greater than
|
|
* the cursor buffer.
|
|
* The record must not start at a byte offset after the cursor
|
|
* buffer's end.
|
|
*/
|
|
if (logc->bp_lsn.file != lsn->file)
|
|
return (0);
|
|
if (logc->bp_lsn.offset > lsn->offset)
|
|
return (0);
|
|
if (logc->bp_lsn.offset + logc->bp_rlen <= lsn->offset + hdr->size)
|
|
return (0);
|
|
|
|
/*
|
|
* Read the record's header and check if the record is entirely held
|
|
* in the buffer. If the record is not entirely held, get it again.
|
|
* (The only advantage in having part of the record locally is that
|
|
* we might avoid a system call because we already have the HDR in
|
|
* memory.)
|
|
*
|
|
* If the header check fails for any reason, it must be because the
|
|
* LSN is bogus. Fail hard.
|
|
*/
|
|
p = logc->bp + (lsn->offset - logc->bp_lsn.offset);
|
|
memcpy(hdr, p, hdr->size);
|
|
if (__log_c_hdrchk(logc, lsn, hdr, &eof))
|
|
return (DB_NOTFOUND);
|
|
if (eof || logc->bp_lsn.offset + logc->bp_rlen < lsn->offset + hdr->len)
|
|
return (0);
|
|
|
|
*pp = p; /* Success. */
|
|
|
|
return (0);
|
|
}
|
|
|
|
/*
|
|
* __log_c_inregion --
|
|
* Check to see if the requested record is in the region's buffer.
|
|
*/
|
|
static int
|
|
__log_c_inregion(logc, lsn, rlockp, last_lsn, hdr, pp)
|
|
DB_LOGC *logc;
|
|
DB_LSN *lsn, *last_lsn;
|
|
RLOCK *rlockp;
|
|
HDR *hdr;
|
|
u_int8_t **pp;
|
|
{
|
|
DB_ENV *dbenv;
|
|
DB_LOG *dblp;
|
|
LOG *lp;
|
|
size_t b_region, len, nr;
|
|
u_int32_t b_disk;
|
|
int eof, ret;
|
|
u_int8_t *p;
|
|
|
|
dbenv = logc->dbenv;
|
|
dblp = dbenv->lg_handle;
|
|
lp = ((DB_LOG *)logc->dbenv->lg_handle)->reginfo.primary;
|
|
|
|
ret = 0;
|
|
b_region = 0;
|
|
*pp = NULL;
|
|
|
|
/* If we haven't yet acquired the log region lock, do so. */
|
|
if (*rlockp == L_NONE) {
|
|
*rlockp = L_ACQUIRED;
|
|
R_LOCK(dbenv, &dblp->reginfo);
|
|
}
|
|
|
|
/*
|
|
* The routines to read from disk must avoid reading past the logical
|
|
* end of the log, so pass that information back to it.
|
|
*
|
|
* Since they're reading directly from the disk, they must also avoid
|
|
* reading past the offset we've written out. If the log was
|
|
* truncated, it's possible that there are zeroes or garbage on
|
|
* disk after this offset, and the logical end of the log can
|
|
* come later than this point if the log buffer isn't empty.
|
|
*/
|
|
*last_lsn = lp->lsn;
|
|
if (!lp->db_log_inmemory && last_lsn->offset > lp->w_off)
|
|
last_lsn->offset = lp->w_off;
|
|
|
|
/*
|
|
* Test to see if the requested LSN could be part of the region's
|
|
* buffer.
|
|
*
|
|
* During recovery, we read the log files getting the information to
|
|
* initialize the region. In that case, the region's lsn field will
|
|
* not yet have been filled in, use only the disk.
|
|
*
|
|
* The record must not start at a byte offset after the region buffer's
|
|
* end, since that means the request is for a record after the end of
|
|
* the log. Do this test even if the region's buffer is empty -- after
|
|
* recovery, the log files may continue past the declared end-of-log,
|
|
* and the disk reading routine will incorrectly attempt to read the
|
|
* remainder of the log.
|
|
*
|
|
* Otherwise, test to see if the region's buffer actually has what we
|
|
* want:
|
|
*
|
|
* The buffer must have some useful content.
|
|
* The record must be in the same file as the region's buffer and must
|
|
* start at a byte offset equal to or greater than the region's buffer.
|
|
*/
|
|
if (IS_ZERO_LSN(lp->lsn))
|
|
return (0);
|
|
if (log_compare(lsn, &lp->lsn) >= 0)
|
|
return (DB_NOTFOUND);
|
|
else if (lp->db_log_inmemory) {
|
|
if ((ret = __log_inmem_lsnoff(dblp, lsn, &b_region)) != 0)
|
|
return (ret);
|
|
} else if (lp->b_off == 0 || log_compare(lsn, &lp->f_lsn) < 0)
|
|
return (0);
|
|
|
|
/*
|
|
* The current contents of the cursor's buffer will be useless for a
|
|
* future call, we're about to overwrite it -- trash it rather than
|
|
* try and make it look correct.
|
|
*/
|
|
logc->bp_rlen = 0;
|
|
|
|
/*
|
|
* If the requested LSN is greater than the region buffer's first
|
|
* byte, we know the entire record is in the buffer on a good LSN.
|
|
*
|
|
* If we're given a bad LSN, the "entire" record might not be in
|
|
* our buffer in order to fail at the chksum. __log_c_hdrchk made
|
|
* sure our dest buffer fits, via bp_maxrec, but we also need to
|
|
* make sure we don't run off the end of this buffer, the src.
|
|
*
|
|
* There is one case where the header check can fail: on a scan through
|
|
* in-memory logs, when we reach the end of a file we can read an empty
|
|
* heady. In that case, it's safe to return zero, here: it will be
|
|
* caught in our caller. Otherwise, the LSN is bogus. Fail hard.
|
|
*/
|
|
if (lp->db_log_inmemory || log_compare(lsn, &lp->f_lsn) > 0) {
|
|
if (!lp->db_log_inmemory)
|
|
b_region = lsn->offset - lp->w_off;
|
|
__log_inmem_copyout(dblp, b_region, hdr, hdr->size);
|
|
if (__log_c_hdrchk(logc, lsn, hdr, &eof) != 0)
|
|
return (DB_NOTFOUND);
|
|
if (eof)
|
|
return (0);
|
|
if (lp->db_log_inmemory) {
|
|
if (RINGBUF_LEN(lp, b_region, lp->b_off) < hdr->len)
|
|
return (DB_NOTFOUND);
|
|
} else if (lsn->offset + hdr->len > lp->w_off + lp->buffer_size)
|
|
return (DB_NOTFOUND);
|
|
if (logc->bp_size <= hdr->len) {
|
|
len = (size_t)DB_ALIGN(hdr->len * 2, 128);
|
|
if ((ret =
|
|
__os_realloc(logc->dbenv, len, &logc->bp)) != 0)
|
|
return (ret);
|
|
logc->bp_size = (u_int32_t)len;
|
|
}
|
|
__log_inmem_copyout(dblp, b_region, logc->bp, hdr->len);
|
|
*pp = logc->bp;
|
|
return (0);
|
|
}
|
|
|
|
DB_ASSERT(!lp->db_log_inmemory);
|
|
|
|
/*
|
|
* There's a partial record, that is, the requested record starts
|
|
* in a log file and finishes in the region buffer. We have to
|
|
* find out how many bytes of the record are in the region buffer
|
|
* so we can copy them out into the cursor buffer. First, check
|
|
* to see if the requested record is the only record in the region
|
|
* buffer, in which case we should copy the entire region buffer.
|
|
*
|
|
* Else, walk back through the region's buffer to find the first LSN
|
|
* after the record that crosses the buffer boundary -- we can detect
|
|
* that LSN, because its "prev" field will reference the record we
|
|
* want. The bytes we need to copy from the region buffer are the
|
|
* bytes up to the record we find. The bytes we'll need to allocate
|
|
* to hold the log record are the bytes between the two offsets.
|
|
*/
|
|
b_disk = lp->w_off - lsn->offset;
|
|
if (lp->b_off <= lp->len)
|
|
b_region = (u_int32_t)lp->b_off;
|
|
else
|
|
for (p = dblp->bufp + (lp->b_off - lp->len);;) {
|
|
memcpy(hdr, p, hdr->size);
|
|
if (hdr->prev == lsn->offset) {
|
|
b_region = (u_int32_t)(p - dblp->bufp);
|
|
break;
|
|
}
|
|
p = dblp->bufp + (hdr->prev - lp->w_off);
|
|
}
|
|
|
|
/*
|
|
* If we don't have enough room for the record, we have to allocate
|
|
* space. We have to do it while holding the region lock, which is
|
|
* truly annoying, but there's no way around it. This call is why
|
|
* we allocate cursor buffer space when allocating the cursor instead
|
|
* of waiting.
|
|
*/
|
|
if (logc->bp_size <= b_region + b_disk) {
|
|
len = (size_t)DB_ALIGN((b_region + b_disk) * 2, 128);
|
|
if ((ret = __os_realloc(logc->dbenv, len, &logc->bp)) != 0)
|
|
return (ret);
|
|
logc->bp_size = (u_int32_t)len;
|
|
}
|
|
|
|
/* Copy the region's bytes to the end of the cursor's buffer. */
|
|
p = (logc->bp + logc->bp_size) - b_region;
|
|
memcpy(p, dblp->bufp, b_region);
|
|
|
|
/* Release the region lock. */
|
|
if (*rlockp == L_ACQUIRED) {
|
|
*rlockp = L_NONE;
|
|
R_UNLOCK(dbenv, &dblp->reginfo);
|
|
}
|
|
|
|
/*
|
|
* Read the rest of the information from disk. Neither short reads
|
|
* or EOF are acceptable, the bytes we want had better be there.
|
|
*/
|
|
if (b_disk != 0) {
|
|
p -= b_disk;
|
|
nr = b_disk;
|
|
if ((ret = __log_c_io(
|
|
logc, lsn->file, lsn->offset, p, &nr, NULL)) != 0)
|
|
return (ret);
|
|
if (nr < b_disk)
|
|
return (__log_c_shortread(logc, lsn, 0));
|
|
}
|
|
|
|
/* Copy the header information into the caller's structure. */
|
|
memcpy(hdr, p, hdr->size);
|
|
|
|
*pp = p;
|
|
return (0);
|
|
}
|
|
|
|
/*
|
|
* __log_c_ondisk --
|
|
* Read a record off disk.
|
|
*/
|
|
static int
|
|
__log_c_ondisk(logc, lsn, last_lsn, flags, hdr, pp, eofp)
|
|
DB_LOGC *logc;
|
|
DB_LSN *lsn, *last_lsn;
|
|
u_int32_t flags;
|
|
int *eofp;
|
|
HDR *hdr;
|
|
u_int8_t **pp;
|
|
{
|
|
DB_ENV *dbenv;
|
|
size_t len, nr;
|
|
u_int32_t offset;
|
|
int ret;
|
|
|
|
dbenv = logc->dbenv;
|
|
*eofp = 0;
|
|
|
|
nr = hdr->size;
|
|
if ((ret =
|
|
__log_c_io(logc, lsn->file, lsn->offset, hdr, &nr, eofp)) != 0)
|
|
return (ret);
|
|
if (*eofp)
|
|
return (0);
|
|
|
|
/*
|
|
* If the read was successful, but we can't read a full header, assume
|
|
* we've hit EOF. We can't check that the header has been partially
|
|
* zeroed out, but it's unlikely that this is caused by a write failure
|
|
* since the header is written as a single write call and it's less
|
|
* than sector.
|
|
*/
|
|
if (nr < hdr->size) {
|
|
*eofp = 1;
|
|
return (0);
|
|
}
|
|
|
|
/* Check the HDR. */
|
|
if ((ret = __log_c_hdrchk(logc, lsn, hdr, eofp)) != 0)
|
|
return (ret);
|
|
if (*eofp)
|
|
return (0);
|
|
|
|
/*
|
|
* Regardless of how we return, the previous contents of the cursor's
|
|
* buffer are useless -- trash it.
|
|
*/
|
|
logc->bp_rlen = 0;
|
|
|
|
/*
|
|
* Otherwise, we now (finally!) know how big the record is. (Maybe
|
|
* we should have just stuck the length of the record into the LSN!?)
|
|
* Make sure we have enough space.
|
|
*/
|
|
if (logc->bp_size <= hdr->len) {
|
|
len = (size_t)DB_ALIGN(hdr->len * 2, 128);
|
|
if ((ret = __os_realloc(dbenv, len, &logc->bp)) != 0)
|
|
return (ret);
|
|
logc->bp_size = (u_int32_t)len;
|
|
}
|
|
|
|
/*
|
|
* If we're moving forward in the log file, read this record in at the
|
|
* beginning of the buffer. Otherwise, read this record in at the end
|
|
* of the buffer, making sure we don't try and read before the start
|
|
* of the file. (We prefer positioning at the end because transaction
|
|
* aborts use DB_SET to move backward through the log and we might get
|
|
* lucky.)
|
|
*
|
|
* Read a buffer's worth, without reading past the logical EOF. The
|
|
* last_lsn may be a zero LSN, but that's OK, the test works anyway.
|
|
*/
|
|
if (flags == DB_FIRST || flags == DB_NEXT)
|
|
offset = lsn->offset;
|
|
else if (lsn->offset + hdr->len < logc->bp_size)
|
|
offset = 0;
|
|
else
|
|
offset = (lsn->offset + hdr->len) - logc->bp_size;
|
|
|
|
nr = logc->bp_size;
|
|
if (lsn->file == last_lsn->file && offset + nr >= last_lsn->offset)
|
|
nr = last_lsn->offset - offset;
|
|
|
|
if ((ret =
|
|
__log_c_io(logc, lsn->file, offset, logc->bp, &nr, eofp)) != 0)
|
|
return (ret);
|
|
|
|
/*
|
|
* We should have at least gotten the bytes up-to-and-including the
|
|
* record we're reading.
|
|
*/
|
|
if (nr < (lsn->offset + hdr->len) - offset)
|
|
return (__log_c_shortread(logc, lsn, 1));
|
|
|
|
/*
|
|
* Set up the return information.
|
|
*
|
|
* !!!
|
|
* No need to set the bp_lsn.file field, __log_c_io set it for us.
|
|
*/
|
|
logc->bp_rlen = (u_int32_t)nr;
|
|
logc->bp_lsn.offset = offset;
|
|
|
|
*pp = logc->bp + (lsn->offset - offset);
|
|
|
|
return (0);
|
|
}
|
|
|
|
/*
|
|
* __log_c_hdrchk --
|
|
*
|
|
* Check for corrupted HDRs before we use them to allocate memory or find
|
|
* records.
|
|
*
|
|
* If the log files were pre-allocated, a zero-filled HDR structure is the
|
|
* logical file end. However, we can see buffers filled with 0's during
|
|
* recovery, too (because multiple log buffers were written asynchronously,
|
|
* and one made it to disk before a different one that logically precedes
|
|
* it in the log file.
|
|
*
|
|
* Check for impossibly large records. The malloc should fail later, but we
|
|
* have customers that run mallocs that treat all allocation failures as fatal
|
|
* errors.
|
|
*
|
|
* Note that none of this is necessarily something awful happening. We let
|
|
* the application hand us any LSN they want, and it could be a pointer into
|
|
* the middle of a log record, there's no way to tell.
|
|
*/
|
|
static int
|
|
__log_c_hdrchk(logc, lsn, hdr, eofp)
|
|
DB_LOGC *logc;
|
|
DB_LSN *lsn;
|
|
HDR *hdr;
|
|
int *eofp;
|
|
{
|
|
DB_ENV *dbenv;
|
|
int ret;
|
|
|
|
dbenv = logc->dbenv;
|
|
|
|
/*
|
|
* Check EOF before we do any other processing.
|
|
*/
|
|
if (eofp != NULL) {
|
|
if (hdr->prev == 0 && hdr->chksum[0] == 0 && hdr->len == 0) {
|
|
*eofp = 1;
|
|
return (0);
|
|
}
|
|
*eofp = 0;
|
|
}
|
|
|
|
/*
|
|
* Sanity check the log record's size.
|
|
* We must check it after "virtual" EOF above.
|
|
*/
|
|
if (hdr->len <= hdr->size)
|
|
goto err;
|
|
|
|
/*
|
|
* If the cursor's max-record value isn't yet set, it means we aren't
|
|
* reading these records from a log file and no check is necessary.
|
|
*/
|
|
if (logc->bp_maxrec != 0 && hdr->len > logc->bp_maxrec) {
|
|
/*
|
|
* If we fail the check, there's the pathological case that
|
|
* we're reading the last file, it's growing, and our initial
|
|
* check information was wrong. Get it again, to be sure.
|
|
*/
|
|
if ((ret = __log_c_set_maxrec(logc, NULL)) != 0) {
|
|
__db_err(dbenv, "DB_LOGC->get: %s", db_strerror(ret));
|
|
return (ret);
|
|
}
|
|
if (logc->bp_maxrec != 0 && hdr->len > logc->bp_maxrec)
|
|
goto err;
|
|
}
|
|
return (0);
|
|
|
|
err: if (!F_ISSET(logc, DB_LOG_SILENT_ERR))
|
|
__db_err(dbenv,
|
|
"DB_LOGC->get: LSN %lu/%lu: invalid log record header",
|
|
(u_long)lsn->file, (u_long)lsn->offset);
|
|
return (EIO);
|
|
}
|
|
|
|
/*
|
|
* __log_c_io --
|
|
* Read records from a log file.
|
|
*/
|
|
static int
|
|
__log_c_io(logc, fnum, offset, p, nrp, eofp)
|
|
DB_LOGC *logc;
|
|
u_int32_t fnum, offset;
|
|
void *p;
|
|
size_t *nrp;
|
|
int *eofp;
|
|
{
|
|
DB_ENV *dbenv;
|
|
DB_LOG *dblp;
|
|
int ret;
|
|
char *np;
|
|
|
|
dbenv = logc->dbenv;
|
|
dblp = dbenv->lg_handle;
|
|
|
|
/*
|
|
* If we've switched files, discard the current file handle and acquire
|
|
* a new one.
|
|
*/
|
|
if (logc->c_fhp != NULL && logc->bp_lsn.file != fnum) {
|
|
ret = __os_closehandle(dbenv, logc->c_fhp);
|
|
logc->c_fhp = NULL;
|
|
logc->bp_lsn.file = 0;
|
|
|
|
if (ret != 0)
|
|
return (ret);
|
|
}
|
|
if (logc->c_fhp == NULL) {
|
|
if ((ret = __log_name(dblp, fnum,
|
|
&np, &logc->c_fhp, DB_OSO_RDONLY | DB_OSO_SEQ)) != 0) {
|
|
/*
|
|
* If we're allowed to return EOF, assume that's the
|
|
* problem, set the EOF status flag and return 0.
|
|
*/
|
|
if (eofp != NULL) {
|
|
*eofp = 1;
|
|
ret = 0;
|
|
} else if (!F_ISSET(logc, DB_LOG_SILENT_ERR))
|
|
__db_err(dbenv, "DB_LOGC->get: %s: %s",
|
|
np, db_strerror(ret));
|
|
__os_free(dbenv, np);
|
|
return (ret);
|
|
}
|
|
|
|
if ((ret = __log_c_set_maxrec(logc, np)) != 0) {
|
|
__db_err(dbenv,
|
|
"DB_LOGC->get: %s: %s", np, db_strerror(ret));
|
|
__os_free(dbenv, np);
|
|
return (ret);
|
|
}
|
|
__os_free(dbenv, np);
|
|
|
|
logc->bp_lsn.file = fnum;
|
|
}
|
|
|
|
/* Seek to the record's offset. */
|
|
if ((ret = __os_seek(dbenv,
|
|
logc->c_fhp, 0, 0, offset, 0, DB_OS_SEEK_SET)) != 0) {
|
|
if (!F_ISSET(logc, DB_LOG_SILENT_ERR))
|
|
__db_err(dbenv,
|
|
"DB_LOGC->get: LSN: %lu/%lu: seek: %s",
|
|
(u_long)fnum, (u_long)offset, db_strerror(ret));
|
|
return (ret);
|
|
}
|
|
|
|
/* Read the data. */
|
|
if ((ret = __os_read(dbenv, logc->c_fhp, p, *nrp, nrp)) != 0) {
|
|
if (!F_ISSET(logc, DB_LOG_SILENT_ERR))
|
|
__db_err(dbenv,
|
|
"DB_LOGC->get: LSN: %lu/%lu: read: %s",
|
|
(u_long)fnum, (u_long)offset, db_strerror(ret));
|
|
return (ret);
|
|
}
|
|
|
|
return (0);
|
|
}
|
|
|
|
/*
|
|
* __log_c_shortread --
|
|
* Read was short -- return a consistent error message and error.
|
|
*/
|
|
static int
|
|
__log_c_shortread(logc, lsn, check_silent)
|
|
DB_LOGC *logc;
|
|
DB_LSN *lsn;
|
|
int check_silent;
|
|
{
|
|
if (!check_silent || !F_ISSET(logc, DB_LOG_SILENT_ERR))
|
|
__db_err(logc->dbenv, "DB_LOGC->get: LSN: %lu/%lu: short read",
|
|
(u_long)lsn->file, (u_long)lsn->offset);
|
|
return (EIO);
|
|
}
|
|
|
|
/*
|
|
* __log_c_set_maxrec --
|
|
* Bound the maximum log record size in a log file.
|
|
*/
|
|
static int
|
|
__log_c_set_maxrec(logc, np)
|
|
DB_LOGC *logc;
|
|
char *np;
|
|
{
|
|
DB_ENV *dbenv;
|
|
DB_LOG *dblp;
|
|
LOG *lp;
|
|
u_int32_t mbytes, bytes;
|
|
int ret;
|
|
|
|
dbenv = logc->dbenv;
|
|
dblp = dbenv->lg_handle;
|
|
|
|
/*
|
|
* We don't want to try and allocate huge chunks of memory because
|
|
* applications with error-checking malloc's often consider that a
|
|
* hard failure. If we're about to look at a corrupted record with
|
|
* a bizarre size, we need to know before trying to allocate space
|
|
* to hold it. We could read the persistent data at the beginning
|
|
* of the file but that's hard -- we may have to decrypt it, checksum
|
|
* it and so on. Stat the file instead.
|
|
*/
|
|
if (logc->c_fhp != NULL) {
|
|
if ((ret = __os_ioinfo(dbenv, np, logc->c_fhp,
|
|
&mbytes, &bytes, NULL)) != 0)
|
|
return (ret);
|
|
if (logc->bp_maxrec < (mbytes * MEGABYTE + bytes))
|
|
logc->bp_maxrec = mbytes * MEGABYTE + bytes;
|
|
}
|
|
|
|
/*
|
|
* If reading from the log file currently being written, we could get
|
|
* an incorrect size, that is, if the cursor was opened on the file
|
|
* when it had only a few hundred bytes, and then the cursor used to
|
|
* move forward in the file, after more log records were written, the
|
|
* original stat value would be wrong. Use the maximum of the current
|
|
* log file size and the size of the buffer -- that should represent
|
|
* the max of any log record currently in the file.
|
|
*
|
|
* The log buffer size is set when the environment is opened and never
|
|
* changed, we don't need a lock on it.
|
|
*/
|
|
lp = dblp->reginfo.primary;
|
|
if (logc->bp_maxrec < lp->buffer_size)
|
|
logc->bp_maxrec = lp->buffer_size;
|
|
|
|
return (0);
|
|
}
|