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)
committerRalph Boehme <slow@samba.org>
Sat, 6 May 2017 20:58:47 +0000 (22:58 +0200)
commita50343779a8a92d6f53095b36506b1d47ef68513
treeaef2e129f15ce19bb3b52421bdaa3b58a169d5c8
parent0a4a08ad1cef3b7d6fd47df3a93c2c89dd287ee8
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
source3/smbd/oplock.c