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
b1bb5d8c
Commit
b1bb5d8c
authored
Oct 10, 2012
by
Vasil Dimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation error in debug mode:
os/os0file.c:1332: error: ISO C90 forbids mixed declarations and code
parent
f4c05716
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
28 deletions
+26
-28
storage/innobase/os/os0file.c
storage/innobase/os/os0file.c
+13
-14
storage/innodb_plugin/os/os0file.c
storage/innodb_plugin/os/os0file.c
+13
-14
No files found.
storage/innobase/os/os0file.c
View file @
b1bb5d8c
...
...
@@ -1210,27 +1210,19 @@ os_file_create(
ibool
*
success
)
/* out: TRUE if succeed, FALSE if error */
{
#ifdef __WIN__
os_file_t
file
;
DWORD
share_mode
=
FILE_SHARE_READ
;
DWORD
create_flag
;
DWORD
attributes
;
ibool
retry
;
DBUG_EXECUTE_IF
(
"ib_create_table_fail_disk_full"
,
*
success
=
FALSE
;
SetLastError
(
ERROR_DISK_FULL
);
return
((
os_file_t
)
-
1
);
);
#else
/* __WIN__ */
DBUG_EXECUTE_IF
(
"ib_create_table_fail_disk_full"
,
*
success
=
FALSE
;
errno
=
ENOSPC
;
return
((
os_file_t
)
-
1
);
);
#endif
/* __WIN__ */
#ifdef __WIN__
os_file_t
file
;
DWORD
share_mode
=
FILE_SHARE_READ
;
DWORD
create_flag
;
DWORD
attributes
;
ibool
retry
;
try_again:
ut_a
(
name
);
...
...
@@ -1334,6 +1326,13 @@ try_again:
ibool
retry
;
const
char
*
mode_str
=
NULL
;
DBUG_EXECUTE_IF
(
"ib_create_table_fail_disk_full"
,
*
success
=
FALSE
;
errno
=
ENOSPC
;
return
((
os_file_t
)
-
1
);
);
try_again:
ut_a
(
name
);
...
...
storage/innodb_plugin/os/os0file.c
View file @
b1bb5d8c
...
...
@@ -1250,27 +1250,19 @@ os_file_create(
ibool
*
success
)
/*!< out: TRUE if succeed, FALSE if error */
{
#ifdef __WIN__
os_file_t
file
;
DWORD
share_mode
=
FILE_SHARE_READ
;
DWORD
create_flag
;
DWORD
attributes
;
ibool
retry
;
DBUG_EXECUTE_IF
(
"ib_create_table_fail_disk_full"
,
*
success
=
FALSE
;
SetLastError
(
ERROR_DISK_FULL
);
return
((
os_file_t
)
-
1
);
);
#else
/* __WIN__ */
DBUG_EXECUTE_IF
(
"ib_create_table_fail_disk_full"
,
*
success
=
FALSE
;
errno
=
ENOSPC
;
return
((
os_file_t
)
-
1
);
);
#endif
/* __WIN__ */
#ifdef __WIN__
os_file_t
file
;
DWORD
share_mode
=
FILE_SHARE_READ
;
DWORD
create_flag
;
DWORD
attributes
;
ibool
retry
;
try_again:
ut_a
(
name
);
...
...
@@ -1386,6 +1378,13 @@ try_again:
ibool
retry
;
const
char
*
mode_str
=
NULL
;
DBUG_EXECUTE_IF
(
"ib_create_table_fail_disk_full"
,
*
success
=
FALSE
;
errno
=
ENOSPC
;
return
((
os_file_t
)
-
1
);
);
try_again:
ut_a
(
name
);
...
...
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