tdb2: failtest: use a linked list for history, not an array.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 5 Dec 2011 06:33:30 +0000 (17:03 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 5 Dec 2011 06:33:30 +0000 (17:03 +1030)
commit6d248534936ce5169d651b7d5e47ae8c74efb610
treee98e09b60b3eaa0c378ad94e80bbd71e5477e5e8
parent7f95ad045a36f1d40f66c815c9461bd5720c5808
tdb2: failtest: use a linked list for history, not an array.

This avoids a silly realloc, but more importantly it gets us closer to
being runtime extensible, as each history element can be a different
size.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 9571a41e8494f3135557e3ec50c2de856392173e)
lib/tdb2/test/failtest_helper.c
lib/tdb2/test/failtest_helper.h