summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-10-29 14:48:58 +0200
committerMichael Adam <obnox@samba.org>2011-10-30 18:41:20 +0100
commitde967f22fc9e5a6f9f95be90e882935761295917 (patch)
tree70bbcfea1a85bcca2805be8bc762fca13f9ecac2
parent69ca2bd048fa8ec98ab668baf651d3e84f7e919c (diff)
downloadsamba-de967f22fc9e5a6f9f95be90e882935761295917.tar.gz
samba-de967f22fc9e5a6f9f95be90e882935761295917.tar.bz2
samba-de967f22fc9e5a6f9f95be90e882935761295917.zip
s4:torture: test also break semantics between batch-oplocks and leases
This must have been a typo (listing EXCLUSIVE twice). But BATCH and EXCLUSIVE oplocks apparently share the same break semantics with respect to leases.
-rw-r--r--source4/torture/smb2/lease.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/smb2/lease.c b/source4/torture/smb2/lease.c
index 564394f31e..3d3f17d08e 100644
--- a/source4/torture/smb2/lease.c
+++ b/source4/torture/smb2/lease.c
@@ -550,7 +550,7 @@ static inline uint32_t oplock(const char *op) {
case 'x':
return SMB2_OPLOCK_LEVEL_EXCLUSIVE;
case 'b':
- return SMB2_OPLOCK_LEVEL_EXCLUSIVE;
+ return SMB2_OPLOCK_LEVEL_BATCH;
default:
continue;
}