tdb_compat: use tdb_open_compat.
[ira/wip.git] / source3 / smbd / mangle_hash.c
index 988251e87879e1a10d0da34ad452fbe1d17717d4..c196a13ed029486d0094a6b971a4e7e9b3277a20 100644 (file)
@@ -773,8 +773,13 @@ const struct mangle_fns *mangle_hash_init(void)
        mangle_reset();
 
        /* Create the in-memory tdb using our custom hash function. */
+#ifndef BUILD_TDB2
        tdb_mangled_cache = tdb_open_ex("mangled_cache", 1031, TDB_INTERNAL,
                                (O_RDWR|O_CREAT), 0644, NULL, fast_string_hash);
+#else
+       /* FIXME: We should *never* open a tdb without logging! */
+       tdb_mangled_cache = tdb_open("mangled_cache", TDB_INTERNAL, 0, 0, NULL);
+#endif
 
        return &mangle_hash_fns;
 }