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

233 Commits

Author SHA1 Message Date
Tim Potter
9fd3d3963e Check for null tdb context in tdb_exists()
(This used to be commit bbacdb834f)
2000-03-01 01:10:25 +00:00
Tim Potter
1f6f8c2241 Makefile for tdb directory.
(This used to be commit 60ae73c257)
2000-02-28 00:51:53 +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
676df39cc7 Allow tdb databases to be created "in memory" without having a file
associated with them.  tdb can then be used as a hash table data
structure.
(This used to be commit b345c0a105)
2000-02-28 00:25:37 +00:00
Tim Potter
e4de0e523c Added tdbtool to .cvsignore list.
(This used to be commit 2892f6e534)
2000-02-28 00:22:45 +00:00
Tim Potter
c988b69dfc Updated docs for tdb_traverse.
(This used to be commit 8cbc7dfa03)
2000-02-17 00:16:40 +00:00
Tim Potter
590d92c77a More checks for passing NULL tdb contexts to tdb functions.
(This used to be commit 7faa70d254)
2000-02-16 22:57:57 +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
Tim Potter
13ac8fd847 Return "Invalid tdb context" instead of crashing when tdb_error called
with NULL tdb context.
(This used to be commit ba9f24c096)
2000-02-15 06:13:38 +00:00
Luke Leighton
bbe275e95b 1) added void* state argument to tdb_traverse. guess what! there were
two places i found where it was appropriate to _use_ that third argument,
in locking.c and brlock.c!  there was a static traverse_function and
i removed the static variable, typecast it to a void*, passed it to
tdb_traverse and re-cast it back to the traverse_function inside the
tdb_traverse function.  this makes the use of tdb_traverse() reentrant,
which is never going to happen, i know, i just don't like to see
statics lying about when there's no need for them.

as i had to do in samba-tng, all uses of tdb_traverse modified to take
the new void* state argument.

2) disabled rpcclient: referring people to use SAMBA_TNG rpcclient.
i don't know how the other samba team members would react if i deleted
rpcclient from cvs main.  damn, that code's so old, it's unreal.
20 rpcclient commands, instead of about 70 in SAMBA_TNG.
(This used to be commit 49d7f0afbc)
2000-02-04 04:59:31 +00:00
Jeremy Allison
014bdf941f tdb record read error return check fix from Dave Airlie <airlied@samba.org>.
Jeremy.
(This used to be commit 82c99dc8d8)
2000-01-24 23:12:02 +00:00
Andrew Tridgell
1359195c50 casts and defines to make solaris happy
(This used to be commit 77cf152c02)
2000-01-14 08:33:20 +00:00
Andrew Tridgell
5b7f0c733c improved the error checking
(This used to be commit 2a152998a1)
2000-01-08 08:16:02 +00:00
Andrew Tridgell
102e44e446 don't use strcpy
(This used to be commit bf9b1328c5)
2000-01-07 06:14:43 +00:00
Andrew Tridgell
112faa49e6 don't require readline
(This used to be commit 2dbe70da8d)
2000-01-07 03:02:13 +00:00
Andrew Tridgell
e91ceacb6c - patch from Rusty to neaten up the code a bit
- fixed a race condition in tdb_open()
(This used to be commit 21d4882f64)
2000-01-07 03:01:55 +00:00
Andrew Tridgell
1f438ffb7e lower the default hash size a bit
(This used to be commit 51ed6e8cec)
2000-01-05 01:50:06 +00:00
Andrew Tridgell
8d1d27b43c ignore a few files
(This used to be commit 8767334d8a)
2000-01-03 03:39:04 +00:00
Andrew Tridgell
c0ad729de6 drop the alignment to 4 bytes - this makes tdb more space efficient
and doesn't seem to affect performance
(This used to be commit 1fb293732e)
2000-01-03 00:52:14 +00:00
Andrew Tridgell
8b1229c3fe updated docs
(This used to be commit c199ec9543)
2000-01-02 23:03:32 +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
321983bb6b show test result in ops/sec
(This used to be commit 88a146ab04)
2000-01-02 01:40:54 +00:00
Andrew Tridgell
7a0bc53221 - optimise tdb_store() a little
- prevent a free of an unallocated pointer
(This used to be commit b35b5c6388)
2000-01-02 01:40:35 +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
Andrew Tridgell
d6a5878c76 fixed more locking bugs - all seems OK now
(This used to be commit 584537961b)
1999-12-24 08:45:02 +00:00
Andrew Tridgell
c23a552c58 fixed locking code
(This used to be commit 1f5dc92404)
1999-12-23 01:14:20 +00:00
Andrew Tridgell
ecfee3f170 fixed a bug in the handling of tdb version number upgrade
(This used to be commit ed7541668e)
1999-12-22 01:31:09 +00:00
Andrew Tridgell
30cecd8d2c added some paranoia code
(This used to be commit c547ffa9e9)
1999-12-22 01:22:14 +00:00
Andrew Tridgell
d171864c93 expanded the tdb documentation
(This used to be commit efb4fbcca8)
1999-12-21 11:44:43 +00:00
Andrew Tridgell
4e1291a83f converted all our existing shared memory code to use a tdb database
instead of either sysv or mmap shared memory or lock files.

this means we can now completely remove
	locking_shm.c
	locking_slow.c
	shmem.c
	shmem_sysv.c
and lots of other things also got simpler

locking.c got a bit larger, but is much better compartmentalised now
(This used to be commit e48c2d9937)
1999-12-21 09:25:59 +00:00
Andrew Tridgell
69d24d869b first cut at using the tdb code for the connections structure, the
SWAT status page and smbstatus. It made the code _much_ simpler, I
wish we'd done a database module a long time ago!
(This used to be commit 4951755413)
1999-12-21 04:54:30 +00:00
Andrew Tridgell
c2c42b8694 first pass at the database code for Samba. This also includes a test
suite and a very simple tool for manuipulating the databases.

the main code is in tdb/tdb.c and includes both mmap and file based
IO. All databases auto-expand and allow multiple simultaneous writers.

the next step is using this new capability in lots of places in Samba
where we have existing ad-hoc databases
(This used to be commit c89d29cc5e)
1999-12-21 03:04:37 +00:00