------------------------------------------------------------
revno: 248
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Andrew Tridgell <[EMAIL PROTECTED]>
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);

Reply via email to