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

19 Commits

Author SHA1 Message Date
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