ntdb: fix recovery data write.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 18 Jun 2012 13:00:29 +0000 (22:30 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 19 Jun 2012 03:38:06 +0000 (05:38 +0200)
commitdd4eed47591eeb6aafe5782690c1b550d0e3ebc4
treeb0c9f5a94746d18f2c45a4c34115d77baac8cc6f
parent40cf08823dadb7f2f9cb3b32c2e64b6242522ef4
ntdb: fix recovery data write.

We were missing the last few bytes.  Found by 100 runs of ntdbtorture
-t -k.

The transaction test code didn't catch this, because usually those
last few bytes are irrelevant to the actual contents of the database.
We fix the test.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/ntdb/test/run-57-die-during-transaction.c
lib/ntdb/transaction.c