mirror of
https://github.com/samba-team/samba.git
synced 2025-01-29 21:47:30 +03:00
5c58560d50
To test the case of death of a process during transaction commit, add a -k (kill random) option to tdbtorture. The easiest way to do this is to make every worker a child (unless there's only one child), which is why this patch is bigger than you might expect. Using -k without -t (always transactions) you expect corruption, though it doesn't happen every time. With -t, we currently get corruption but the next patch fixes that. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from commit ececeffd85db1b27c07cdf91a921fd203006daf6) (This used to be ctdb commit e5af0ce79c74f11daae2a8514e398c40535e2e67)