[PATCH] Fix bug 12628 - is_locked optimization does not carry over from oplocks to leases

Ralph Böhme slow at samba.org
Tue Mar 14 21:19:20 UTC 2017


On Tue, Mar 14, 2017 at 01:45:22PM -0700, Jeremy Allison wrote:
> Re-adds an optimization that got lost when
> we moved from oplocks -> leases.
> 
> The first patch is only needed due to
> build-system buggery to do with source3/locking/locking.c
> being used in smbstatus and other external things.
> 
> Please review and push if happy !

oh, good catch! Was looking at this code just today and didn't notice. :)

pushed with some minor reindetataion of the DEBUG statement and an adjustment to
adhere to README.Coding (multiline if condition). Sorry, couldn't resist... :)

Cheerio!
-slow



More information about the samba-technical mailing list