summaryrefslogtreecommitdiff
path: root/lib/tdb2/test/layout.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-12-05 17:03:19 +1030
committerRusty Russell <rusty@rustcorp.com.au>2011-12-05 17:03:19 +1030
commitd5524222a42a9dd92f9ea25ced4b70d2a8da1b23 (patch)
treef9374efa13d08d9e888f5e9a480c3a3376c4e047 /lib/tdb2/test/layout.h
parent71384d5d75895d39ec3387b18ef7993173aab91e (diff)
downloadsamba-d5524222a42a9dd92f9ea25ced4b70d2a8da1b23.tar.gz
samba-d5524222a42a9dd92f9ea25ced4b70d2a8da1b23.tar.bz2
samba-d5524222a42a9dd92f9ea25ced4b70d2a8da1b23.zip
tdb2: fix intermittant failure in run-50-multiple-freelists-fail.c
layout.c's TDB creation functions were incorrect in case of a hash collision, causing occasional failure. Make it always use the (previously-failing) seed value, and fix it. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 60a487d57979e4364e70c837079f3cf083ddc9c7)
Diffstat (limited to 'lib/tdb2/test/layout.h')
-rw-r--r--lib/tdb2/test/layout.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tdb2/test/layout.h b/lib/tdb2/test/layout.h
index 6e2e6657a7..96ecb683b8 100644
--- a/lib/tdb2/test/layout.h
+++ b/lib/tdb2/test/layout.h
@@ -15,7 +15,8 @@ void tdb_layout_add_hashtable(struct tdb_layout *layout,
unsigned int bucket,
tdb_len_t extra);
#endif
-struct tdb_context *tdb_layout_get(struct tdb_layout *layout);
+struct tdb_context *tdb_layout_get(struct tdb_layout *layout,
+ union tdb_attribute *attr);
void tdb_layout_free(struct tdb_layout *layout);
enum layout_type {