v = 0;
/* Should not find it. */
- ok1(find_and_lock(tdb, key, F_WRLCK, &h, &rec) == 0);
+ ok1(find_and_lock(tdb, key, F_WRLCK, &h, &rec, NULL) == 0);
/* Should have created correct hash. */
ok1(h.h == tdb_hash(tdb, key.dptr, key.dsize));
/* Should have located space in group 0, bucket 0. */
ok1(tdb_check(tdb, NULL, NULL) == 0);
/* Now, this should give a successful lookup. */
- ok1(find_and_lock(tdb, key, F_WRLCK, &h, &rec) == new_off);
+ ok1(find_and_lock(tdb, key, F_WRLCK, &h, &rec, NULL)
+ == new_off);
/* Should have created correct hash. */
ok1(h.h == tdb_hash(tdb, key.dptr, key.dsize));
/* Should have located space in group 0, bucket 0. */
/* Test expansion. */
v = 1;
- ok1(find_and_lock(tdb, key, F_WRLCK, &h, &rec) == 0);
+ ok1(find_and_lock(tdb, key, F_WRLCK, &h, &rec, NULL) == 0);
/* Should have created correct hash. */
ok1(h.h == tdb_hash(tdb, key.dptr, key.dsize));
/* Should have located space in group 0, bucket 1. */
/* Should be able to find it. */
v = 0;
- ok1(find_and_lock(tdb, key, F_WRLCK, &h, &rec) == new_off);
+ ok1(find_and_lock(tdb, key, F_WRLCK, &h, &rec, NULL)
+ == new_off);
/* Should have created correct hash. */
ok1(h.h == tdb_hash(tdb, key.dptr, key.dsize));
/* Should have located space in expanded group 0, bucket 0. */
/* Test second-level expansion: should expand 0th bucket. */
v = 0;
- ok1(find_and_lock(tdb, key, F_WRLCK, &h, &rec) == 0);
+ ok1(find_and_lock(tdb, key, F_WRLCK, &h, &rec, NULL) == 0);
/* Should have created correct hash. */
ok1(h.h == tdb_hash(tdb, key.dptr, key.dsize));
/* Should have located space in group 0, bucket 0. */
/* Should be happy with expansion. */
ok1(tdb_check(tdb, NULL, NULL) == 0);
- ok1(find_and_lock(tdb, key, F_WRLCK, &h, &rec) == 0);
+ ok1(find_and_lock(tdb, key, F_WRLCK, &h, &rec, NULL) == 0);
/* Should have created correct hash. */
ok1(h.h == tdb_hash(tdb, key.dptr, key.dsize));
/* Should have located space in group 0, bucket 0. */
/* Should be able to find it. */
v = 0;
- ok1(find_and_lock(tdb, key, F_WRLCK, &h, &rec) == new_off);
+ ok1(find_and_lock(tdb, key, F_WRLCK, &h, &rec, NULL)
+ == new_off);
/* Should have created correct hash. */
ok1(h.h == tdb_hash(tdb, key.dptr, key.dsize));
/* Should have located space in expanded group 0, bucket 0. */