]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
now that both daemon and client access the database, it needs to be a real disk file
authorAndrew Tridgell <tridge@samba.org>
Tue, 17 Apr 2007 05:32:49 +0000 (15:32 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 17 Apr 2007 05:32:49 +0000 (15:32 +1000)
(This used to be ctdb commit 5159f3a61f41bbaf563edd8d901a6bf5bfee4e4e)

ctdb/common/ctdb_ltdb.c

index c523d5f9952fd1e9a61c857bba3c0b149536f96e..e2aa47e4cdda7898df64e8aa13caabfdd12ee2a0 100644 (file)
@@ -85,7 +85,7 @@ struct ctdb_db_context *ctdb_attach(struct ctdb_context *ctdb, const char *name,
        /* when we have a separate daemon this will need to be a real
           file, not a TDB_INTERNAL, so the parent can access it to
           for ltdb bypass */
-       ctdb_db->ltdb = tdb_wrap_open(ctdb, name, 0, TDB_INTERNAL, open_flags, mode);
+       ctdb_db->ltdb = tdb_wrap_open(ctdb, name, 0, TDB_DEFAULT, open_flags, mode);
        if (ctdb_db->ltdb == NULL) {
                ctdb_set_error(ctdb, "Failed to open tdb %s\n", name);
                talloc_free(ctdb_db);