From 64a17473a05185ad79e8c39344ec849daabe2d6a Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Thu, 14 May 1992 21:36:06 -0800 Subject: [PATCH] don't add overflow pages to pages that already have overflow pages SCCS-vsn: lib/libc/db/hash/hash_page.c 5.19 --- usr/src/lib/libc/db/hash/hash_page.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/src/lib/libc/db/hash/hash_page.c b/usr/src/lib/libc/db/hash/hash_page.c index 6b3a6139af..68c8051900 100644 --- a/usr/src/lib/libc/db/hash/hash_page.c +++ b/usr/src/lib/libc/db/hash/hash_page.c @@ -9,7 +9,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char sccsid[] = "@(#)hash_page.c 5.18 (Berkeley) %G%"; +static char sccsid[] = "@(#)hash_page.c 5.19 (Berkeley) %G%"; #endif /* LIBC_SCCS and not lint */ /* @@ -372,7 +372,7 @@ __addel(bufp, key, val) do_expand = 0; while (bp[0] && (bp[bp[0]] < REAL_KEY)) /* Exception case */ - if (bp[2] < REAL_KEY) { + if (bp[2] < REAL_KEY && bp[bp[0]] != OVFLPAGE) { /* This is a big-keydata pair */ bufp = __add_ovflpage(bufp); if (!bufp) -- 2.20.1