summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-03-30 01:09:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:59:19 -0500
commit33f663b25206c6cc4b2c33dfca3983d9dfee73dc (patch)
tree8c79d1d2e0e95044c500573aeebcc047694ffce2 /source4/ntvfs/posix
parent57bde8631fc65f9b8e10eee7f948e5690412bead (diff)
downloadsamba-33f663b25206c6cc4b2c33dfca3983d9dfee73dc.tar.gz
samba-33f663b25206c6cc4b2c33dfca3983d9dfee73dc.tar.bz2
samba-33f663b25206c6cc4b2c33dfca3983d9dfee73dc.zip
r14792: when we enable fake oplocks, give out batch oplocks not exclusive oplocks
(This used to be commit 182aee1a213c1219772895deed31e1ed8aed00c4)
Diffstat (limited to 'source4/ntvfs/posix')
-rw-r--r--source4/ntvfs/posix/pvfs_open.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/ntvfs/posix/pvfs_open.c b/source4/ntvfs/posix/pvfs_open.c
index 3c3e13bc91..1b1c32cab5 100644
--- a/source4/ntvfs/posix/pvfs_open.c
+++ b/source4/ntvfs/posix/pvfs_open.c
@@ -710,7 +710,7 @@ static NTSTATUS pvfs_create_file(struct pvfs_state *pvfs,
if (pvfs->flags & PVFS_FLAG_FAKE_OPLOCKS) {
- io->generic.out.oplock_level = OPLOCK_EXCLUSIVE;
+ io->generic.out.oplock_level = OPLOCK_BATCH;
} else {
io->generic.out.oplock_level = OPLOCK_NONE;
}
@@ -1238,7 +1238,7 @@ NTSTATUS pvfs_open(struct ntvfs_module_context *ntvfs,
talloc_free(lck);
if (pvfs->flags & PVFS_FLAG_FAKE_OPLOCKS) {
- io->generic.out.oplock_level = OPLOCK_EXCLUSIVE;
+ io->generic.out.oplock_level = OPLOCK_BATCH;
} else {
io->generic.out.oplock_level = OPLOCK_NONE;
}