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
1e63ecd0
Commit
1e63ecd0
authored
Jan 13, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge marko@bk-internal.mysql.com:/home/bk/mysql-4.0
into hundin.mysql.fi:/home/marko/k/mysql-4.0
parents
f247a0d5
c65c72f0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
innobase/os/os0file.c
innobase/os/os0file.c
+15
-9
sql/ha_innodb.cc
sql/ha_innodb.cc
+2
-0
No files found.
innobase/os/os0file.c
View file @
1e63ecd0
...
@@ -375,7 +375,7 @@ os_io_init_simple(void)
...
@@ -375,7 +375,7 @@ os_io_init_simple(void)
}
}
}
}
#if
ndef UNIV_HOTBACKUP
#if
!defined(UNIV_HOTBACKUP) && !defined(__NETWARE__)
/*************************************************************************
/*************************************************************************
Creates a temporary file. This function is defined in ha_innodb.cc. */
Creates a temporary file. This function is defined in ha_innodb.cc. */
...
@@ -383,7 +383,7 @@ int
...
@@ -383,7 +383,7 @@ int
innobase_mysql_tmpfile
(
void
);
innobase_mysql_tmpfile
(
void
);
/*========================*/
/*========================*/
/* out: temporary file descriptor, or < 0 on error */
/* out: temporary file descriptor, or < 0 on error */
#endif
/* !UNIV_HOTBACKUP */
#endif
/* !UNIV_HOTBACKUP
&& !__NETWARE__
*/
/***************************************************************************
/***************************************************************************
Creates a temporary file. */
Creates a temporary file. */
...
@@ -393,9 +393,12 @@ os_file_create_tmpfile(void)
...
@@ -393,9 +393,12 @@ os_file_create_tmpfile(void)
/*========================*/
/*========================*/
/* out: temporary file handle, or NULL on error */
/* out: temporary file handle, or NULL on error */
{
{
#ifdef __NETWARE__
FILE
*
file
=
tmpfile
();
#else
/* __NETWARE__ */
FILE
*
file
=
NULL
;
FILE
*
file
=
NULL
;
int
fd
=
-
1
;
int
fd
=
-
1
;
#ifdef UNIV_HOTBACKUP
#
ifdef UNIV_HOTBACKUP
int
tries
;
int
tries
;
for
(
tries
=
10
;
tries
--
;
)
{
for
(
tries
=
10
;
tries
--
;
)
{
char
*
name
=
tempnam
(
fil_path_to_mysql_datadir
,
"ib"
);
char
*
name
=
tempnam
(
fil_path_to_mysql_datadir
,
"ib"
);
...
@@ -423,22 +426,25 @@ os_file_create_tmpfile(void)
...
@@ -423,22 +426,25 @@ os_file_create_tmpfile(void)
name
);
name
);
free
(
name
);
free
(
name
);
}
}
#else
/* UNIV_HOTBACKUP */
#
else
/* UNIV_HOTBACKUP */
fd
=
innobase_mysql_tmpfile
();
fd
=
innobase_mysql_tmpfile
();
#endif
/* UNIV_HOTBACKUP */
#
endif
/* UNIV_HOTBACKUP */
if
(
fd
>=
0
)
{
if
(
fd
>=
0
)
{
file
=
fdopen
(
fd
,
"w+b"
);
file
=
fdopen
(
fd
,
"w+b"
);
}
}
#endif
/* __NETWARE__ */
if
(
!
file
)
{
if
(
!
file
)
{
ut_print_timestamp
(
stderr
);
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
fprintf
(
stderr
,
" InnoDB: Error: unable to create temporary file;"
" InnoDB: Error: unable to create temporary file;"
" errno: %d
\n
"
,
errno
);
" errno: %d
\n
"
,
errno
);
#ifndef __NETWARE__
if
(
fd
>=
0
)
{
if
(
fd
>=
0
)
{
close
(
fd
);
close
(
fd
);
}
}
#endif
/* !__NETWARE__ */
}
}
return
(
file
);
return
(
file
);
...
...
sql/ha_innodb.cc
View file @
1e63ecd0
...
@@ -413,6 +413,7 @@ innobase_mysql_print_thd(
...
@@ -413,6 +413,7 @@ innobase_mysql_print_thd(
putc
(
'\n'
,
f
);
putc
(
'\n'
,
f
);
}
}
#ifndef __NETWARE__
/*************************************************************************
/*************************************************************************
Creates a temporary file. */
Creates a temporary file. */
extern
"C"
extern
"C"
...
@@ -456,6 +457,7 @@ innobase_mysql_tmpfile(void)
...
@@ -456,6 +457,7 @@ innobase_mysql_tmpfile(void)
}
}
return
(
fd2
);
return
(
fd2
);
}
}
#endif
/* !__NETWARE__ */
/*************************************************************************
/*************************************************************************
Gets the InnoDB transaction handle for a MySQL handler object, creates
Gets the InnoDB transaction handle for a MySQL handler object, creates
...
...
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