1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-21 01:59:07 +03:00

Fixup correct timeout values for blocking lock timeouts (tested at connectathon

by Herb).
Jeremy.
This commit is contained in:
Jeremy Allison -
parent 2003cdc65e
commit 6356b79268

View File

@ -4288,7 +4288,7 @@ no oplock granted on this file (%s).\n", fsp->fnum, fsp->fsp_name));
/* Setup the timeout in seconds. */
lock_timeout = ((lock_timeout == -1) ? -1 : (lock_timeout+499)/500);
lock_timeout = ((lock_timeout == -1) ? -1 : (lock_timeout+999)/1000);
/* Now do any requested locks */
data += ((large_file_format ? 20 : 10)*num_ulocks);