summaryrefslogtreecommitdiff
path: root/source4/ntvfs/common
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-04-05 03:51:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:49:48 -0500
commit66156220ebf5dc212e9aa86015b7301d1b665b50 (patch)
tree08bebff7187077845d1a81ae37d14d1bbf10cd3b /source4/ntvfs/common
parent7196090bfd73ab64fd0095ce3ed612bc7978a810 (diff)
downloadsamba-66156220ebf5dc212e9aa86015b7301d1b665b50.tar.gz
samba-66156220ebf5dc212e9aa86015b7301d1b665b50.tar.bz2
samba-66156220ebf5dc212e9aa86015b7301d1b665b50.zip
r22082: merged the ctdb changes from bzr
added opendb ctdb backend from ronnie (This used to be commit b0da25cb79f860bfa14ba7a8419c7996d936292b)
Diffstat (limited to 'source4/ntvfs/common')
-rw-r--r--source4/ntvfs/common/config.mk2
-rw-r--r--source4/ntvfs/common/opendb.c6
-rw-r--r--source4/ntvfs/common/opendb.h2
3 files changed, 7 insertions, 3 deletions
diff --git a/source4/ntvfs/common/config.mk b/source4/ntvfs/common/config.mk
index 665e8e255b..5c744f9c90 100644
--- a/source4/ntvfs/common/config.mk
+++ b/source4/ntvfs/common/config.mk
@@ -10,6 +10,6 @@ OBJ_FILES = \
opendb_tdb.o \
notify.o
PUBLIC_DEPENDENCIES = NDR_OPENDB NDR_NOTIFY sys_notify share
-PRIVATE_DEPENDENCIES = brlock_ctdb
+PRIVATE_DEPENDENCIES = brlock_ctdb opendb_ctdb
# End LIBRARY ntvfs_common
################################################
diff --git a/source4/ntvfs/common/opendb.c b/source4/ntvfs/common/opendb.c
index c17b819c04..ea27efdf3b 100644
--- a/source4/ntvfs/common/opendb.c
+++ b/source4/ntvfs/common/opendb.c
@@ -62,7 +62,11 @@ _PUBLIC_ struct odb_context *odb_init(TALLOC_CTX *mem_ctx,
struct ntvfs_context *ntvfs_ctx)
{
if (ops == NULL) {
- odb_tdb_init_ops();
+ if (lp_parm_bool(-1, "ctdb", "opendb", False)) {
+ odb_ctdb_init_ops();
+ } else {
+ odb_tdb_init_ops();
+ }
}
return ops->odb_init(mem_ctx, ntvfs_ctx);
}
diff --git a/source4/ntvfs/common/opendb.h b/source4/ntvfs/common/opendb.h
index 9d6c18c471..85bb678d77 100644
--- a/source4/ntvfs/common/opendb.h
+++ b/source4/ntvfs/common/opendb.h
@@ -46,4 +46,4 @@ struct opendb_ops {
void odb_set_ops(const struct opendb_ops *new_ops);
void odb_tdb_init_ops(void);
-
+void odb_ctdb_init_ops(void);