summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-04-14 12:53:11 +0200
committerVolker Lendecke <vl@samba.org>2008-04-14 13:13:46 +0200
commit313abd3ac22005800e625a9931e9c403d60b8c79 (patch)
treeee391c49da7e06514ef4d643fd6b2a9e43305ed8 /source3/lib
parente33b13e826b9628fd03f2bd6a3c97a7ac90b4259 (diff)
downloadsamba-313abd3ac22005800e625a9931e9c403d60b8c79.tar.gz
samba-313abd3ac22005800e625a9931e9c403d60b8c79.tar.bz2
samba-313abd3ac22005800e625a9931e9c403d60b8c79.zip
Fix the build of db_open_trans with CLUSTER_SUPPORT enabled
Metze, you might want to check this. (This used to be commit 3b4a402bc5c3490000581d43a12388883bcf8150)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/dbwrap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/dbwrap.c b/source3/lib/dbwrap.c
index d688b83d73..7fe1631bff 100644
--- a/source3/lib/dbwrap.c
+++ b/source3/lib/dbwrap.c
@@ -131,6 +131,7 @@ struct db_context *db_open_trans(TALLOC_CTX *mem_ctx,
}
/* allow ctdb for individual databases to be disabled */
if (lp_parm_bool(-1, "ctdb", partname, true)) {
+ struct db_context *result = NULL;
result = db_open_ctdb(mem_ctx, partname, hash_size,
tdb_flags, open_flags, mode);
if (result == NULL) {
@@ -139,6 +140,7 @@ struct db_context *db_open_trans(TALLOC_CTX *mem_ctx,
smb_panic("failed to attach to a ctdb "
"database");
}
+ return result;
}
}
#endif