s3/locking: Fix logging of lock reference count
authorAnoop C S <anoopcs@redhat.com>
Tue, 18 Sep 2018 16:23:54 +0000 (21:53 +0530)
committerVolker Lendecke <vl@samba.org>
Tue, 2 Oct 2018 08:40:05 +0000 (10:40 +0200)
commit380066d2e5065e987f9249d8edb68f545b3b6b76
treefca725a33525a12b1d6e54269a03f9c98f3f1c11
parent46e171e2e07e61d1184b185989bca5e5e29313d4
s3/locking: Fix logging of lock reference count

lock reference count is always increased and reduced by a value of 1.
But lock_ref_count variable holds the old value prior to change and
was being logged wrongly under debug level 10. DEBUG statement must
log lock_ref_count+1 and lock_ref_count-1 respectively when value
gets increased and decreased.

Signed-off-by: Anoop C S <anoopcs@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/locking/posix.c