summaryrefslogtreecommitdiff
path: root/source3/lib/dbwrap
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-03-30 15:37:33 +0200
committerVolker Lendecke <vl@samba.org>2012-04-17 10:21:00 +0200
commita49ac23a10bfe4098cb46b39d3152571a2562a38 (patch)
tree3e6ce06c9f1837f6ade3f956f020e4f9d0734f87 /source3/lib/dbwrap
parent6235b761f6eab3ec3d8492ba146e8d9efe6944a6 (diff)
downloadsamba-a49ac23a10bfe4098cb46b39d3152571a2562a38.tar.gz
samba-a49ac23a10bfe4098cb46b39d3152571a2562a38.tar.bz2
samba-a49ac23a10bfe4098cb46b39d3152571a2562a38.zip
s3: Return CTDB_PATH from lp_ctdbd_socket()
All callers had that fallback
Diffstat (limited to 'source3/lib/dbwrap')
-rw-r--r--source3/lib/dbwrap/dbwrap_open.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/source3/lib/dbwrap/dbwrap_open.c b/source3/lib/dbwrap/dbwrap_open.c
index 06ae7c6eff..9bf279b1d8 100644
--- a/source3/lib/dbwrap/dbwrap_open.c
+++ b/source3/lib/dbwrap/dbwrap_open.c
@@ -34,10 +34,6 @@ bool db_is_local(const char *name)
#ifdef CLUSTER_SUPPORT
const char *sockname = lp_ctdbd_socket();
- if(!sockname || !*sockname) {
- sockname = CTDB_PATH;
- }
-
if (lp_clustering() && socket_exist(sockname)) {
const char *partname;
/* ctdb only wants the file part of the name */
@@ -83,10 +79,6 @@ struct db_context *db_open(TALLOC_CTX *mem_ctx,
#ifdef CLUSTER_SUPPORT
sockname = lp_ctdbd_socket();
- if(!sockname || !*sockname) {
- sockname = CTDB_PATH;
- }
-
if (lp_clustering()) {
const char *partname;