s3/smbd: fix exclusive lease optimisation
authorRalph Boehme <slow@samba.org>
Fri, 26 May 2017 09:57:08 +0000 (11:57 +0200)
committerRalph Boehme <slow@samba.org>
Sun, 28 May 2017 12:50:18 +0000 (14:50 +0200)
commit19b938e1fa9822ac417a3b3a34519087470d7a18
tree0e6c28dfc90e480139d421c0118692ec2f745ffb
parent9d7739e819d5699209b5eacad4a0e2a8b8da0a86
s3/smbd: fix exclusive lease optimisation

We need to expect any amount of "stat" opens on the file without
triggering an assert.

This is the correct fix for bug #11844. I guess we haven't seens this
very often before bug #12766 got fixed, because most clients were using
LEASES instead of OPLOCKS.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12798

See also:
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11844
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12766

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Ralph Boehme <slow@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/oplock.c