mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
InnoDB portability fixes
innobase/configure.in: Remove LOCALTIME_R (Already checked in config.h) innobase/os/os0file.c: Fix syntax bug when using HAVE_PREAD/HAVE_PWRITE mysql-test/r/innodb.result: Update results
This commit is contained in:
parent
1904897be7
commit
6f2d56162b
3 changed files with 8 additions and 4 deletions
|
|
@ -603,6 +603,7 @@ os_file_pread(
|
|||
#ifdef HAVE_PREAD
|
||||
return(pread(file, buf, n, offs));
|
||||
#else
|
||||
{
|
||||
ssize_t ret;
|
||||
ulint i;
|
||||
|
||||
|
|
@ -624,6 +625,7 @@ os_file_pread(
|
|||
os_mutex_exit(os_file_seek_mutexes[i]);
|
||||
|
||||
return(ret);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
@ -660,6 +662,7 @@ os_file_pwrite(
|
|||
|
||||
return(ret);
|
||||
#else
|
||||
{
|
||||
ulint i;
|
||||
|
||||
/* Protect the seek / write operation with a mutex */
|
||||
|
|
@ -691,6 +694,7 @@ os_file_pwrite(
|
|||
os_mutex_exit(os_file_seek_mutexes[i]);
|
||||
|
||||
return(ret);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue