summaryrefslogtreecommitdiff
path: root/source3/lib/dbwrap
diff options
context:
space:
mode:
authorGregor Beck <gbeck@sernet.de>2011-11-08 16:06:56 +0100
committerStefan Metzmacher <metze@samba.org>2012-09-21 18:05:56 +0200
commitbfafb0ce838c0cc3003c35e16c99d9eb9e1266a8 (patch)
treefd0829928a5c79833e715b5e5754b20d430259b6 /source3/lib/dbwrap
parent160ca49953570fe55fe089241d1ba6ed1c9c9783 (diff)
downloadsamba-bfafb0ce838c0cc3003c35e16c99d9eb9e1266a8.tar.gz
samba-bfafb0ce838c0cc3003c35e16c99d9eb9e1266a8.tar.bz2
samba-bfafb0ce838c0cc3003c35e16c99d9eb9e1266a8.zip
s3:dbwrap_ctdb: set errno = ENOSYS if clustering is not supported
Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Sep 21 18:05:56 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/lib/dbwrap')
-rw-r--r--source3/lib/dbwrap/dbwrap_ctdb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c
index 6d46586896..9a03607a40 100644
--- a/source3/lib/dbwrap/dbwrap_ctdb.c
+++ b/source3/lib/dbwrap/dbwrap_ctdb.c
@@ -1642,6 +1642,7 @@ struct db_context *db_open_ctdb(TALLOC_CTX *mem_ctx,
enum dbwrap_lock_order lock_order)
{
DEBUG(3, ("db_open_ctdb: no cluster support!\n"));
+ errno = ENOSYS;
return NULL;
}