summaryrefslogtreecommitdiff
path: root/source3/tdb/include
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-03-06 10:11:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:25 -0500
commit59285f16d6428477b3a065fdf52098af1d62f606 (patch)
treec3683305e856c527b2aa08d00b2ef1963a51a538 /source3/tdb/include
parentba992d5ad7bc2e32b2b458d8d91ca450e97513c3 (diff)
downloadsamba-59285f16d6428477b3a065fdf52098af1d62f606.tar.gz
samba-59285f16d6428477b3a065fdf52098af1d62f606.tar.bz2
samba-59285f16d6428477b3a065fdf52098af1d62f606.zip
r21722: Add the dead record functionality presented on samba-technical@samba.org. If
you do a tdb_set_max_dead(tdb, n), then for this tdb a delete operation will only mark a record as dead and re-use it if a new record is created. The parameter n allows for at most n dead records per hash chain. If this number is exceeded, all dead records are put on the central freelist. Volker (This used to be commit 97af3a019b196d530a50ffc05c57568e2dbda4bb)
Diffstat (limited to 'source3/tdb/include')
-rw-r--r--source3/tdb/include/tdb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/tdb/include/tdb.h b/source3/tdb/include/tdb.h
index a0f6f98382..51bf709f44 100644
--- a/source3/tdb/include/tdb.h
+++ b/source3/tdb/include/tdb.h
@@ -94,6 +94,7 @@ struct tdb_context *tdb_open_ex(const char *name, int hash_size, int tdb_flags,
int open_flags, mode_t mode,
const struct tdb_logging_context *log_ctx,
tdb_hash_func hash_fn);
+void tdb_set_max_dead(struct tdb_context *tdb, int max_dead);
int tdb_reopen(struct tdb_context *tdb);
int tdb_reopen_all(int parent_longlived);