diff options
Diffstat (limited to 'lib/tdb_compat')
-rw-r--r-- | lib/tdb_compat/tdb_compat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/tdb_compat/tdb_compat.c b/lib/tdb_compat/tdb_compat.c index d5d8f09c64..b37e6cc7ba 100644 --- a/lib/tdb_compat/tdb_compat.c +++ b/lib/tdb_compat/tdb_compat.c @@ -96,6 +96,10 @@ tdb_open_compat_(const char *name, int hash_size, { union tdb_attribute cif, log, hash, max_dead, hsize, *attr = NULL; + if (!getenv("TDB_COMPAT_USE_TDB2")) { + tdb_flags |= TDB_VERSION1; + } + if (log_fn) { log.log.base.attr = TDB_ATTRIBUTE_LOG; log.log.base.next = NULL; |