Simo Sorce
d52172654c
Update tdb and talloc web pages
2009-05-05 19:04:39 -04:00
Simo Sorce
b58abb262c
Add release scripts for talloc and tdb
2009-05-05 09:51:00 -04:00
Tim Prouty
42c0931441
tdb: Remove unused variable
2009-03-31 16:24:07 -07:00
Andrew Tridgell
7a5e6940cf
up the version to 1.1.4 with the addition of
...
tdb_transaction_prepare_commit()
2009-03-31 15:06:23 +11:00
Andrew Tridgell
84547b8dba
added basic testing of tdb_transaction_prepare_commit() in tdbtorture
2009-03-31 13:59:03 +11:00
Howard Chu
b90863c0b7
Add tdb_transaction_prepare_commit()
...
Using tdb_transaction_prepare_commit() gives us 2-phase commits. This
allows us to safely commit across multiple tdb databases at once, with
reasonable transaction semantics
Signed-off-by: tridge@samba.org
2009-03-31 13:15:54 +11:00
Stefan Metzmacher
e17df483fb
lib/tdb: if we know pwrite and pread are thread/fork safe tdb_reopen_all() should be a noop
...
The reason for tdb_reopen_all() is that the seek pointer on fds are shared between
parent and child.
metze
2009-02-25 13:57:11 -08:00
Stefan Metzmacher
e6bb55c3d5
lib/tdb: don't generate a static library for the samba4 build
...
We also don't do this for talloc and ldb.
metze
2009-02-03 10:24:38 +01:00
Stefan Metzmacher
662e05f7a9
lib/tdb: the python bindings don't use swig anymore
...
metze
2009-02-02 15:16:08 +01:00
Tim Prouty
2c2545d45a
s3 build: Remove unused fstat check to fix a bunch of HAVE_FSTAT warnings
2009-01-30 14:41:07 -08:00
Stefan Metzmacher
3718cf294a
lib/tdb: include replace.h and system/filesys.h in pytdb.c
...
This fixes the build on Tru64.
metze
2009-01-30 19:38:59 +01:00
Jelmer Vernooij
ba5d6e6d70
Avoid using a utility header for Python replacements included in Samba,
...
since this will not be shipped with talloc/tdb/tevent/etc.
2009-01-08 12:20:20 +01:00
Tim Prouty
61a23c5eea
s3/s4 build: Fix Py_RETURN_NONE to work with python versions < 2.4
2009-01-07 15:03:16 -08:00
Jelmer Vernooij
d2c70d24e1
py: Properly increase the reference counter of Py_None.
2009-01-06 04:13:57 +01:00
Jeremy Allison
07e0094365
Fix all warnings in source3 with gcc4.3.
...
Jeremy.
2008-12-31 18:06:57 -08:00
Jelmer Vernooij
22703bf3ff
standalone: Use more variables, preparing to include these files from main
...
Samba 4 makefile.
2008-12-23 19:44:11 +01:00
Jelmer Vernooij
6704c27a78
Fix standalone build of tdb python module, update ignores for standalone tdb.
2008-12-22 23:39:30 +01:00
Jelmer Vernooij
6fe6983e4c
Make sure to not close tdb database more than once.
2008-12-18 20:42:50 +00:00
Jelmer Vernooij
8c1ede0b32
Remove swig use from tdb standalone build.
2008-12-18 19:49:53 +00:00
Jelmer Vernooij
2da551bbcc
Implement missing functions in pytdb.
2008-12-18 19:41:02 +00:00
Jelmer Vernooij
2a61fd41e9
Add simple manually written replacement for the tdb module.
2008-12-18 18:57:21 +00:00
Tim Prouty
e48a5cd5d4
s3/s4: Fix "shadows a global declaration" warning
2008-12-16 08:34:53 -08:00
Holger Hetterich
42366bcbbd
Added a simple tdb integrity check to tdbtool. The command "check" runs traverse on the currently open tdb, and returns the number of entries if the integrity check is successful.
2008-12-16 13:58:48 +01:00
Andrew Tridgell
936d76802f
imported the tdb_repack() code from CTDB
...
The tdb_repack() function repacks a TDB so that it has a single
freelist entry. The file doesn't shrink, but it does remove all
freelist fragmentation. This code originated in the CTDB vacuuming
code, but will now be used in ldb to cope with fragmentation from
re-indexing
2008-12-16 14:38:17 +11:00
Andrew Tridgell
2e4247782b
make tdbbackup use transactions
...
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
2008-12-16 14:36:56 +11:00
Stefan Metzmacher
8b7199e7b2
lib/tdb: increase the version number after some critial changes
...
The tdb_transaction/traverse interaction fixes are critical.
metze
2008-09-29 04:15:11 +02:00
Simo Sorce
3235e25425
Add shared-build target to tdb.
...
Useful to build multiple standalone libraries that depend on each other
without having to install them to the final install dir during the build.
2008-09-19 18:07:53 -04:00
Jelmer Vernooij
186d2d83cb
Provide tdb.open and ldb.open python functions.
2008-09-19 12:47:52 +02:00
Jelmer Vernooij
94855cd692
Move common libraries from root to lib/.
2008-09-17 14:11:12 +02:00