s3/smbd: update exclusive oplock optimisation to the lease area
authorRalph Boehme <slow@samba.org>
Thu, 20 Apr 2017 19:37:37 +0000 (21:37 +0200)
committerRalph Boehme <slow@samba.org>
Sat, 6 May 2017 17:01:15 +0000 (19:01 +0200)
commit0a4a08ad1cef3b7d6fd47df3a93c2c89dd287ee8
treeaf9ffc9769a7c81a4c8261706fac7a8a12399ea6
parentf631e95e2de857ea98204609a71e6db00993994b
s3/smbd: update exclusive oplock optimisation to the lease area

This is similar to 9533a55ee5ffe430589dcea845851b84876ef656 but this
time in the contend_level2_oplocks_begin_default() function.

The idea of the optimisation is to avoid expensive db queries in
locking.tdb if we *know* we're the only open.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12766

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