1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

18 Commits

Author SHA1 Message Date
Andrew Tridgell
f4d9600e68 fixed spinlocks in tdb
I still wouldn't recommend them, but at least they now work
(This used to be commit 76992e7d16)
2003-10-18 08:52:16 +00:00
Jeremy Allison
01fca9e10e Added tdb_append() call. Efficiently adds to an entry. Used by new messaging
code. Also added torture tests for it.
Jeremy.
(This used to be commit 724cefabb0)
2003-01-11 00:07:44 +00:00
Jeremy Allison
9bb0a964bf Fix up warnings. Make tdb_openXX() names const.
Jeremy.
(This used to be commit 9e3581827d)
2001-12-11 08:31:58 +00:00
Martin Pool
65e1d4a7a5 Fix headers. This I know is correct.
(This used to be commit 58cfea3c2a)
2001-12-04 13:17:22 +00:00
Martin Pool
84503c81f0 undo
(This used to be commit fc176f15f2)
2001-12-04 11:41:12 +00:00
Martin Pool
28e676d9c3 Implement suggestion from tridge to leave the old tdb_open interface
as it was, and add tdb_open_ex() which takes a log callback.  I guess
this makes more sense since it's a public interface.
(This used to be commit 391a65395e)
2001-12-04 11:25:44 +00:00
Martin Pool
7d9e09f527 Better error handling:
- tdb_open api changed so that you now pass an error handling
   callback when opening the file, so that errors detected during
   opening have somewhere to go.  (All calls from the body of Samba to
   this function go through a wrapper in tdbutil, which has been
   updated.)

 - Clean up logic for deciding how to open tdb.  Emit log messages if
   something goes wrong (e.g. bad magic.)

 - tdbtool now logs errors to stderr.
(This used to be commit 0aa800618e)
2001-12-04 07:40:25 +00:00
Andrew Tridgell
c61d1a1679 fixed compilation of tdbtorture
(This used to be commit 2f44756233)
2001-09-27 01:57:02 +00:00
Andrew Tridgell
7ef445e226 tdbtorture updates from when I was trying to track down the hp tdb bug
(This used to be commit b8d9d1fca3)
2001-09-24 04:56:56 +00:00
Andrew Tridgell
75a8b24ed9 flush stdout in test logging fns
(This used to be commit d32ac363a5)
2001-09-06 05:59:32 +00:00
Andrew Tridgell
fef37db972 use a different test tdb name for tdbtest and tdbtorture
(This used to be commit 931bded1c9)
2001-09-06 05:58:05 +00:00
Andrew Tridgell
9848c067c0 - fixed an off-by-1 bug in the delayed deletion code that I believe
was the initial cause of the connections database becoming corrupt.
  Note that this bug only happens when doing deletions within a
  traversal, which is why it has only showed up now
- added delete within traversal testing to tdbtorture
- added a lot more logging to tdb
(This used to be commit 6e1277df9d)
2001-05-30 05:40:52 +00:00
Andrew Tridgell
c0561ff58e try to make the tailer code much more robust. When a record
can't be merged don't fail the operation, instead just add
it to the free list anyway

added logging to tdb
(This used to be commit dda086fdf9)
2001-05-28 13:29:06 +00:00
Tim Potter
0a77ae3f14 Oops - put back filename argument to tdb_open().
(This used to be commit 110ec9923b)
2000-02-28 00:38:45 +00:00
Tim Potter
79691801f4 Modifications to tdb_traverse() arguments to remove compile warnings.
(This used to be commit d64456b588)
2000-02-28 00:37:13 +00:00
Tim Potter
f89a1e9999 tdb_traverse() now takes three arguments.
(This used to be commit 2d3e2f8877)
2000-02-16 04:56:11 +00:00
Andrew Tridgell
9a781a8c6d - added tdb_flags option to tdb_open()
- added TDB_CLEAR_IF_FIRST flag to clear the database if this is the
  first attached process. Useful for non-persistent databases like our
  locking area (this will also make upgrades to new database layouts easier)
- use lock_path() in a couple of places
- leave connections database open while smbd running
- cleaned up some tdb code a little, using macros for constants
(This used to be commit 00e9da3ca5)
2000-01-02 23:00:27 +00:00
Andrew Tridgell
4a85b76dae a useful locking tester - it uses lots of simultaneous writers
(This used to be commit 3b3fdd8661)
1999-12-24 08:46:02 +00:00