Loading VC++Files/storage/bdb/bdb.dsp +80 −0 Original line number Diff line number Diff line Loading @@ -158,6 +158,26 @@ SOURCE=.\btree\btree_auto.c # End Source File # Begin Source File SOURCE=.\crypto\aes_method.c # End Source File # Begin Source File SOURCE=.\crypto\crypto.c # End Source File # Begin Source File SOURCE=.\crypto\mersenne\mt19937db.c # End Source File # Begin Source File SOURCE=.\crypto\rijndael\rijndael-alg-fst.c # End Source File # Begin Source File SOURCE=.\crypto\rijndael\rijndael-api-fst.c # End Source File # Begin Source File SOURCE=.\db\crdel_auto.c # End Source File # Begin Source File Loading Loading @@ -238,6 +258,10 @@ SOURCE=.\db\db_overflow.c # End Source File # Begin Source File SOURCE=.\db\db_ovfl_vrfy.c # End Source File # Begin Source File SOURCE=.\db\db_pr.c # End Source File # Begin Source File Loading @@ -262,6 +286,18 @@ SOURCE=.\db\db_ret.c # End Source File # Begin Source File SOURCE=.\db\db_setid.c # End Source File # Begin Source File SOURCE=.\db\db_setlsn.c # End Source File # Begin Source File SOURCE=.\db\db_stati.c # End Source File # Begin Source File SOURCE=.\env\db_salloc.c # End Source File # Begin Source File Loading Loading @@ -306,6 +342,10 @@ SOURCE=.\dbreg\dbreg_rec.c # End Source File # Begin Source File SOURCE=.\dbreg\dbreg_stat.c # End Source File # Begin Source File SOURCE=.\dbreg\dbreg_util.c # End Source File # Begin Source File Loading @@ -330,6 +370,10 @@ SOURCE=.\env\env_region.c # End Source File # Begin Source File SOURCE=.\env\env_stat.c # End Source File # Begin Source File SOURCE=.\fileops\fileops_auto.c # End Source File # Begin Source File Loading Loading @@ -418,6 +462,14 @@ SOURCE=.\lock\lock_deadlock.c # End Source File # Begin Source File SOURCE=.\lock\lock_id.c # End Source File # Begin Source File SOURCE=.\lock\lock_list.c # End Source File # Begin Source File SOURCE=.\lock\lock_method.c # End Source File # Begin Source File Loading @@ -430,6 +482,10 @@ SOURCE=.\lock\lock_stat.c # End Source File # Begin Source File SOURCE=.\lock\lock_timer.c # End Source File # Begin Source File SOURCE=.\lock\lock_util.c # End Source File # Begin Source File Loading Loading @@ -458,6 +514,10 @@ SOURCE=.\log\log_put.c # End Source File # Begin Source File SOURCE=.\log\log_stat.c # End Source File # Begin Source File SOURCE=.\mp\mp_alloc.c # End Source File # Begin Source File Loading @@ -470,6 +530,10 @@ SOURCE=.\mp\mp_fget.c # End Source File # Begin Source File SOURCE=.\mp\mp_fmethod.c # End Source File # Begin Source File SOURCE=.\mp\mp_fopen.c # End Source File # Begin Source File Loading Loading @@ -614,6 +678,10 @@ SOURCE=.\os\os_tmpdir.c # End Source File # Begin Source File SOURCE=.\os_win32\os_truncate.c # End Source File # Begin Source File SOURCE=.\os_win32\os_type.c # End Source File # Begin Source File Loading Loading @@ -662,6 +730,14 @@ SOURCE=.\qam\qam_verify.c # End Source File # Begin Source File SOURCE=.\rep\rep_auto.c # End Source File # Begin Source File SOURCE=.\rep\rep_backup.c # End Source File # Begin Source File SOURCE=.\rep\rep_method.c # End Source File # Begin Source File Loading @@ -674,6 +750,10 @@ SOURCE=.\rep\rep_region.c # End Source File # Begin Source File SOURCE=.\rep\rep_stat.c # End Source File # Begin Source File SOURCE=.\rep\rep_util.c # End Source File # Begin Source File Loading sql/ha_berkeley.cc +16 −13 Original line number Diff line number Diff line Loading @@ -93,7 +93,8 @@ u_int32_t berkeley_lock_types[]= TYPELIB berkeley_lock_typelib= {array_elements(berkeley_lock_names)-1,"", berkeley_lock_names, NULL}; static void berkeley_print_error(const char *db_errpfx, char *buffer); static void berkeley_print_error(const DB_ENV *db_env, const char *db_errpfx, const char *buffer); static byte* bdb_get_key(BDB_SHARE *share,uint *length, my_bool not_used __attribute__((unused))); static BDB_SHARE *get_share(const char *table_name, TABLE *table); Loading Loading @@ -176,7 +177,7 @@ handlerton *berkeley_init(void) if (opt_endinfo) db_env->set_verbose(db_env, DB_VERB_CHKPOINT | DB_VERB_DEADLOCK | DB_VERB_RECOVERY, DB_VERB_DEADLOCK | DB_VERB_RECOVERY, 1); db_env->set_cachesize(db_env, 0, berkeley_cache_size, 0); Loading Loading @@ -248,7 +249,7 @@ static int berkeley_commit(THD *thd, bool all) DBUG_PRINT("trans",("ending transaction %s", all ? "all" : "stmt")); berkeley_trx_data *trx=(berkeley_trx_data *)thd->ha_data[berkeley_hton.slot]; DB_TXN **txn= all ? &trx->all : &trx->stmt; int error=txn_commit(*txn,0); int error= (*txn)->commit(*txn,0); *txn=0; #ifndef DBUG_OFF if (error) Loading @@ -263,7 +264,7 @@ static int berkeley_rollback(THD *thd, bool all) DBUG_PRINT("trans",("aborting transaction %s", all ? "all" : "stmt")); berkeley_trx_data *trx=(berkeley_trx_data *)thd->ha_data[berkeley_hton.slot]; DB_TXN **txn= all ? &trx->all : &trx->stmt; int error=txn_abort(*txn); int error= (*txn)->abort(*txn); *txn=0; DBUG_RETURN(error); } Loading Loading @@ -321,7 +322,8 @@ int berkeley_show_logs(Protocol *protocol) } static void berkeley_print_error(const char *db_errpfx, char *buffer) static void berkeley_print_error(const DB_ENV *db_env, const char *db_errpfx, const char *buffer) { sql_print_error("%s: %s",db_errpfx,buffer); /* purecov: tested */ } Loading Loading @@ -612,7 +614,7 @@ int ha_berkeley::open(const char *name, int mode, uint test_if_locked) berkeley_cmp_packed_key)); if (!hidden_primary_key) file->app_private= (void*) (table->key_info + table_share->primary_key); if ((error= txn_begin(db_env, 0, (DB_TXN**) &transaction, 0)) || if ((error= db_env->txn_begin(db_env, NULL, (DB_TXN**) &transaction, 0)) || (error= (file->open(file, transaction, fn_format(name_buff, name, "", ha_berkeley_ext, 2 | 4), Loading Loading @@ -651,7 +653,8 @@ int ha_berkeley::open(const char *name, int mode, uint test_if_locked) DBUG_PRINT("bdb",("Setting DB_DUP for key %u", i)); (*ptr)->set_flags(*ptr, DB_DUP); } if ((error= txn_begin(db_env, 0, (DB_TXN**) &transaction, 0)) || if ((error= db_env->txn_begin(db_env, NULL, (DB_TXN**) &transaction, 0)) || (error=((*ptr)->open(*ptr, transaction, name_buff, part, DB_BTREE, open_mode, 0))) || (error= transaction->commit(transaction, 0))) Loading Loading @@ -1844,7 +1847,7 @@ int ha_berkeley::external_lock(THD *thd, int lock_type) /* We have to start a master transaction */ DBUG_PRINT("trans",("starting transaction all: options: 0x%lx", (ulong) thd->options)); if ((error=txn_begin(db_env, 0, &trx->all, 0))) if ((error= db_env->txn_begin(db_env, NULL, &trx->all, 0))) { trx->bdb_lock_count--; // We didn't get the lock DBUG_RETURN(error); Loading @@ -1854,7 +1857,7 @@ int ha_berkeley::external_lock(THD *thd, int lock_type) DBUG_RETURN(0); // Don't create stmt trans } DBUG_PRINT("trans",("starting transaction stmt")); if ((error=txn_begin(db_env, trx->all, &trx->stmt, 0))) if ((error= db_env->txn_begin(db_env, trx->all, &trx->stmt, 0))) { /* We leave the possible master transaction open */ trx->bdb_lock_count--; // We didn't get the lock Loading @@ -1879,7 +1882,7 @@ int ha_berkeley::external_lock(THD *thd, int lock_type) We must in this case commit the work to keep the row locks */ DBUG_PRINT("trans",("commiting non-updating transaction")); error= txn_commit(trx->stmt,0); error= trx->stmt->commit(trx->stmt,0); trx->stmt= transaction= 0; } } Loading Loading @@ -1908,7 +1911,7 @@ int ha_berkeley::start_stmt(THD *thd) if (!trx->stmt) { DBUG_PRINT("trans",("starting transaction stmt")); error=txn_begin(db_env, trx->all, &trx->stmt, 0); error= db_env->txn_begin(db_env, trx->all, &trx->stmt, 0); trans_register_ha(thd, FALSE, &berkeley_hton); } transaction= trx->stmt; Loading Loading @@ -2289,7 +2292,7 @@ int ha_berkeley::analyze(THD* thd, HA_CHECK_OPT* check_opt) free(stat); stat=0; } if ((key_file[i]->stat)(key_file[i], (void*) &stat, 0)) if ((key_file[i]->stat)(key_file[i], NULL, (void*) &stat, 0)) goto err; /* purecov: inspected */ share->rec_per_key[i]= (stat->bt_ndata / (stat->bt_nkeys ? stat->bt_nkeys : 1)); Loading @@ -2302,7 +2305,7 @@ int ha_berkeley::analyze(THD* thd, HA_CHECK_OPT* check_opt) free(stat); stat=0; } if ((file->stat)(file, (void*) &stat, 0)) if ((file->stat)(file, NULL, (void*) &stat, 0)) goto err; /* purecov: inspected */ } pthread_mutex_lock(&share->mutex); Loading storage/bdb/LICENSE +4 −4 Original line number Diff line number Diff line /*- * $Id: LICENSE,v 11.9 2002/01/11 15:51:10 bostic Exp $ * $Id: LICENSE,v 11.12 2004/03/30 20:49:44 bostic Exp $ */ The following is the license that applies to this copy of the Berkeley DB software. For a license to use the Berkeley DB software under conditions other than those described here, or to purchase support for this software, please contact Sleepycat Software by email at db@sleepycat.com, or on the Web at http://www.sleepycat.com. please contact Sleepycat Software by email at info@sleepycat.com, or on the Web at http://www.sleepycat.com. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= /* * Copyright (c) 1990-2002 * Copyright (c) 1990-2004 * Sleepycat Software. All rights reserved. * * Redistribution and use in source and binary forms, with or without Loading storage/bdb/btree/bt_compare.c +10 −8 Original line number Diff line number Diff line /*- * See the file LICENSE for redistribution information. * * Copyright (c) 1996-2002 * Copyright (c) 1996-2004 * Sleepycat Software. All rights reserved. */ /* Loading Loading @@ -38,14 +38,12 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $Id: bt_compare.c,v 11.20 2004/02/21 15:54:44 bostic Exp $ */ #include "db_config.h" #ifndef lint static const char revid[] = "$Id: bt_compare.c,v 11.17 2002/03/27 04:30:42 bostic Exp $"; #endif /* not lint */ #ifndef NO_SYSTEM_INCLUDES #include <sys/types.h> #endif Loading Loading @@ -204,8 +202,12 @@ __bam_defpfx(dbp, a, b) return (cnt); /* * We know that a->size must be <= b->size, or they wouldn't be * in this order. * They match up to the smaller of the two sizes. * Collate the longer after the shorter. */ return (a->size < b->size ? a->size + 1 : a->size); if (a->size < b->size) return (a->size + 1); if (b->size < a->size) return (b->size + 1); return (b->size); } storage/bdb/btree/bt_conv.c +3 −5 Original line number Diff line number Diff line /*- * See the file LICENSE for redistribution information. * * Copyright (c) 1996-2002 * Copyright (c) 1996-2004 * Sleepycat Software. All rights reserved. * * $Id: bt_conv.c,v 11.15 2004/01/28 03:35:48 bostic Exp $ */ #include "db_config.h" #ifndef lint static const char revid[] = "$Id: bt_conv.c,v 11.13 2002/08/06 06:11:12 bostic Exp $"; #endif /* not lint */ #ifndef NO_SYSTEM_INCLUDES #include <sys/types.h> #endif Loading Loading
VC++Files/storage/bdb/bdb.dsp +80 −0 Original line number Diff line number Diff line Loading @@ -158,6 +158,26 @@ SOURCE=.\btree\btree_auto.c # End Source File # Begin Source File SOURCE=.\crypto\aes_method.c # End Source File # Begin Source File SOURCE=.\crypto\crypto.c # End Source File # Begin Source File SOURCE=.\crypto\mersenne\mt19937db.c # End Source File # Begin Source File SOURCE=.\crypto\rijndael\rijndael-alg-fst.c # End Source File # Begin Source File SOURCE=.\crypto\rijndael\rijndael-api-fst.c # End Source File # Begin Source File SOURCE=.\db\crdel_auto.c # End Source File # Begin Source File Loading Loading @@ -238,6 +258,10 @@ SOURCE=.\db\db_overflow.c # End Source File # Begin Source File SOURCE=.\db\db_ovfl_vrfy.c # End Source File # Begin Source File SOURCE=.\db\db_pr.c # End Source File # Begin Source File Loading @@ -262,6 +286,18 @@ SOURCE=.\db\db_ret.c # End Source File # Begin Source File SOURCE=.\db\db_setid.c # End Source File # Begin Source File SOURCE=.\db\db_setlsn.c # End Source File # Begin Source File SOURCE=.\db\db_stati.c # End Source File # Begin Source File SOURCE=.\env\db_salloc.c # End Source File # Begin Source File Loading Loading @@ -306,6 +342,10 @@ SOURCE=.\dbreg\dbreg_rec.c # End Source File # Begin Source File SOURCE=.\dbreg\dbreg_stat.c # End Source File # Begin Source File SOURCE=.\dbreg\dbreg_util.c # End Source File # Begin Source File Loading @@ -330,6 +370,10 @@ SOURCE=.\env\env_region.c # End Source File # Begin Source File SOURCE=.\env\env_stat.c # End Source File # Begin Source File SOURCE=.\fileops\fileops_auto.c # End Source File # Begin Source File Loading Loading @@ -418,6 +462,14 @@ SOURCE=.\lock\lock_deadlock.c # End Source File # Begin Source File SOURCE=.\lock\lock_id.c # End Source File # Begin Source File SOURCE=.\lock\lock_list.c # End Source File # Begin Source File SOURCE=.\lock\lock_method.c # End Source File # Begin Source File Loading @@ -430,6 +482,10 @@ SOURCE=.\lock\lock_stat.c # End Source File # Begin Source File SOURCE=.\lock\lock_timer.c # End Source File # Begin Source File SOURCE=.\lock\lock_util.c # End Source File # Begin Source File Loading Loading @@ -458,6 +514,10 @@ SOURCE=.\log\log_put.c # End Source File # Begin Source File SOURCE=.\log\log_stat.c # End Source File # Begin Source File SOURCE=.\mp\mp_alloc.c # End Source File # Begin Source File Loading @@ -470,6 +530,10 @@ SOURCE=.\mp\mp_fget.c # End Source File # Begin Source File SOURCE=.\mp\mp_fmethod.c # End Source File # Begin Source File SOURCE=.\mp\mp_fopen.c # End Source File # Begin Source File Loading Loading @@ -614,6 +678,10 @@ SOURCE=.\os\os_tmpdir.c # End Source File # Begin Source File SOURCE=.\os_win32\os_truncate.c # End Source File # Begin Source File SOURCE=.\os_win32\os_type.c # End Source File # Begin Source File Loading Loading @@ -662,6 +730,14 @@ SOURCE=.\qam\qam_verify.c # End Source File # Begin Source File SOURCE=.\rep\rep_auto.c # End Source File # Begin Source File SOURCE=.\rep\rep_backup.c # End Source File # Begin Source File SOURCE=.\rep\rep_method.c # End Source File # Begin Source File Loading @@ -674,6 +750,10 @@ SOURCE=.\rep\rep_region.c # End Source File # Begin Source File SOURCE=.\rep\rep_stat.c # End Source File # Begin Source File SOURCE=.\rep\rep_util.c # End Source File # Begin Source File Loading
sql/ha_berkeley.cc +16 −13 Original line number Diff line number Diff line Loading @@ -93,7 +93,8 @@ u_int32_t berkeley_lock_types[]= TYPELIB berkeley_lock_typelib= {array_elements(berkeley_lock_names)-1,"", berkeley_lock_names, NULL}; static void berkeley_print_error(const char *db_errpfx, char *buffer); static void berkeley_print_error(const DB_ENV *db_env, const char *db_errpfx, const char *buffer); static byte* bdb_get_key(BDB_SHARE *share,uint *length, my_bool not_used __attribute__((unused))); static BDB_SHARE *get_share(const char *table_name, TABLE *table); Loading Loading @@ -176,7 +177,7 @@ handlerton *berkeley_init(void) if (opt_endinfo) db_env->set_verbose(db_env, DB_VERB_CHKPOINT | DB_VERB_DEADLOCK | DB_VERB_RECOVERY, DB_VERB_DEADLOCK | DB_VERB_RECOVERY, 1); db_env->set_cachesize(db_env, 0, berkeley_cache_size, 0); Loading Loading @@ -248,7 +249,7 @@ static int berkeley_commit(THD *thd, bool all) DBUG_PRINT("trans",("ending transaction %s", all ? "all" : "stmt")); berkeley_trx_data *trx=(berkeley_trx_data *)thd->ha_data[berkeley_hton.slot]; DB_TXN **txn= all ? &trx->all : &trx->stmt; int error=txn_commit(*txn,0); int error= (*txn)->commit(*txn,0); *txn=0; #ifndef DBUG_OFF if (error) Loading @@ -263,7 +264,7 @@ static int berkeley_rollback(THD *thd, bool all) DBUG_PRINT("trans",("aborting transaction %s", all ? "all" : "stmt")); berkeley_trx_data *trx=(berkeley_trx_data *)thd->ha_data[berkeley_hton.slot]; DB_TXN **txn= all ? &trx->all : &trx->stmt; int error=txn_abort(*txn); int error= (*txn)->abort(*txn); *txn=0; DBUG_RETURN(error); } Loading Loading @@ -321,7 +322,8 @@ int berkeley_show_logs(Protocol *protocol) } static void berkeley_print_error(const char *db_errpfx, char *buffer) static void berkeley_print_error(const DB_ENV *db_env, const char *db_errpfx, const char *buffer) { sql_print_error("%s: %s",db_errpfx,buffer); /* purecov: tested */ } Loading Loading @@ -612,7 +614,7 @@ int ha_berkeley::open(const char *name, int mode, uint test_if_locked) berkeley_cmp_packed_key)); if (!hidden_primary_key) file->app_private= (void*) (table->key_info + table_share->primary_key); if ((error= txn_begin(db_env, 0, (DB_TXN**) &transaction, 0)) || if ((error= db_env->txn_begin(db_env, NULL, (DB_TXN**) &transaction, 0)) || (error= (file->open(file, transaction, fn_format(name_buff, name, "", ha_berkeley_ext, 2 | 4), Loading Loading @@ -651,7 +653,8 @@ int ha_berkeley::open(const char *name, int mode, uint test_if_locked) DBUG_PRINT("bdb",("Setting DB_DUP for key %u", i)); (*ptr)->set_flags(*ptr, DB_DUP); } if ((error= txn_begin(db_env, 0, (DB_TXN**) &transaction, 0)) || if ((error= db_env->txn_begin(db_env, NULL, (DB_TXN**) &transaction, 0)) || (error=((*ptr)->open(*ptr, transaction, name_buff, part, DB_BTREE, open_mode, 0))) || (error= transaction->commit(transaction, 0))) Loading Loading @@ -1844,7 +1847,7 @@ int ha_berkeley::external_lock(THD *thd, int lock_type) /* We have to start a master transaction */ DBUG_PRINT("trans",("starting transaction all: options: 0x%lx", (ulong) thd->options)); if ((error=txn_begin(db_env, 0, &trx->all, 0))) if ((error= db_env->txn_begin(db_env, NULL, &trx->all, 0))) { trx->bdb_lock_count--; // We didn't get the lock DBUG_RETURN(error); Loading @@ -1854,7 +1857,7 @@ int ha_berkeley::external_lock(THD *thd, int lock_type) DBUG_RETURN(0); // Don't create stmt trans } DBUG_PRINT("trans",("starting transaction stmt")); if ((error=txn_begin(db_env, trx->all, &trx->stmt, 0))) if ((error= db_env->txn_begin(db_env, trx->all, &trx->stmt, 0))) { /* We leave the possible master transaction open */ trx->bdb_lock_count--; // We didn't get the lock Loading @@ -1879,7 +1882,7 @@ int ha_berkeley::external_lock(THD *thd, int lock_type) We must in this case commit the work to keep the row locks */ DBUG_PRINT("trans",("commiting non-updating transaction")); error= txn_commit(trx->stmt,0); error= trx->stmt->commit(trx->stmt,0); trx->stmt= transaction= 0; } } Loading Loading @@ -1908,7 +1911,7 @@ int ha_berkeley::start_stmt(THD *thd) if (!trx->stmt) { DBUG_PRINT("trans",("starting transaction stmt")); error=txn_begin(db_env, trx->all, &trx->stmt, 0); error= db_env->txn_begin(db_env, trx->all, &trx->stmt, 0); trans_register_ha(thd, FALSE, &berkeley_hton); } transaction= trx->stmt; Loading Loading @@ -2289,7 +2292,7 @@ int ha_berkeley::analyze(THD* thd, HA_CHECK_OPT* check_opt) free(stat); stat=0; } if ((key_file[i]->stat)(key_file[i], (void*) &stat, 0)) if ((key_file[i]->stat)(key_file[i], NULL, (void*) &stat, 0)) goto err; /* purecov: inspected */ share->rec_per_key[i]= (stat->bt_ndata / (stat->bt_nkeys ? stat->bt_nkeys : 1)); Loading @@ -2302,7 +2305,7 @@ int ha_berkeley::analyze(THD* thd, HA_CHECK_OPT* check_opt) free(stat); stat=0; } if ((file->stat)(file, (void*) &stat, 0)) if ((file->stat)(file, NULL, (void*) &stat, 0)) goto err; /* purecov: inspected */ } pthread_mutex_lock(&share->mutex); Loading
storage/bdb/LICENSE +4 −4 Original line number Diff line number Diff line /*- * $Id: LICENSE,v 11.9 2002/01/11 15:51:10 bostic Exp $ * $Id: LICENSE,v 11.12 2004/03/30 20:49:44 bostic Exp $ */ The following is the license that applies to this copy of the Berkeley DB software. For a license to use the Berkeley DB software under conditions other than those described here, or to purchase support for this software, please contact Sleepycat Software by email at db@sleepycat.com, or on the Web at http://www.sleepycat.com. please contact Sleepycat Software by email at info@sleepycat.com, or on the Web at http://www.sleepycat.com. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= /* * Copyright (c) 1990-2002 * Copyright (c) 1990-2004 * Sleepycat Software. All rights reserved. * * Redistribution and use in source and binary forms, with or without Loading
storage/bdb/btree/bt_compare.c +10 −8 Original line number Diff line number Diff line /*- * See the file LICENSE for redistribution information. * * Copyright (c) 1996-2002 * Copyright (c) 1996-2004 * Sleepycat Software. All rights reserved. */ /* Loading Loading @@ -38,14 +38,12 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $Id: bt_compare.c,v 11.20 2004/02/21 15:54:44 bostic Exp $ */ #include "db_config.h" #ifndef lint static const char revid[] = "$Id: bt_compare.c,v 11.17 2002/03/27 04:30:42 bostic Exp $"; #endif /* not lint */ #ifndef NO_SYSTEM_INCLUDES #include <sys/types.h> #endif Loading Loading @@ -204,8 +202,12 @@ __bam_defpfx(dbp, a, b) return (cnt); /* * We know that a->size must be <= b->size, or they wouldn't be * in this order. * They match up to the smaller of the two sizes. * Collate the longer after the shorter. */ return (a->size < b->size ? a->size + 1 : a->size); if (a->size < b->size) return (a->size + 1); if (b->size < a->size) return (b->size + 1); return (b->size); }
storage/bdb/btree/bt_conv.c +3 −5 Original line number Diff line number Diff line /*- * See the file LICENSE for redistribution information. * * Copyright (c) 1996-2002 * Copyright (c) 1996-2004 * Sleepycat Software. All rights reserved. * * $Id: bt_conv.c,v 11.15 2004/01/28 03:35:48 bostic Exp $ */ #include "db_config.h" #ifndef lint static const char revid[] = "$Id: bt_conv.c,v 11.13 2002/08/06 06:11:12 bostic Exp $"; #endif /* not lint */ #ifndef NO_SYSTEM_INCLUDES #include <sys/types.h> #endif Loading