summaryrefslogtreecommitdiff
path: root/lib/tdb2/tdb1_open.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-09-14 07:36:13 +0930
committerRusty Russell <rusty@rustcorp.com.au>2011-09-14 07:36:13 +0930
commit5a3f207318bee2fc2236ac1e19eda8ac2ae80829 (patch)
tree205526c73ec510f7faa47a4769296c0a20317277 /lib/tdb2/tdb1_open.c
parent9b98acbba304f2c1c1fba5bda672e1005151e526 (diff)
downloadsamba-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/tdb1_open.c')
-rw-r--r--lib/tdb2/tdb1_open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tdb2/tdb1_open.c b/lib/tdb2/tdb1_open.c
index 5176f57f77..d02a33eb85 100644
--- a/lib/tdb2/tdb1_open.c
+++ b/lib/tdb2/tdb1_open.c
@@ -180,7 +180,7 @@ struct tdb1_context *tdb1_open_ex(const char *name, int hash_size, int tdb1_flag
tdb->fd = -1;
tdb->name = NULL;
tdb->map_ptr = NULL;
- tdb->flags = tdb1_flags;
+ tdb->flags = tdb1_flags|TDB_VERSION1;
tdb->open_flags = open_flags;
if (log_ctx) {
tdb->log_fn = log_ctx->log_fn;