Fix references to ntvfs share config
authorAndrew Bartlett <abartlet@samba.org>
Thu, 27 Mar 2008 09:40:40 +0000 (20:40 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 27 Mar 2008 09:40:40 +0000 (20:40 +1100)
Andrew Bartlett

source/cluster/ctdb/opendb_ctdb.c
source/ntvfs/common/opendb_tdb.c

index f0366ceb4978f0a2ffac061b85c7a50f4bed08bd..ed09cf0bbcc9efd0e1a00f58a5c12cc02ae8c126 100644 (file)
@@ -97,7 +97,7 @@ static struct odb_context *odb_ctdb_init(TALLOC_CTX *mem_ctx,
        odb->ntvfs_ctx = ntvfs_ctx;
 
        /* leave oplocks disabled by default until the code is working */
-       odb->oplocks = share_bool_option(ntvfs->ctx->config, SHARE_OPLOCKS, SHARE_OPLOCKS_DEFAULT);
+       odb->oplocks = share_bool_option(ntvfs_ctx->config, SHARE_OPLOCKS, SHARE_OPLOCKS_DEFAULT);
 
        return odb;
 }
index 40a1d27f3016966692eaf1c7663e7328ac013b98..99c0a95c20a4cac21853e6b50cd1a6f9b5e60af7 100644 (file)
@@ -101,7 +101,7 @@ static struct odb_context *odb_tdb_init(TALLOC_CTX *mem_ctx,
 
        odb->ntvfs_ctx = ntvfs_ctx;
 
-       odb->oplocks = share_bool_option(ntvfs_ctx->ctx->config, SHARE_OPLOCKS, SHARE_OPLOCKS_DEFAULT);
+       odb->oplocks = share_bool_option(ntvfs_ctx->config, SHARE_OPLOCKS, SHARE_OPLOCKS_DEFAULT);
 
        odb->lease_ctx = sys_lease_context_create(ntvfs_ctx->config, odb,
                                                  ntvfs_ctx->event_ctx,