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
fe675641
Commit
fe675641
authored
Jan 31, 2005
by
reggie@bob.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge bob.(none):/home/reggie/bk/mysql41
into bob.(none):/home/reggie/bk/mysql5.0
parents
941b959c
16334eb4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp
ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp
+10
-4
sql/sql_table.cc
sql/sql_table.cc
+2
-4
No files found.
ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp
View file @
fe675641
...
@@ -219,6 +219,7 @@ AsyncFile::run()
...
@@ -219,6 +219,7 @@ AsyncFile::run()
rmrfReq
(
request
,
(
char
*
)
theFileName
.
c_str
(),
request
->
par
.
rmrf
.
own_directory
);
rmrfReq
(
request
,
(
char
*
)
theFileName
.
c_str
(),
request
->
par
.
rmrf
.
own_directory
);
break
;
break
;
case
Request
:
:
end
:
case
Request
:
:
end
:
if
(
theFd
>
0
)
closeReq
(
request
);
closeReq
(
request
);
endReq
();
endReq
();
return
;
return
;
...
@@ -239,6 +240,7 @@ void AsyncFile::openReq(Request* request)
...
@@ -239,6 +240,7 @@ void AsyncFile::openReq(Request* request)
{
{
m_openedWithSync
=
false
;
m_openedWithSync
=
false
;
m_syncFrequency
=
0
;
m_syncFrequency
=
0
;
m_syncCount
=
0
;
// for open.flags, see signal FSOPENREQ
// for open.flags, see signal FSOPENREQ
#ifdef NDB_WIN32
#ifdef NDB_WIN32
...
@@ -329,7 +331,6 @@ void AsyncFile::openReq(Request* request)
...
@@ -329,7 +331,6 @@ void AsyncFile::openReq(Request* request)
} else {
} else {
#endif
#endif
m_openedWithSync
=
false
;
m_openedWithSync
=
false
;
m_syncCount
=
0
;
m_syncFrequency
=
Global_syncFreq
;
m_syncFrequency
=
Global_syncFreq
;
#if 0
#if 0
}
}
...
@@ -656,6 +657,7 @@ AsyncFile::writeBuffer(const char * buf, size_t size, off_t offset,
...
@@ -656,6 +657,7 @@ AsyncFile::writeBuffer(const char * buf, size_t size, off_t offset,
}
}
#endif
#endif
m_syncCount
+=
bytes_written
;
buf
+=
bytes_written
;
buf
+=
bytes_written
;
size
-=
bytes_written
;
size
-=
bytes_written
;
offset
+=
bytes_written
;
offset
+=
bytes_written
;
...
@@ -682,6 +684,10 @@ AsyncFile::closeReq(Request * request)
...
@@ -682,6 +684,10 @@ AsyncFile::closeReq(Request * request)
hFile
=
INVALID_HANDLE_VALUE
;
hFile
=
INVALID_HANDLE_VALUE
;
#else
#else
if
(
-
1
==
::
close
(
theFd
))
{
if
(
-
1
==
::
close
(
theFd
))
{
#ifndef DBUG_OFF
if
(
theFd
==
-
1
)
abort
();
#endif
request
->
error
=
errno
;
request
->
error
=
errno
;
}
}
theFd
=
-
1
;
theFd
=
-
1
;
...
@@ -700,7 +706,8 @@ bool AsyncFile::isOpen(){
...
@@ -700,7 +706,8 @@ bool AsyncFile::isOpen(){
void
void
AsyncFile
::
syncReq
(
Request
*
request
)
AsyncFile
::
syncReq
(
Request
*
request
)
{
{
if
(
m_openedWithSync
){
if
(
m_openedWithSync
||
m_syncCount
==
0
){
return
;
return
;
}
}
#ifdef NDB_WIN32
#ifdef NDB_WIN32
...
@@ -756,7 +763,6 @@ AsyncFile::appendReq(Request * request){
...
@@ -756,7 +763,6 @@ AsyncFile::appendReq(Request * request){
if
(
m_syncFrequency
!=
0
&&
m_syncCount
>
m_syncFrequency
){
if
(
m_syncFrequency
!=
0
&&
m_syncCount
>
m_syncFrequency
){
syncReq
(
request
);
syncReq
(
request
);
request
->
error
=
0
;
}
}
}
}
...
...
sql/sql_table.cc
View file @
fe675641
...
@@ -2394,8 +2394,7 @@ bool mysql_create_like_table(THD* thd, TABLE_LIST* table,
...
@@ -2394,8 +2394,7 @@ bool mysql_create_like_table(THD* thd, TABLE_LIST* table,
strxmov
(
src_path
,
(
*
tmp_table
)
->
s
->
path
,
reg_ext
,
NullS
);
strxmov
(
src_path
,
(
*
tmp_table
)
->
s
->
path
,
reg_ext
,
NullS
);
else
else
{
{
strxmov
(
src_path
,
mysql_data_home
,
"/"
,
src_db
,
"/"
,
src_table
,
fn_format
(
src_path
,
src_table
,
src_db
,
reg_ext
,
MYF
(
MY_UNPACK_FILENAME
));
reg_ext
,
NullS
);
if
(
access
(
src_path
,
F_OK
))
if
(
access
(
src_path
,
F_OK
))
{
{
my_error
(
ER_BAD_TABLE_ERROR
,
MYF
(
0
),
src_table
);
my_error
(
ER_BAD_TABLE_ERROR
,
MYF
(
0
),
src_table
);
...
@@ -2422,8 +2421,7 @@ bool mysql_create_like_table(THD* thd, TABLE_LIST* table,
...
@@ -2422,8 +2421,7 @@ bool mysql_create_like_table(THD* thd, TABLE_LIST* table,
}
}
else
else
{
{
strxmov
(
dst_path
,
mysql_data_home
,
"/"
,
db
,
"/"
,
table_name
,
fn_format
(
dst_path
,
table_name
,
db
,
reg_ext
,
MYF
(
MY_UNPACK_FILENAME
));
reg_ext
,
NullS
);
if
(
!
access
(
dst_path
,
F_OK
))
if
(
!
access
(
dst_path
,
F_OK
))
goto
table_exists
;
goto
table_exists
;
}
}
...
...
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