s3/smbd: fix exclusive lease optimisation
commit29196ec24a7a184efc0e9f7b49ecfee31c689c4c
authorRalph Boehme <slow@samba.org>
Fri, 26 May 2017 09:57:08 +0000 (26 11:57 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 2 Jun 2017 08:01:16 +0000 (2 10:01 +0200)
tree882a1546ca39eafb42da96803922b90b2ed8ea05
parent44ca4507743602686ecc233ecd9a97aa31dcdfbf
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>
(cherry picked from commit 19b938e1fa9822ac417a3b3a34519087470d7a18)
source3/smbd/oplock.c