From: Tom Yu Date: Sat, 26 Jul 1997 01:24:08 +0000 (+0000) Subject: * kdb_db2.c: Fix typo; also, tweak page size in attempt to speed X-Git-Tag: krb5-1.1-beta1~1087 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=85047edcf722944f2479de11568a07d0cd628e59;p=krb5.git * kdb_db2.c: Fix typo; also, tweak page size in attempt to speed things up. * kdb_db2.h: Fix typo. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10137 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/kdb/ChangeLog b/src/lib/kdb/ChangeLog index 05497b130..054827ef0 100644 --- a/src/lib/kdb/ChangeLog +++ b/src/lib/kdb/ChangeLog @@ -1,5 +1,10 @@ Fri Jul 25 15:29:03 1997 Tom Yu + * kdb_db2.c: Fix typo; also, tweak page size in attempt to speed + things up. + + * kdb_db2.h: Fix typo. + * t_kdb.c: Reflect changes in the API, mostly db_create. * Makefile.in: Bump version due to major reworking. diff --git a/src/lib/kdb/kdb_db2.c b/src/lib/kdb/kdb_db2.c index 703c11df4..83f705549 100644 --- a/src/lib/kdb/kdb_db2.c +++ b/src/lib/kdb/kdb_db2.c @@ -180,7 +180,7 @@ k5db2_dbopen(dbc, fname, flags, mode) bti.flags = 0; bti.cachesize = 0; - bti.psize = 1024; /* ??? */ + bti.psize = 4096; bti.lorder = 0; bti.minkeypage = 0; bti.compare = NULL; @@ -1180,10 +1180,8 @@ kdb5_context_size(kcontext, arg, sizep) kret = EINVAL; if ((dbctx = (krb5_db2_context *) arg)) { required = (sizeof(krb5_int32) * 7); -#ifdef notdef - if (dbctx->db_inited && dbctx->db_dispatch && dbctx->db_name) + if (dbctx->db_inited && dbctx->db_name) required += strlen(dbctx->db_name); -#endif kret = 0; *sizep += required; } diff --git a/src/lib/kdb/kdb_db2.h b/src/lib/kdb/kdb_db2.h index 2c0221986..30359d79e 100644 --- a/src/lib/kdb/kdb_db2.h +++ b/src/lib/kdb/kdb_db2.h @@ -32,7 +32,7 @@ #define krb5_db2_db_fini krb5_db_fini #define krb5_db2_db_get_age krb5_db_get_age #define krb5_db2_db_create krb5_db_create -#define krb5_db2_db_destroy kdb5_db_destroy +#define krb5_db2_db_destroy krb5_db_destroy #define krb5_db2_db_rename krb5_db_rename #define krb5_db2_db_get_principal krb5_db_get_principal #define krb5_db2_db_free_principal krb5_db_free_principal