X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Frun-20-growhash.c;h=adbe733ef6476393d8a77a8ed0eee652de7f6b4f;hp=6bcfd7d3baee007dbb29633068ef0c6010160113;hb=bee60dd0ffe0b1b5821061b4384000c4246f2051;hpb=b846677c1ec77e986c7d6b7c913aa2a4b0c82d4e diff --git a/ccan/tdb2/test/run-20-growhash.c b/ccan/tdb2/test/run-20-growhash.c index 6bcfd7d3..adbe733e 100644 --- a/ccan/tdb2/test/run-20-growhash.c +++ b/ccan/tdb2/test/run-20-growhash.c @@ -76,7 +76,7 @@ int main(int argc, char *argv[]) /* Check first still exists. */ kdata = make_key(0, 0, 0, 0, 0, 0); - ok1(find_and_lock(tdb, key, F_RDLCK, &h, &rec) != 0); + ok1(find_and_lock(tdb, key, F_RDLCK, &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. */ @@ -98,7 +98,7 @@ int main(int argc, char *argv[]) ok1(tdb_store(tdb, key, dbuf, TDB_INSERT) == 0); ok1(tdb_check(tdb, NULL, NULL) == 0); - ok1(find_and_lock(tdb, key, F_RDLCK, &h, &rec) != 0); + ok1(find_and_lock(tdb, key, F_RDLCK, &h, &rec, NULL)); /* Should have created correct hash. */ ok1(h.h == tdb_hash(tdb, key.dptr, key.dsize)); /* Should have moved to subhash */ @@ -122,7 +122,7 @@ int main(int argc, char *argv[]) ok1(tdb_store(tdb, key, dbuf, TDB_INSERT) == 0); ok1(tdb_check(tdb, NULL, NULL) == 0); - ok1(find_and_lock(tdb, key, F_RDLCK, &h, &rec) != 0); + ok1(find_and_lock(tdb, key, F_RDLCK, &h, &rec, NULL)); /* Should have created correct hash. */ ok1(h.h == tdb_hash(tdb, key.dptr, key.dsize)); /* Should have moved to subhash */