summaryrefslogtreecommitdiffstats
path: root/lib/tdb/tools
Commit message (Collapse)AuthorAgeFilesLines
* tdb: remove 'EOF' print from tdbrestoreAndrew Tridgell2011-07-211-1/+0
| | | | | | the EOF message is pointless, and makes for noisy scripts Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* tdb_store: check returns for 0, not -1.Rusty Russell2011-06-202-4/+4
| | | | | | | | TDB2 returns a negative error number on failure. This is compatible if we always check for != 0 instead of == -1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_backup: avoid transaction on backup file, use lockallSimo Sorce2011-04-191-8/+13
| | | | | | | | Transactions have the side effect of generating bigger files. By removing the transaction files get as much as 30% smaller. Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Tue Apr 19 23:34:37 CEST 2011 on sn-devel-104
* tdb: rename convert_string() to tdb_convert_string()Andrew Tridgell2011-03-251-5/+5
| | | | this prevents a conflict with the convert_string() in samba
* tdbrestore: Update to GPLv3+, remove old FSF address.Jelmer Vernooij2011-01-061-3/+2
|
* tdb: tdb_summary() support.Rusty Russell2010-12-291-5/+7
| | | | | Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Wed Dec 29 10:12:05 CET 2010 on sn-devel-104
* tdb:tdbtorture: use TEST_DATA_PREFIX for filesStefan Metzmacher2010-12-241-8/+30
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Dec 24 18:17:53 CET 2010 on sn-devel-104
* tdb:tdbtest: use TEST_DATA_PREFIX for filesStefan Metzmacher2010-12-241-3/+28
| | | | metze
* tdb:tdbstore.c - remove an useless '\'Matthias Dieter Wallnöfer2010-11-271-1/+1
| | | | Discovered by a warning of the Tru64 host on the buildfarm.
* tdb: add restoreVolker Lendecke2010-09-231-0/+226
| | | | Based on an idea by Simon McVittie, largely rewritten
* subunit: Support formatting compatible with upstream subunit, for consistency.Jelmer Vernooij2010-04-111-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.
* tdb: Fix bug 7248, avoid the nanosleep dependencyVolker Lendecke2010-03-221-4/+4
|
* tdb: add -k option to tdbtortureRusty Russell2010-02-241-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>
* tdbtool: avoid using c++ reserved words.Günther Deschner2009-12-171-2/+2
| | | | Guenther
* tdb tools: Mostly cosmetic adaptionsMatthias Dieter Wallnöfer2009-11-202-8/+9
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* lib/tdb: make tdbtool use tdb_check() for "check" commandRusty Russell2009-10-221-14/+30
| | | | | | | Also, set logging function so we get more informative messages. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/tdb: add -t (always use transactions) option to tdbtortureRusty Russell2009-10-221-12/+29
| | | | | | | This means you can kill it at any time and expect no corruption. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: fixed the intermittent failure of tdbtorture in the build farmAndrew Tridgell2009-10-201-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.
* tdb:tdbtool: fix indentation.Michael Adam2009-09-211-178/+177
| | | | Michael
* tdb:tdbtool: add transaction_start/_commit/_cancel commands.Michael Adam2009-09-211-0/+21
| | | | | | So one can perform tdbtool operations protected by transactions. Michael
* tdb:tdbtool: add the "speed" command to the help text.Michael Adam2009-09-211-0/+1
| | | | Michael
* lib/tdb/tools/tdbtorture.c: fixed memory leak.Slava Semushin2009-06-061-0/+2
| | | | | Found by cppcheck: [lib/tdb/tools/tdbtorture.c:326]: (error) Memory leak: pids
* fixed tdbbackup to give tdb error messagesAndrew Tridgell2009-05-281-7/+31
|
* tdb: Fix some recently introduced warnings in tdbtoolTim Prouty2009-05-271-6/+6
|
* added some more speed tests to tdbtoolAndrew Tridgell2009-05-261-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
* added basic testing of tdb_transaction_prepare_commit() in tdbtortureAndrew Tridgell2009-03-311-0/+6
|
* Fix all warnings in source3 with gcc4.3.Jeremy Allison2008-12-311-1/+3
| | | | Jeremy.
* s3/s4: Fix "shadows a global declaration" warningTim Prouty2008-12-161-1/+1
|
* Added a simple tdb integrity check to tdbtool. The command "check" runs ↵Holger Hetterich2008-12-161-1/+28
| | | | traverse on the currently open tdb, and returns the number of entries if the integrity check is successful.
* make tdbbackup use transactionsAndrew Tridgell2008-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
* Move common libraries from root to lib/.Jelmer Vernooij2008-09-175-0/+1658