diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-09-14 07:36:13 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-09-14 07:36:13 +0930 |
commit | 5a3f207318bee2fc2236ac1e19eda8ac2ae80829 (patch) | |
tree | 205526c73ec510f7faa47a4769296c0a20317277 /lib/tdb2/tdb2.h | |
parent | 9b98acbba304f2c1c1fba5bda672e1005151e526 (diff) | |
download | samba-5a3f207318bee2fc2236ac1e19eda8ac2ae80829.tar.gz samba-5a3f207318bee2fc2236ac1e19eda8ac2ae80829.tar.bz2 samba-5a3f207318bee2fc2236ac1e19eda8ac2ae80829.zip |
tdb2: add TDB_VERSION1 flag.
This will be set for old TDBs; we can start distinguishing paths based
on it now.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 2b50be90a23893a06e0f1436a31d18b97ad0e11d)
Diffstat (limited to 'lib/tdb2/tdb2.h')
-rw-r--r-- | lib/tdb2/tdb2.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tdb2/tdb2.h b/lib/tdb2/tdb2.h index 0d7be789db..3939c4abe9 100644 --- a/lib/tdb2/tdb2.h +++ b/lib/tdb2/tdb2.h @@ -88,6 +88,7 @@ struct tdb_context *tdb_open(const char *name, int tdb_flags, #define TDB_SEQNUM 128 /* maintain a sequence number */ #define TDB_ALLOW_NESTING 256 /* fake nested transactions */ #define TDB_RDONLY 512 /* implied by O_RDONLY */ +#define TDB_VERSION1 1024 /* create/open an old style TDB */ /** * tdb_close - close and free a tdb. |