mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r17107: Make the 200 ms timeout value tunable in local.h...
Might need to be a parameter ? Jeremy.
This commit is contained in:
parent
b5aaff6659
commit
98d8d9399b
@ -247,4 +247,7 @@
|
||||
/* Default hash size for the winbindd cache. */
|
||||
#define WINBINDD_CACHE_TDB_DEFAULT_HASH_SIZE 5000
|
||||
|
||||
/* Windows minimum lock resolution timeout in ms */
|
||||
#define WINDOWS_MINIMUM_LOCK_TIMEOUT_MS 200
|
||||
|
||||
#endif
|
||||
|
@ -5383,8 +5383,8 @@ int reply_lockingX(connection_struct *conn, char *inbuf, char *outbuf,
|
||||
if (br_lck && blocking_lock && ERROR_WAS_LOCK_DENIED(status)) {
|
||||
/* Windows internal resolution for blocking locks seems
|
||||
to be about 200ms... Don't wait for less than that. JRA. */
|
||||
if (lock_timeout != -1 && lock_timeout < 200) {
|
||||
lock_timeout = 200;
|
||||
if (lock_timeout != -1 && lock_timeout < WINDOWS_MINIMUM_LOCK_TIMEOUT_MS) {
|
||||
lock_timeout = WINDOWS_MINIMUM_LOCK_TIMEOUT_MS;
|
||||
}
|
||||
defer_lock = True;
|
||||
}
|
||||
@ -5397,7 +5397,7 @@ int reply_lockingX(connection_struct *conn, char *inbuf, char *outbuf,
|
||||
if (br_lck && lp_blocking_locks(SNUM(conn)) && !blocking_lock &&
|
||||
NT_STATUS_EQUAL((status), NT_STATUS_FILE_LOCK_CONFLICT)) {
|
||||
defer_lock = True;
|
||||
lock_timeout = 200;
|
||||
lock_timeout = WINDOWS_MINIMUM_LOCK_TIMEOUT_MS;
|
||||
}
|
||||
|
||||
if (br_lck && defer_lock) {
|
||||
|
Loading…
Reference in New Issue
Block a user