summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-03-06 21:59:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:26 -0500
commit640ab28d78dac5c2bcee8b641c8971fcbcd87dfa (patch)
treebad8704b9bb74097b928e18cdc9fd610376ee336 /source3/include
parent94a1b230f3323e55fa23f20b464964eaac643882 (diff)
downloadsamba-640ab28d78dac5c2bcee8b641c8971fcbcd87dfa.tar.gz
samba-640ab28d78dac5c2bcee8b641c8971fcbcd87dfa.tar.bz2
samba-640ab28d78dac5c2bcee8b641c8971fcbcd87dfa.zip
r21724: Optimization pointed out by Volker. If we don't
have any outstanding locks or blocking locks then we don't need to read the lock db. on close. Jeremy. (This used to be commit 1b063496f93f78347a6e67549bde54c845499a7d)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/smb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 1e31d8545d..a54cebac10 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -501,6 +501,7 @@ typedef struct files_struct {
int sent_oplock_break;
struct timed_event *oplock_timeout;
struct lock_struct last_lock_failure;
+ int current_lock_count; /* Count the number of outstanding locks and pending locks. */
struct share_mode_entry *pending_break_messages;
int num_pending_break_messages;