diff options
Diffstat (limited to 'source4/ntvfs/common/opendb.c')
-rw-r--r-- | source4/ntvfs/common/opendb.c | 6 |
1 files changed, 5 insertions, 1 deletions
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); } |