tdb2: make tdb1 use same low-level lock functions.
[ccan] / ccan / tdb2 / tdb1_open.c
index 5c4f62f67c8c3f3d572a8576e049344d5e1206e1..1fe981ac76b2a7f688ad6c4c70f534235f4e3001 100644 (file)
@@ -189,6 +189,8 @@ struct tdb1_context *tdb1_open_ex(const char *name, int hash_size, int tdb1_flag
        tdb->file->map_ptr = NULL;
        tdb->flags = tdb1_flags|TDB_VERSION1;
        tdb->open_flags = open_flags;
+       tdb->lock_fn = tdb_fcntl_lock;
+       tdb->unlock_fn = tdb_fcntl_unlock;
        if (log_ctx) {
                tdb->log_fn = log_ctx->log_fn;
                tdb->log_data = log_ctx->log_private;