diff options
author | Jeremy Allison <jra@samba.org> | 2008-01-11 15:08:37 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-01-11 15:08:37 -0800 |
commit | 2ec41571a3efbea254cc3e132280a194c86a2f89 (patch) | |
tree | cc324e5f6cabfb4e017dfe021afd95cdd2738995 /source3/lib/tdb/include/tdb.h | |
parent | 9cd74303478ac15b4357fb7f76d9576fe9a060a1 (diff) | |
download | samba-2ec41571a3efbea254cc3e132280a194c86a2f89.tar.gz samba-2ec41571a3efbea254cc3e132280a194c86a2f89.tar.bz2 samba-2ec41571a3efbea254cc3e132280a194c86a2f89.zip |
Sync tdb with the tdb changes in ctdb. Spoke to tridge about
this. Fixes insidious problem with order n^2 freelist merging.
Jeremy.
(This used to be commit c6609c042b128e7d63eb64cfdfb0f6b65cb59d76)
Diffstat (limited to 'source3/lib/tdb/include/tdb.h')
-rw-r--r-- | source3/lib/tdb/include/tdb.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/tdb/include/tdb.h b/source3/lib/tdb/include/tdb.h index fce6628b84..0008085de5 100644 --- a/source3/lib/tdb/include/tdb.h +++ b/source3/lib/tdb/include/tdb.h @@ -135,6 +135,8 @@ int tdb_get_seqnum(struct tdb_context *tdb); int tdb_hash_size(struct tdb_context *tdb); size_t tdb_map_size(struct tdb_context *tdb); int tdb_get_flags(struct tdb_context *tdb); +void tdb_add_flags(struct tdb_context *tdb, unsigned flag); +void tdb_remove_flags(struct tdb_context *tdb, unsigned flag); void tdb_enable_seqnum(struct tdb_context *tdb); void tdb_increment_seqnum_nonblock(struct tdb_context *tdb); @@ -153,6 +155,8 @@ void tdb_setalarm_sigptr(struct tdb_context *tdb, volatile sig_atomic_t *sigptr) void tdb_dump_all(struct tdb_context *tdb); int tdb_printfreelist(struct tdb_context *tdb); int tdb_validate_freelist(struct tdb_context *tdb, int *pnum_entries); +int tdb_wipe_all(struct tdb_context *tdb); +int tdb_freelist_size(struct tdb_context *tdb); extern TDB_DATA tdb_null; |