initialize cachesize if openinfo not specified
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 3 Sep 1992 01:15:43 +0000 (17:15 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 3 Sep 1992 01:15:43 +0000 (17:15 -0800)
SCCS-vsn: lib/libc/db/btree/bt_open.c 5.20
SCCS-vsn: lib/libc/db/btree/bt_open.c 5.20

usr/src/lib/libc/db/btree/bt_open.c

index b0bb275..e9c5b1e 100644 (file)
@@ -9,7 +9,7 @@
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)bt_open.c  5.19 (Berkeley) %G%";
+static char sccsid[] = "@(#)bt_open.c  5.20 (Berkeley) %G%";
 #endif /* LIBC_SCCS and not lint */
 
 /*
 #endif /* LIBC_SCCS and not lint */
 
 /*
@@ -112,6 +112,7 @@ __bt_open(fname, flags, mode, openinfo)
                        goto einval;
        } else {
                b.compare = __bt_defcmp;
                        goto einval;
        } else {
                b.compare = __bt_defcmp;
+               b.cachesize = 0;
                b.flags = 0;
                b.lorder = BYTE_ORDER;
                b.minkeypage = DEFMINKEYPAGE;
                b.flags = 0;
                b.lorder = BYTE_ORDER;
                b.minkeypage = DEFMINKEYPAGE;