summaryrefslogtreecommitdiffstats
path: root/ctdb/lib/tdb/tools
Commit message (Collapse)AuthorAgeFilesLines
* tdb: Sync to tdb 1.2.11 from upstreamAmitay Isaacs2013-05-292-7/+60
| | | | (This used to be ctdb commit bb3a32ec055432afc7225c9fd7504fb187694bda)
* lib/tdb: Sync tdb from samba git treeAmitay Isaacs2012-04-135-44/+100
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 0f40ea2386892ae10b30beeded0e00edf4c019c3)
* tdb: add restoreVolker Lendecke2010-10-071-0/+226
| | | | | | Based on an idea by Simon McVittie, largely rewritten (This used to be ctdb commit 7cda5507f90d7598d745a1acfc66c2afa73cd4b5)
* 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)
* tdb tools: Mostly cosmetic adaptionsMatthias Dieter Wallnöfer2009-12-162-8/+9
| | | | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from samba commit 9776cb03450d21da5d454e683bdba29793ba3f67) Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be ctdb commit d1873bd81bfc9f486b88f3a38c65c7de8f5a0909)
* lib/tdb: make tdbtool use tdb_check() for "check" commandRusty Russell2009-12-161-14/+30
| | | | | | | | | | | Also, set logging function so we get more informative messages. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (cherry picked from samba commit 094493115971cf3d5a3138ff10ebe02335824723) Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be ctdb commit 6ac7ef8bf4d384f880c7f483ace70f8e08c15a8b)
* 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)
* make tdbbackup use transactionsAndrew Tridgell2009-12-161-6/+19
| | | | | | | | | | | tdbbackup was originally written before we had transactions, and it attempted to use its own fsync() calls to make it safe. Now that we have transactions we can do it in a much safer (and faster!) fashion (cherry picked from samba commit 2e4247782bd5812bc8e7ea24194c8436748bb2fa) Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be ctdb commit cd23d36ada9631095ca68663516de0c8d8c3bbed)
* fixed tdbbackup to give tdb error messages (cherry picked from samba commit ↵Andrew Tridgell2009-12-161-7/+31
| | | | | | | | 08be1420ba52ef9bba90d0f811c7810841ee8568) Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be ctdb commit 3d44412593b8748a5158e15b83cd9eb548231194)
* 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)
* tdb:tdbtool: fix indentation.Michael Adam2009-12-161-178/+177
| | | | | | | | | Michael (cherry picked from samba commit e440a2e11e78a562f97971c0dfe0cf3f694996ff) Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be ctdb commit c1b8d32b4ef87b9d8f37b451f47fcee2ea753d21)
* Fix all warnings in source3 with gcc4.3. Jeremy. (cherry picked from samba ↵Stefan Metzmacher2009-12-161-1/+3
| | | | | | | | commit 07e0094365e8dc360a83eec2e7cf9b1d5d8d6d00) Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be ctdb commit e4d49c182e12c2d429d0414209cc2c8ccc19dc91)
* s3/s4: Fix "shadows a global declaration" warning (cherry picked from samba ↵Tim Prouty2009-12-161-1/+1
| | | | | | | | commit e48a5cd5d4fc2626b09af16a0ac68c638d081437) Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be ctdb commit 94f5728a77b8c772fb16c4744c24b45de8016e52)
* tdb: Fix some recently introduced warnings in tdbtool (cherry picked from ↵Tim Prouty2009-12-161-6/+6
| | | | | | | | samba commit c299833bf8e6506c793d6e8283743949aaac9ef4) Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be ctdb commit 5830a2427b84e1cce74390b58fe12c45b5a056a6)
* added some more speed tests to tdbtoolAndrew Tridgell2009-12-161-6/+59
| | | | | | | | | | | | This adds 3 simple speed tests to tdbtool, for transaction store, store and fetch. On my laptop this shows transactions costing about 10ms (cherry picked from samba commit e15027155d3d880abde83124e252b3dd10a9aae4) Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be ctdb commit 463279c972fa4538919bdd1dff48ca6b2fb8d49c)
* tdb:tdbtool: add transaction_start/_commit/_cancel commands.Michael Adam2009-12-161-0/+21
| | | | | | | | | | | So one can perform tdbtool operations protected by transactions. Michael (cherry picked from samba commit 91e1bab2e9a3f33151061554f2dcf05bcb728312) Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be ctdb commit 35a5b874b925380f7c227e47aebb590c9db4739e)
* tdb:tdbtool: add the "speed" command to the help text.Michael Adam2009-12-161-0/+1
| | | | | | | | | Michael (cherry picked from samba commit 817383d88d820e7be5b5dd3d2da350d4a03a94de) Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be ctdb commit dc287a7d7420cca0b104049e689a73202bc535f8)
* Added a simple tdb integrity check to tdbtool. The command "check" runs ↵Holger Hetterich2009-12-161-1/+28
| | | | | | | | traverse on the currently open tdb, and returns the number of entries if the integrity check is successful. (cherry picked from samba commit 42366bcbbdd42bb9d5821dfcc9dbe71a1eafa330) Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be ctdb commit 02b35ba77672727c96ad004be37c7f6f1d3fe474)
* merge from samba4Andrew Tridgell2008-01-181-1/+1
| | | | (This used to be ctdb commit 21245b894b32f232251fd7c0e2fbfd073fb10514)
* merge from Samba4Andrew Tridgell2008-01-054-7/+59
| | | | (This used to be ctdb commit 9aed7a1d065272c2e5b54872228a73f37664b526)
* update lib/tdb from samba4Andrew Tridgell2007-07-103-3/+3
| | | | (This used to be ctdb commit 96a39ccee38bcfd64d614fe4670766e59ef246b6)
* update lib/replace from samba4Andrew Tridgell2007-07-103-9/+6
| | | | (This used to be ctdb commit f0555484105668c01c21f56322992e752e831109)
* merge tdb updates from samba4Andrew Tridgell2007-04-212-15/+228
| | | | (This used to be ctdb commit c9959e5741a17fd52070b744714eb00bf92a93eb)
* merge local copy of tdb from samba4 tdbAndrew Tridgell2007-04-162-270/+337
| | | | (This used to be ctdb commit d4619ce98ce44acaebeb6ae9c516a7917bf4e27f)
* added copies of libs so can be built standaloneAndrew Tridgell2007-01-255-0/+1329
(This used to be ctdb commit 0bf6e6cb371bb946ea8cc1d8c7a23a41ea715832)