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
883f72a6
Commit
883f72a6
authored
May 31, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix csv test failure on aix
storage/csv/ha_tina.cc: one cannot sync file, opened for reading
parent
d948704b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
storage/csv/ha_tina.cc
storage/csv/ha_tina.cc
+5
-4
No files found.
storage/csv/ha_tina.cc
View file @
883f72a6
...
@@ -1267,8 +1267,10 @@ int ha_tina::rnd_end()
...
@@ -1267,8 +1267,10 @@ int ha_tina::rnd_end()
}
}
if
(
my_close
(
update_temp_file
,
MYF
(
0
)))
if
(
my_sync
(
update_temp_file
,
MYF
(
MY_WME
))
||
my_close
(
update_temp_file
,
MYF
(
0
)))
DBUG_RETURN
(
-
1
);
DBUG_RETURN
(
-
1
);
share
->
update_file_opened
=
FALSE
;
share
->
update_file_opened
=
FALSE
;
if
(
share
->
tina_write_opened
)
if
(
share
->
tina_write_opened
)
...
@@ -1292,9 +1294,8 @@ int ha_tina::rnd_end()
...
@@ -1292,9 +1294,8 @@ int ha_tina::rnd_end()
share
->
data_file_name
,
MYF
(
0
)))
share
->
data_file_name
,
MYF
(
0
)))
DBUG_RETURN
(
-
1
);
DBUG_RETURN
(
-
1
);
/* Open the file again and sync it */
/* Open the file again */
if
(((
data_file
=
my_open
(
share
->
data_file_name
,
O_RDONLY
,
MYF
(
0
)))
==
-
1
)
if
(((
data_file
=
my_open
(
share
->
data_file_name
,
O_RDONLY
,
MYF
(
0
)))
==
-
1
))
||
my_sync
(
data_file
,
MYF
(
MY_WME
)))
DBUG_RETURN
(
-
1
);
DBUG_RETURN
(
-
1
);
/*
/*
The datafile is consistent at this point and the write filedes is
The datafile is consistent at this point and the write filedes is
...
...
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