diff options
author | Jeremy Allison <jra@samba.org> | 2003-02-27 01:04:34 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-02-27 01:04:34 +0000 |
commit | fb3e4b87973e9ad0c818e8d9dd60329c47f22afe (patch) | |
tree | 98365addb079aa17a6aa8d05a61affcfe54f0dac /source3/locking/locking.c | |
parent | 1502667e923620cddd0137e94dc8d892ce2e95a8 (diff) | |
download | samba-fb3e4b87973e9ad0c818e8d9dd60329c47f22afe.tar.gz samba-fb3e4b87973e9ad0c818e8d9dd60329c47f22afe.tar.bz2 samba-fb3e4b87973e9ad0c818e8d9dd60329c47f22afe.zip |
Fix to allow blocking lock notification to be done rapidly (no wait
for smb -> smb lock release). Adds new PENDING_LOCK type to lockdb
(does not interfere with existing locks).
Jeremy.
(This used to be commit 766928bbba1e597c9c2b12458dd8d37e6080593e)
Diffstat (limited to 'source3/locking/locking.c')
-rw-r--r-- | source3/locking/locking.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c index fdfd4d661c..651f905e15 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -132,7 +132,7 @@ static NTSTATUS do_lock(files_struct *fsp,connection_struct *conn, uint16 lock_p */ (void)brl_unlock(fsp->dev, fsp->inode, fsp->fnum, lock_pid, sys_getpid(), conn->cnum, - offset, count); + offset, count, False); } } } @@ -201,7 +201,7 @@ NTSTATUS do_unlock(files_struct *fsp,connection_struct *conn, uint16 lock_pid, */ ok = brl_unlock(fsp->dev, fsp->inode, fsp->fnum, - lock_pid, sys_getpid(), conn->cnum, offset, count); + lock_pid, sys_getpid(), conn->cnum, offset, count, False); if (!ok) { DEBUG(10,("do_unlock: returning ERRlock.\n" )); |