Rev 248: added a tdb_enable_seqnum() function in http://samba.org/~tridge/ctdb

tridge at samba.org tridge at samba.org
Fri May 4 05:29:11 GMT 2007


------------------------------------------------------------
revno: 248
revision-id: tridge at samba.org-20070504052910-297ykux8e77ka6p0
parent: tridge at samba.org-20070504032530-ni45j80aucjdgxfe
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Fri 2007-05-04 15:29:10 +1000
message:
  added a tdb_enable_seqnum() function
modified:
  lib/tdb/common/tdb.c           tdb.c-20070220022425-m1wibgjq7n5hahs6-9
  lib/tdb/include/tdb.h          tdb.h-20070125040949-7t3f5zdl1q4z9hyv-101
=== modified file 'lib/tdb/common/tdb.c'
--- a/lib/tdb/common/tdb.c	2007-04-16 12:52:58 +0000
+++ b/lib/tdb/common/tdb.c	2007-05-04 05:29:10 +0000
@@ -649,3 +649,11 @@
 	return tdb->flags;
 }
 
+
+/*
+  enable sequence number handling on an open tdb
+*/
+void tdb_enable_seqnum(struct tdb_context *tdb)
+{
+	tdb->flags |= TDB_SEQNUM;
+}

=== modified file 'lib/tdb/include/tdb.h'
--- a/lib/tdb/include/tdb.h	2007-04-16 13:03:36 +0000
+++ b/lib/tdb/include/tdb.h	2007-05-04 05:29:10 +0000
@@ -131,6 +131,7 @@
 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_enable_seqnum(struct tdb_context *tdb);
 
 /* Low level locking functions: use with care */
 int tdb_chainlock(struct tdb_context *tdb, TDB_DATA key);



More information about the samba-cvs mailing list