]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/tdb1_open.c
tdb2: add TDB_VERSION1 flag.
[ccan] / ccan / tdb2 / tdb1_open.c
index 5176f57f77666dd264a6c2d2dfb693693978fb9f..d02a33eb85c506ba5aa375171588203d85cfb31f 100644 (file)
@@ -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;