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

217 Commits

Author SHA1 Message Date
Andrew Tridgell
21d4882f64 - patch from Rusty to neaten up the code a bit
- fixed a race condition in tdb_open()
0001-01-01 00:00:00 +00:00
Andrew Tridgell
51ed6e8cec lower the default hash size a bit 0001-01-01 00:00:00 +00:00
Andrew Tridgell
8767334d8a ignore a few files 0001-01-01 00:00:00 +00:00
Andrew Tridgell
1fb293732e drop the alignment to 4 bytes - this makes tdb more space efficient
and doesn't seem to affect performance
0001-01-01 00:00:00 +00:00
Andrew Tridgell
c199ec9543 updated docs 0001-01-01 00:00:00 +00:00
Andrew Tridgell
00e9da3ca5 - 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
0001-01-01 00:00:00 +00:00
Andrew Tridgell
88a146ab04 show test result in ops/sec 0001-01-01 00:00:00 +00:00
Andrew Tridgell
b35b5c6388 - optimise tdb_store() a little
- prevent a free of an unallocated pointer
0001-01-01 00:00:00 +00:00
Andrew Tridgell
3b3fdd8661 a useful locking tester - it uses lots of simultaneous writers 0001-01-01 00:00:00 +00:00
Andrew Tridgell
584537961b fixed more locking bugs - all seems OK now 0001-01-01 00:00:00 +00:00
Andrew Tridgell
1f5dc92404 fixed locking code 0001-01-01 00:00:00 +00:00
Andrew Tridgell
ed7541668e fixed a bug in the handling of tdb version number upgrade 0001-01-01 00:00:00 +00:00
Andrew Tridgell
c547ffa9e9 added some paranoia code 0001-01-01 00:00:00 +00:00
Andrew Tridgell
efb4fbcca8 expanded the tdb documentation 0001-01-01 00:00:00 +00:00
Andrew Tridgell
e48c2d9937 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
0001-01-01 00:00:00 +00:00
Andrew Tridgell
4951755413 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!
0001-01-01 00:00:00 +00:00
Andrew Tridgell
c89d29cc5e 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
0001-01-01 00:00:00 +00:00