diff options
author | Jeremy Allison <jra@samba.org> | 2006-07-29 19:14:24 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:38:25 -0500 |
commit | 2c6030415e0b1f421ea6e85fe6ffe7389ee7a941 (patch) | |
tree | 3cd4c3c78862d48be0653db5e7c34314bf607e45 /source3/locking/locking.c | |
parent | 4e9df2fba37e4b1422bfda9781c7c486cfec7ed1 (diff) | |
download | samba-2c6030415e0b1f421ea6e85fe6ffe7389ee7a941.tar.gz samba-2c6030415e0b1f421ea6e85fe6ffe7389ee7a941.tar.bz2 samba-2c6030415e0b1f421ea6e85fe6ffe7389ee7a941.zip |
r17314: Optimisation for POSIX locking. If we're downgrading
a POSIX lock (applying a read-lock) and we overlap
pending read locks then send them an unlock message,
we may have allowed them to proceed.
Jeremy.
(This used to be commit a7a0b6ba50f4cf7c5a0a29809fdff9e1266a29e7)
Diffstat (limited to 'source3/locking/locking.c')
-rw-r--r-- | source3/locking/locking.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c index 3879d40cba..4cd6b436c3 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -55,8 +55,10 @@ const char *lock_type_name(enum brl_type lock_type) return "READ"; case WRITE_LOCK: return "WRITE"; - case PENDING_LOCK: - return "PENDING"; + case PENDING_READ_LOCK: + return "PENDING_READ"; + case PENDING_WRITE_LOCK: + return "PENDING_WRITE"; default: return "other"; } |