]> git.saurik.com Git - apple/libc.git/blobdiff - db/btree/FreeBSD/bt_split.c
Libc-391.2.3.tar.gz
[apple/libc.git] / db / btree / FreeBSD / bt_split.c
index 704eefcaecea587ceac96809c4663e1180a4c81d..07373de8faa0a2e5fb055de8aa8fcc993e34bd47 100644 (file)
@@ -38,7 +38,7 @@
 static char sccsid[] = "@(#)bt_split.c 8.9 (Berkeley) 7/26/94";
 #endif /* LIBC_SCCS and not lint */
 #include <sys/cdefs.h>
-__FBSDID("$FreeBSD: src/lib/libc/db/btree/bt_split.c,v 1.5 2003/02/16 17:29:09 nectar Exp $");
+__FBSDID("$FreeBSD: src/lib/libc/db/btree/bt_split.c,v 1.7 2004/09/13 22:07:24 kuriyama Exp $");
 
 #include <sys/types.h>
 
@@ -726,7 +726,7 @@ bt_psplit(t, h, l, r, pskip, ilen)
         * the right page.
         */
        if (skip <= off) {
-               skip = 0;
+               skip = MAX_PAGE_OFFSET;
                rval = l;
        } else {
                rval = r;
@@ -736,7 +736,7 @@ bt_psplit(t, h, l, r, pskip, ilen)
        for (off = 0; nxt < top; ++off) {
                if (skip == nxt) {
                        ++off;
-                       skip = 0;
+                       skip = MAX_PAGE_OFFSET;
                }
                switch (h->flags & P_TYPE) {
                case P_BINTERNAL: