From 54cdd1dfe23219c3cc9c772b78fbd40e144957c6 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 27 Jul 2006 15:23:46 +0000 Subject: r17276: Don't change the POSIX lock ref count if posix locking = no. Jeremy. (This used to be commit 42dec2192c1261090f2fac7a123c384f5c133587) --- source3/locking/brlock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c index 07e4b4c16b..5ce8a3730b 100644 --- a/source3/locking/brlock.c +++ b/source3/locking/brlock.c @@ -1326,8 +1326,8 @@ void brl_close_fnum(struct byte_range_lock *br_lck) } } - if (num_deleted_windows_locks) { - /* Reduce the Windows lock reference count on this dev/ino pair. */ + if(lp_posix_locking(fsp->conn->cnum) && num_deleted_windows_locks) { + /* Reduce the Windows lock POSIX reference count on this dev/ino pair. */ reduce_windows_lock_ref_count(fsp, num_deleted_windows_locks); } } -- cgit