summaryrefslogtreecommitdiffstats
path: root/ctdb/lib/tdb/tools/tdbtorture.c
Commit message (Collapse)AuthorAgeFilesLines
* lib/tdb: Sync tdb from samba git treeAmitay Isaacs2012-04-131-8/+30
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 0f40ea2386892ae10b30beeded0e00edf4c019c3)
* subunit: Support formatting compatible with upstream subunit, for consistency.Jelmer Vernooij2010-04-221-1/+1
| | | | | | | | | | Upstream subunit makes a ":" after commands optional, so I've fixed any places where we might trigger commands accidently. I've filed a bug about this in subunit. (Imported from commit 7da94cc4a664521be279b019e9f32121cd410193) (This used to be ctdb commit f1242d9cba676d1d393375bea42613192c70662e)
* tdb: Fix bug 7248, avoid the nanosleep dependencyVolker Lendecke2010-04-221-4/+4
| | | | | | (Imported from commit e2c7e5c4f72565fe49265d5b036531926ea1ac92) (This used to be ctdb commit 3318c74386e202b77ba7e29b4c3e0ce4d88fcd5b)
* tdb: add -k option to tdbtortureRusty Russell2010-04-221-57/+142
| | | | | | | | | | | | | | | | | 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)
* lib/tdb/tools/tdbtorture.c: fixed memory leak.Slava Semushin2009-12-161-0/+2
| | | | | | | | | | Found by cppcheck: [lib/tdb/tools/tdbtorture.c:326]: (error) Memory leak: pids (cherry picked from samba commit 497b9e460b5defd60de89b9c5bed890f83ca86a1) Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be ctdb commit 5d4cc4b018a538dc3f1d79fe091f3e6e67003daf)
* added basic testing of tdb_transaction_prepare_commit() in tdbtorture ↵Andrew Tridgell2009-12-161-0/+6
| | | | | | | | (cherry picked from samba commit 84547b8dba3c0cf4e20b3c50d9386081d475df6b) Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be ctdb commit 923b61fe722c0aec8a5b6ac8dd1df74957dc102b)
* lib/tdb: add -t (always use transactions) option to tdbtortureRusty Russell2009-12-161-12/+29
| | | | | | | | | | | | This means you can kill it at any time and expect no corruption. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (cherry picked from samba commit 0fc6800005ffb532a5e5699c97f13f1de138d51f) Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be ctdb commit f7278a277ed91587cae5b5e3660dad7124bdb73f)
* tdb: fixed the intermittent failure of tdbtorture in the build farmAndrew Tridgell2009-12-161-2/+5
| | | | | | | | | | | | | There was a race condition that caused the torture.tdb to be left in a state that needed recovery. The torture code thought that any message from the tdb code was an error, so the "recovered" message, which is a TDB_DEBUG_TRACE message, marked the run as being an error when it isn't. (cherry picked from samba commit 5dcf0069b68149575fe6166019dd90b73885926b) Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be ctdb commit 43c97b259b19c42b4edc7f83dbfc5e486568b4e3)
* merge from Samba4Andrew Tridgell2008-01-051-2/+2
| | | | (This used to be ctdb commit 9aed7a1d065272c2e5b54872228a73f37664b526)
* added copies of libs so can be built standaloneAndrew Tridgell2007-01-251-0/+318
(This used to be ctdb commit 0bf6e6cb371bb946ea8cc1d8c7a23a41ea715832)