r25430: Add the loadparm context to all parametric options.
[ab/samba.git/.git] / source4 / ntvfs / common / opendb.c
index 1b1573bc9610a2f878fe3e6bc77045b8f6e86c0c..112de1d7d44aba55a90801dab3983b82cf15a503 100644 (file)
@@ -62,7 +62,7 @@ _PUBLIC_ struct odb_context *odb_init(TALLOC_CTX *mem_ctx,
                                      struct ntvfs_context *ntvfs_ctx)
 {
        if (ops == NULL) {
-               if (lp_parm_bool(NULL, "ctdb", "opendb", false)) {
+               if (lp_parm_bool(global_loadparm, NULL, "ctdb", "opendb", false)) {
                        odb_ctdb_init_ops();
                } else {
                        odb_tdb_init_ops();