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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
3cbaf365
Commit
3cbaf365
authored
Jun 10, 2005
by
marko@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
InnoDB: Remove compiler warning
parent
92d5b7c0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
12 deletions
+13
-12
innobase/fil/fil0fil.c
innobase/fil/fil0fil.c
+1
-2
innobase/include/os0file.h
innobase/include/os0file.h
+6
-4
innobase/os/os0file.c
innobase/os/os0file.c
+6
-6
No files found.
innobase/fil/fil0fil.c
View file @
3cbaf365
...
@@ -98,7 +98,6 @@ ulint fil_n_pending_tablespace_flushes = 0;
...
@@ -98,7 +98,6 @@ ulint fil_n_pending_tablespace_flushes = 0;
fil_addr_t
fil_addr_null
=
{
FIL_NULL
,
0
};
fil_addr_t
fil_addr_null
=
{
FIL_NULL
,
0
};
/* File node of a tablespace or the log data space */
/* File node of a tablespace or the log data space */
typedef
struct
fil_node_struct
fil_node_t
;
struct
fil_node_struct
{
struct
fil_node_struct
{
fil_space_t
*
space
;
/* backpointer to the space where this node
fil_space_t
*
space
;
/* backpointer to the space where this node
belongs */
belongs */
...
@@ -4037,7 +4036,7 @@ fil_aio_wait(
...
@@ -4037,7 +4036,7 @@ fil_aio_wait(
}
else
{
}
else
{
srv_set_io_thread_op_info
(
segment
,
"simulated aio handle"
);
srv_set_io_thread_op_info
(
segment
,
"simulated aio handle"
);
ret
=
os_aio_simulated_handle
(
segment
,
(
void
**
)
&
fil_node
,
ret
=
os_aio_simulated_handle
(
segment
,
&
fil_node
,
&
message
,
&
type
);
&
message
,
&
type
);
}
}
...
...
innobase/include/os0file.h
View file @
3cbaf365
...
@@ -17,6 +17,8 @@ Created 10/21/1995 Heikki Tuuri
...
@@ -17,6 +17,8 @@ Created 10/21/1995 Heikki Tuuri
#include <time.h>
#include <time.h>
#endif
#endif
typedef
struct
fil_node_struct
fil_node_t
;
extern
ibool
os_do_not_call_flush_at_each_write
;
extern
ibool
os_do_not_call_flush_at_each_write
;
extern
ibool
os_has_said_disk_full
;
extern
ibool
os_has_said_disk_full
;
extern
ibool
os_aio_print_debug
;
extern
ibool
os_aio_print_debug
;
...
@@ -563,7 +565,7 @@ os_aio(
...
@@ -563,7 +565,7 @@ os_aio(
ulint
offset_high
,
/* in: most significant 32 bits of
ulint
offset_high
,
/* in: most significant 32 bits of
offset */
offset */
ulint
n
,
/* in: number of bytes to read or write */
ulint
n
,
/* in: number of bytes to read or write */
void
*
message1
,
/* in: messages for the aio handler (these
fil_node_t
*
message1
,
/* in: messages for the aio handler (these
can be used to identify a completed aio
can be used to identify a completed aio
operation); if mode is OS_AIO_SYNC, these
operation); if mode is OS_AIO_SYNC, these
are ignored */
are ignored */
...
@@ -621,7 +623,7 @@ os_aio_windows_handle(
...
@@ -621,7 +623,7 @@ os_aio_windows_handle(
ignored */
ignored */
ulint
pos
,
/* this parameter is used only in sync aio:
ulint
pos
,
/* this parameter is used only in sync aio:
wait for the aio slot at this position */
wait for the aio slot at this position */
void
**
message1
,
/* out: the messages passed with the aio
fil_node_t
**
message1
,
/* out: the messages passed with the aio
request; note that also in the case where
request; note that also in the case where
the aio operation failed, these output
the aio operation failed, these output
parameters are valid and can be used to
parameters are valid and can be used to
...
@@ -641,7 +643,7 @@ os_aio_posix_handle(
...
@@ -641,7 +643,7 @@ os_aio_posix_handle(
/*================*/
/*================*/
/* out: TRUE if the aio operation succeeded */
/* out: TRUE if the aio operation succeeded */
ulint
array_no
,
/* in: array number 0 - 3 */
ulint
array_no
,
/* in: array number 0 - 3 */
void
**
message1
,
/* out: the messages passed with the aio
fil_node_t
**
message1
,
/* out: the messages passed with the aio
request; note that also in the case where
request; note that also in the case where
the aio operation failed, these output
the aio operation failed, these output
parameters are valid and can be used to
parameters are valid and can be used to
...
@@ -661,7 +663,7 @@ os_aio_simulated_handle(
...
@@ -661,7 +663,7 @@ os_aio_simulated_handle(
i/o thread, segment 1 the log i/o thread,
i/o thread, segment 1 the log i/o thread,
then follow the non-ibuf read threads, and as
then follow the non-ibuf read threads, and as
the last are the non-ibuf write threads */
the last are the non-ibuf write threads */
void
**
message1
,
/* out: the messages passed with the aio
fil_node_t
**
message1
,
/* out: the messages passed with the aio
request; note that also in the case where
request; note that also in the case where
the aio operation failed, these output
the aio operation failed, these output
parameters are valid and can be used to
parameters are valid and can be used to
...
...
innobase/os/os0file.c
View file @
3cbaf365
...
@@ -83,7 +83,7 @@ struct os_aio_slot_struct{
...
@@ -83,7 +83,7 @@ struct os_aio_slot_struct{
made and only the slot message
made and only the slot message
needs to be passed to the caller
needs to be passed to the caller
of os_aio_simulated_handle */
of os_aio_simulated_handle */
void
*
message1
;
/* message which is given by the */
fil_node_t
*
message1
;
/* message which is given by the */
void
*
message2
;
/* the requester of an aio operation
void
*
message2
;
/* the requester of an aio operation
and which can be used to identify
and which can be used to identify
which pending aio operation was
which pending aio operation was
...
@@ -3025,7 +3025,7 @@ os_aio_array_reserve_slot(
...
@@ -3025,7 +3025,7 @@ os_aio_array_reserve_slot(
/* out: pointer to slot */
/* out: pointer to slot */
ulint
type
,
/* in: OS_FILE_READ or OS_FILE_WRITE */
ulint
type
,
/* in: OS_FILE_READ or OS_FILE_WRITE */
os_aio_array_t
*
array
,
/* in: aio array */
os_aio_array_t
*
array
,
/* in: aio array */
void
*
message1
,
/* in: message to be passed along with
fil_node_t
*
message1
,
/* in: message to be passed along with
the aio operation */
the aio operation */
void
*
message2
,
/* in: message to be passed along with
void
*
message2
,
/* in: message to be passed along with
the aio operation */
the aio operation */
...
@@ -3287,7 +3287,7 @@ os_aio(
...
@@ -3287,7 +3287,7 @@ os_aio(
ulint
offset_high
,
/* in: most significant 32 bits of
ulint
offset_high
,
/* in: most significant 32 bits of
offset */
offset */
ulint
n
,
/* in: number of bytes to read or write */
ulint
n
,
/* in: number of bytes to read or write */
void
*
message1
,
/* in: messages for the aio handler (these
fil_node_t
*
message1
,
/* in: messages for the aio handler (these
can be used to identify a completed aio
can be used to identify a completed aio
operation); if mode is OS_AIO_SYNC, these
operation); if mode is OS_AIO_SYNC, these
are ignored */
are ignored */
...
@@ -3472,7 +3472,7 @@ os_aio_windows_handle(
...
@@ -3472,7 +3472,7 @@ os_aio_windows_handle(
ignored */
ignored */
ulint
pos
,
/* this parameter is used only in sync aio:
ulint
pos
,
/* this parameter is used only in sync aio:
wait for the aio slot at this position */
wait for the aio slot at this position */
void
**
message1
,
/* out: the messages passed with the aio
fil_node_t
**
message1
,
/* out: the messages passed with the aio
request; note that also in the case where
request; note that also in the case where
the aio operation failed, these output
the aio operation failed, these output
parameters are valid and can be used to
parameters are valid and can be used to
...
@@ -3563,7 +3563,7 @@ os_aio_posix_handle(
...
@@ -3563,7 +3563,7 @@ os_aio_posix_handle(
/*================*/
/*================*/
/* out: TRUE if the aio operation succeeded */
/* out: TRUE if the aio operation succeeded */
ulint
array_no
,
/* in: array number 0 - 3 */
ulint
array_no
,
/* in: array number 0 - 3 */
void
**
message1
,
/* out: the messages passed with the aio
fil_node_t
**
message1
,
/* out: the messages passed with the aio
request; note that also in the case where
request; note that also in the case where
the aio operation failed, these output
the aio operation failed, these output
parameters are valid and can be used to
parameters are valid and can be used to
...
@@ -3644,7 +3644,7 @@ os_aio_simulated_handle(
...
@@ -3644,7 +3644,7 @@ os_aio_simulated_handle(
i/o thread, segment 1 the log i/o thread,
i/o thread, segment 1 the log i/o thread,
then follow the non-ibuf read threads, and as
then follow the non-ibuf read threads, and as
the last are the non-ibuf write threads */
the last are the non-ibuf write threads */
void
**
message1
,
/* out: the messages passed with the aio
fil_node_t
**
message1
,
/* out: the messages passed with the aio
request; note that also in the case where
request; note that also in the case where
the aio operation failed, these output
the aio operation failed, these output
parameters are valid and can be used to
parameters are valid and can be used to
...
...
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