]> git.saurik.com Git - apple/libc.git/blob - db/btree/FreeBSD/bt_split.c.patch
a1807945273e74843e45f45e008a3dd6d03bb851
[apple/libc.git] / db / btree / FreeBSD / bt_split.c.patch
1 --- bt_split.c.orig 2009-11-06 12:39:34.000000000 -0800
2 +++ bt_split.c 2009-11-06 12:40:06.000000000 -0800
3 @@ -201,7 +201,7 @@ __bt_split(BTREE *t, PAGE *sp, const DBT
4 nbytes = NRINTERNAL;
5 break;
6 default:
7 - abort();
8 + LIBC_ABORT("illegal rchild->flags & P_TYPE (0x%x)", rchild->flags & P_TYPE);
9 }
10
11 /* Split the parent page if necessary or shift the indices. */
12 @@ -276,7 +276,7 @@ __bt_split(BTREE *t, PAGE *sp, const DBT
13 ((RINTERNAL *)dest)->pgno = rchild->pgno;
14 break;
15 default:
16 - abort();
17 + LIBC_ABORT("illegal rchild->flags & P_TYPE (0x%x)", rchild->flags & P_TYPE);
18 }
19
20 /* Unpin the held pages. */
21 @@ -556,7 +556,7 @@ bt_broot(BTREE *t, PAGE *h, PAGE *l, PAG
22 ((BINTERNAL *)dest)->pgno = r->pgno;
23 break;
24 default:
25 - abort();
26 + LIBC_ABORT("illegal h->flags & P_TYPE (0x%x)", h->flags & P_TYPE);
27 }
28
29 /* There are two keys on the page. */
30 @@ -635,7 +635,7 @@ bt_psplit(BTREE *t, PAGE *h, PAGE *l, PA
31 isbigkey = 0;
32 break;
33 default:
34 - abort();
35 + LIBC_ABORT("illegal h->flags & P_TYPE (0x%x)", h->flags & P_TYPE);
36 }
37
38 /*
39 @@ -728,7 +728,7 @@ bt_psplit(BTREE *t, PAGE *h, PAGE *l, PA
40 nbytes = NRLEAF(rl);
41 break;
42 default:
43 - abort();
44 + LIBC_ABORT("illegal h->flags & P_TYPE (0x%x)", h->flags & P_TYPE);
45 }
46 ++nxt;
47 r->linp[off] = r->upper -= nbytes;