svn commit: samba r14792 - in
branches/SAMBA_4_0/source/ntvfs/posix: .
tridge at samba.org
tridge at samba.org
Thu Mar 30 01:09:47 GMT 2006
Author: tridge
Date: 2006-03-30 01:09:46 +0000 (Thu, 30 Mar 2006)
New Revision: 14792
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14792
Log:
when we enable fake oplocks, give out batch oplocks not exclusive oplocks
Modified:
branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c
Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c 2006-03-29 23:45:17 UTC (rev 14791)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c 2006-03-30 01:09:46 UTC (rev 14792)
@@ -710,7 +710,7 @@
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 @@
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;
}
More information about the samba-cvs
mailing list