Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
8cde9162
Commit
8cde9162
authored
Jun 12, 2011
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix mismerge
parent
532784a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
19 deletions
+12
-19
storage/xtradb/os/os0file.c
storage/xtradb/os/os0file.c
+11
-16
storage/xtradb/srv/srv0start.c
storage/xtradb/srv/srv0start.c
+1
-3
No files found.
storage/xtradb/os/os0file.c
View file @
8cde9162
...
...
@@ -2445,8 +2445,7 @@ _os_file_read(
DWORD
len
;
ibool
retry
;
OVERLAPPED
overlapped
;
overlapped
.
Offset
=
(
DWORD
)
offset
;
overlapped
.
OffsetHigh
=
(
DWORD
)
offset_high
;
/* On 64-bit Windows, ulint is 64 bits. But offset and n should be
no more than 32 bits. */
...
...
@@ -2466,8 +2465,8 @@ try_again:
os_mutex_exit
(
os_file_count_mutex
);
memset
(
&
overlapped
,
0
,
sizeof
(
overlapped
));
overlapped
.
Offset
=
low
;
overlapped
.
OffsetHigh
=
high
;
overlapped
.
Offset
=
(
DWORD
)
offset
;
overlapped
.
OffsetHigh
=
(
DWORD
)
offset_
high
;
overlapped
.
hEvent
=
win_get_syncio_event
();
ret
=
ReadFile
(
file
,
buf
,
n
,
NULL
,
&
overlapped
);
if
(
ret
)
{
...
...
@@ -2475,7 +2474,7 @@ try_again:
}
else
if
(
GetLastError
()
==
ERROR_IO_PENDING
)
{
ret
=
GetOverlappedResult
(
file
,
&
overlapped
,
(
DWORD
*
)
&
len
,
TRUE
);
}
os_mutex_enter
(
os_file_count_mutex
);
os_n_pending_reads
--
;
os_mutex_exit
(
os_file_count_mutex
);
...
...
@@ -2568,8 +2567,8 @@ try_again:
os_mutex_exit
(
os_file_count_mutex
);
memset
(
&
overlapped
,
0
,
sizeof
(
overlapped
));
overlapped
.
Offset
=
low
;
overlapped
.
OffsetHigh
=
high
;
overlapped
.
Offset
=
(
DWORD
)
offset
;
overlapped
.
OffsetHigh
=
(
DWORD
)
offset_
high
;
overlapped
.
hEvent
=
win_get_syncio_event
();
ret
=
ReadFile
(
file
,
buf
,
n
,
NULL
,
&
overlapped
);
if
(
ret
)
{
...
...
@@ -2577,7 +2576,7 @@ try_again:
}
else
if
(
GetLastError
()
==
ERROR_IO_PENDING
)
{
ret
=
GetOverlappedResult
(
file
,
&
overlapped
,
(
DWORD
*
)
&
len
,
TRUE
);
}
os_mutex_enter
(
os_file_count_mutex
);
os_n_pending_reads
--
;
os_mutex_exit
(
os_file_count_mutex
);
...
...
@@ -2654,8 +2653,6 @@ os_file_write(
ulint
n_retries
=
0
;
ulint
err
;
OVERLAPPED
overlapped
;
overlapped
.
Offset
=
(
DWORD
)
offset
;
overlapped
.
OffsetHigh
=
(
DWORD
)
offset_high
;
/* On 64-bit Windows, ulint is 64 bits. But offset and n should be
no more than 32 bits. */
...
...
@@ -2674,12 +2671,14 @@ retry:
os_mutex_exit
(
os_file_count_mutex
);
memset
(
&
overlapped
,
0
,
sizeof
(
overlapped
));
overlapped
.
Offset
=
low
;
overlapped
.
OffsetHigh
=
high
;
overlapped
.
Offset
=
(
DWORD
)
offset
;
overlapped
.
OffsetHigh
=
(
DWORD
)
offset_high
;
overlapped
.
hEvent
=
win_get_syncio_event
();
ret
=
WriteFile
(
file
,
buf
,
n
,
NULL
,
&
overlapped
);
if
(
ret
)
{
ret
=
GetOverlappedResult
(
file
,
&
overlapped
,
(
DWORD
*
)
&
len
,
FALSE
);
}
else
if
(
GetLastError
()
==
ERROR_IO_PENDING
)
{
ret
=
GetOverlappedResult
(
file
,
&
overlapped
,
(
DWORD
*
)
&
len
,
TRUE
);
}
...
...
@@ -3831,10 +3830,6 @@ os_aio_windows_handle(
BOOL
retry
=
FALSE
;
ULONG_PTR
dummy_key
;
if
(
srv_shutdown_state
==
SRV_SHUTDOWN_EXIT_THREADS
)
{
os_thread_exit
(
NULL
);
ret
=
GetQueuedCompletionStatus
(
completion_port
,
&
len
,
&
dummy_key
,
(
OVERLAPPED
**
)
&
slot
,
INFINITE
);
...
...
storage/xtradb/srv/srv0start.c
View file @
8cde9162
...
...
@@ -1284,10 +1284,8 @@ innobase_start_or_create_for_mysql(void)
default:
os_aio_use_native_aio
=
TRUE
;
srv_use_native_conditions
=
TRUE
;
default:
/* On Win 2000 and XP use async i/o */
os_aio_use_native_aio
=
TRUE
;
}
#endif
if
(
srv_file_flush_method_str
==
NULL
)
{
/* These are the default options */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment