git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33188a9
)
dbwrap: when clustering = yes, don't fall back to db_open_tdb in db_open_trans.
author
Michael Adam
<obnox@samba.org>
Mon, 14 Jul 2008 08:53:06 +0000
(10:53 +0200)
committer
Michael Adam
<obnox@samba.org>
Tue, 15 Jul 2008 11:55:33 +0000
(13:55 +0200)
Michael
source/lib/dbwrap.c
patch
|
blob
|
history
diff --git
a/source/lib/dbwrap.c
b/source/lib/dbwrap.c
index a686ba6b7c4e56dd657eeb55da7e75d563fa148f..6dfe0b37665fd7b6d4eadeff376febcddba75cfb 100644
(file)
--- a/
source/lib/dbwrap.c
+++ b/
source/lib/dbwrap.c
@@
-127,8
+127,15
@@
struct db_context *db_open_trans(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) {