summaryrefslogtreecommitdiffstats
path: root/source/locking
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-07-27 15:23:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:23 -0500
commit42dec2192c1261090f2fac7a123c384f5c133587 (patch)
tree17beb4877ca3aa3fa2ef7dbc2929fc9e00b6a6a4 /source/locking
parent21d69dcb3c5361f94d15b2d186e1aae6e246a24e (diff)
downloadsamba-42dec2192c1261090f2fac7a123c384f5c133587.tar.gz
samba-42dec2192c1261090f2fac7a123c384f5c133587.tar.xz
samba-42dec2192c1261090f2fac7a123c384f5c133587.zip
r17276: Don't change the POSIX lock ref count if posix locking = no.
Jeremy.
Diffstat (limited to 'source/locking')
-rw-r--r--source/locking/brlock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/locking/brlock.c b/source/locking/brlock.c
index 07e4b4c16b7..5ce8a3730b2 100644
--- a/source/locking/brlock.c
+++ b/source/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);
}
}