s3/smbd: update exclusive oplock optimisation to the lease area
authorRalph Boehme <slow@samba.org>
Thu, 4 May 2017 09:52:16 +0000 (11:52 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 12 May 2017 06:54:19 +0000 (08:54 +0200)
commitade0e8f473acd4c02537ab1177c114e035351014
tree9ff3e977621dd36ff65a12b0a614b843a3363c45
parent6b3ebfb7a507e7a3472da1bac01e47b2dcceaf61
s3/smbd: update exclusive oplock optimisation to the lease area

Update an optimisation in update_num_read_oplocks() that checks for
exclusive oplocks to the lease area.

The idea of the optimisation is to avoid expensive db queries in
brlock.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>
Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Sat May  6 22:58:47 CEST 2017 on sn-devel-144

(cherry picked from commit a50343779a8a92d6f53095b36506b1d47ef68513)
source3/smbd/oplock.c