git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57bde86
)
r14792: when we enable fake oplocks, give out batch oplocks not exclusive oplocks
author
Andrew Tridgell
<tridge@samba.org>
Thu, 30 Mar 2006 01:09:46 +0000
(
01:09
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:59:19 +0000
(13:59 -0500)
(This used to be commit
182aee1a213c1219772895deed31e1ed8aed00c4
)
source4/ntvfs/posix/pvfs_open.c
patch
|
blob
|
history
diff --git
a/source4/ntvfs/posix/pvfs_open.c
b/source4/ntvfs/posix/pvfs_open.c
index 3c3e13bc91d88fd31b2e0ab7c5510a912b028502..1b1c32cab5b2628ba856f0586cc55ffe12a11edf 100644
(file)
--- 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;
}