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:
parent
5a0883a7f2
commit
33188a991f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user