Deleted Added
full compact
hash_bigkey.c (14273) hash_bigkey.c (17141)
1/*-
2 * Copyright (c) 1990, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Margo Seltzer.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 576 unchanged lines hidden (view full) ---

585
586 bp = big_keyp;
587
588 /* Now figure out where the big key/data goes */
589 if (__big_keydata(hashp, big_keyp, &key, &val, 0))
590 return (-1);
591 change = (__call_hash(hashp, key.data, key.size) != obucket);
592
1/*-
2 * Copyright (c) 1990, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Margo Seltzer.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 576 unchanged lines hidden (view full) ---

585
586 bp = big_keyp;
587
588 /* Now figure out where the big key/data goes */
589 if (__big_keydata(hashp, big_keyp, &key, &val, 0))
590 return (-1);
591 change = (__call_hash(hashp, key.data, key.size) != obucket);
592
593 if (ret->next_addr = __find_last_page(hashp, &big_keyp)) {
593 if ( (ret->next_addr = __find_last_page(hashp, &big_keyp)) ) {
594 if (!(ret->nextp =
595 __get_buf(hashp, ret->next_addr, big_keyp, 0)))
596 return (-1);;
597 } else
598 ret->nextp = NULL;
599
600 /* Now make one of np/op point to the big key/data pair */
601#ifdef DEBUG

--- 66 unchanged lines hidden ---
594 if (!(ret->nextp =
595 __get_buf(hashp, ret->next_addr, big_keyp, 0)))
596 return (-1);;
597 } else
598 ret->nextp = NULL;
599
600 /* Now make one of np/op point to the big key/data pair */
601#ifdef DEBUG

--- 66 unchanged lines hidden ---