s4:torture: test also break semantics between batch-oplocks and leases
authorMichael Adam <obnox@samba.org>
Sat, 29 Oct 2011 12:48:58 +0000 (14:48 +0200)
committerMichael Adam <obnox@samba.org>
Sun, 30 Oct 2011 17:41:20 +0000 (18:41 +0100)
This must have been a typo (listing EXCLUSIVE twice).
But BATCH and EXCLUSIVE oplocks apparently share the
same break semantics with respect to leases.

source4/torture/smb2/lease.c

index 564394f31e28841cbcf44c67d0bef6952547a728..3d3f17d08ed6bf793e29bad81e87ff99b1606ff2 100644 (file)
@@ -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;
                }