From: Andrew Tridgell Date: Tue, 17 Apr 2007 05:32:49 +0000 (+1000) Subject: now that both daemon and client access the database, it needs to be a real disk file X-Git-Tag: tevent-0.9.20~348^2~2903 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5299b7e0e2c4f832f91ab5e26d44398cc4bd8a3f;p=thirdparty%2Fsamba.git now that both daemon and client access the database, it needs to be a real disk file (This used to be ctdb commit 5159f3a61f41bbaf563edd8d901a6bf5bfee4e4e) --- diff --git a/ctdb/common/ctdb_ltdb.c b/ctdb/common/ctdb_ltdb.c index c523d5f9952..e2aa47e4cdd 100644 --- a/ctdb/common/ctdb_ltdb.c +++ b/ctdb/common/ctdb_ltdb.c @@ -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);