mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
Prevent potential problems on 32-Bit machines.
This commit is contained in:
parent
098a1e3afa
commit
83bee61eb8
1 changed files with 4 additions and 4 deletions
|
|
@ -118,9 +118,9 @@ int my_lock(File fd, int locktype, my_off_t start, my_off_t length,
|
|||
{
|
||||
struct flock lock;
|
||||
lock.l_type= (short) locktype;
|
||||
lock.l_whence=0L;
|
||||
lock.l_start=(long) start;
|
||||
lock.l_len=(long) length;
|
||||
lock.l_whence= SEEK_SET;
|
||||
lock.l_start= (off_t) start;
|
||||
lock.l_len= (off_t) length;
|
||||
if (MyFlags & MY_DONT_WAIT)
|
||||
{
|
||||
if (fcntl(fd,F_SETLK,&lock) != -1) /* Check if we can lock */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue