1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

dbwrap: when clustering = yes, don't fall back to db_open_tdb in db_open

Michael
This commit is contained in:
Michael Adam 2008-07-14 10:43:28 +02:00
parent 5a0883a7f2
commit 33188a991f

View File

@ -60,8 +60,15 @@ struct db_context *db_open(TALLOC_CTX *mem_ctx,
sockname = CTDB_PATH;
}
if (lp_clustering() && socket_exist(sockname)) {
if (lp_clustering()) {
const char *partname;
if (!socket_exist(sockname)) {
DEBUG(1, ("ctdb socket does not exist - is ctdb not "
"running?\n"));
return NULL;
}
/* ctdb only wants the file part of the name */
partname = strrchr(name, '/');
if (partname) {