summaryrefslogtreecommitdiff
path: root/source4/cluster/ctdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-03-27 20:32:02 +1100
committerAndrew Bartlett <abartlet@samba.org>2008-03-27 20:32:02 +1100
commit4fc27c9969960dfef73ad80438d274e0f45e119e (patch)
treeea558da1f71c52f8c1daa13de7eff7ecb72d322e /source4/cluster/ctdb
parent83ea6d5f55dcb18da48cee880624ed4530f9c05f (diff)
downloadsamba-4fc27c9969960dfef73ad80438d274e0f45e119e.tar.gz
samba-4fc27c9969960dfef73ad80438d274e0f45e119e.tar.bz2
samba-4fc27c9969960dfef73ad80438d274e0f45e119e.zip
Make oplocks a per-share option.
This even goes via the share options system (a very odd layer of indirection). Andrew Bartlett (This used to be commit f2c65f9907760b8852b70c53637388f08751ba88)
Diffstat (limited to 'source4/cluster/ctdb')
-rw-r--r--source4/cluster/ctdb/opendb_ctdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/cluster/ctdb/opendb_ctdb.c b/source4/cluster/ctdb/opendb_ctdb.c
index 402f3a2a1a..f0366ceb49 100644
--- a/source4/cluster/ctdb/opendb_ctdb.c
+++ b/source4/cluster/ctdb/opendb_ctdb.c
@@ -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 = lp_parm_bool(ntvfs_ctx->lp_ctx, NULL, "opendb", "oplocks", false);
+ odb->oplocks = share_bool_option(ntvfs->ctx->config, SHARE_OPLOCKS, SHARE_OPLOCKS_DEFAULT);
return odb;
}