summaryrefslogtreecommitdiffstats
path: root/ctdb/lib/tdb/include/tdb.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-01-06 12:33:57 +1100
committerAndrew Tridgell <tridge@samba.org>2008-01-06 12:33:57 +1100
commitff039b405fa2bcdc5d48e1ddddf5e009e7ff49e9 (patch)
treef6dff43c6b0681f0440b5008c25676e7b7b94c1a /ctdb/lib/tdb/include/tdb.h
parent43aa27c9eee3fb585d633841e201c60c2e6b7aa0 (diff)
downloadsamba-ff039b405fa2bcdc5d48e1ddddf5e009e7ff49e9.tar.gz
samba-ff039b405fa2bcdc5d48e1ddddf5e009e7ff49e9.tar.xz
samba-ff039b405fa2bcdc5d48e1ddddf5e009e7ff49e9.zip
- added tdb_add_flags() and tdb_remove_flags()
- make freelist merging more paranoid - fixed TDB_DATA_STAART() (broken by earlier commit) (This used to be ctdb commit c3be8eb7d1ca316111ec51f45dbca2fa5609cf93)
Diffstat (limited to 'ctdb/lib/tdb/include/tdb.h')
-rw-r--r--ctdb/lib/tdb/include/tdb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ctdb/lib/tdb/include/tdb.h b/ctdb/lib/tdb/include/tdb.h
index 7de4c419a8..f6d4b4b1f4 100644
--- a/ctdb/lib/tdb/include/tdb.h
+++ b/ctdb/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,7 @@ 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);
extern TDB_DATA tdb_null;