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
8eeac5a7
Commit
8eeac5a7
authored
Aug 24, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
after merge fix
parent
d08dd523
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
mysql-test/t/csv.test
mysql-test/t/csv.test
+1
-1
storage/csv/ha_tina.cc
storage/csv/ha_tina.cc
+5
-4
No files found.
mysql-test/t/csv.test
View file @
8eeac5a7
...
...
@@ -1575,7 +1575,7 @@ create table bug15205 (val int(11) default null) engine=csv;
create
table
bug15205_2
(
val
int
(
11
)
default
null
)
engine
=
csv
;
--
exec
rm
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
bug15205
.
CSV
# system error (can't open the datafile)
--
error
ER_GET_ERRNO
--
error
13
select
*
from
bug15205
;
select
*
from
bug15205_2
;
--
exec
touch
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
bug15205
.
CSV
...
...
storage/csv/ha_tina.cc
View file @
8eeac5a7
...
...
@@ -229,6 +229,11 @@ static TINA_SHARE *get_share(const char *table_name, TABLE *table)
MY_REPLACE_EXT
|
MY_UNPACK_FILENAME
);
fn_format
(
meta_file_name
,
table_name
,
""
,
CSM_EXT
,
MY_REPLACE_EXT
|
MY_UNPACK_FILENAME
);
if
(
my_stat
(
share
->
data_file_name
,
&
file_stat
,
MYF
(
MY_WME
))
==
NULL
)
goto
error
;
share
->
saved_data_file_length
=
file_stat
.
st_size
;
if
(
my_hash_insert
(
&
tina_open_tables
,
(
byte
*
)
share
))
goto
error
;
thr_lock_init
(
&
share
->
lock
);
...
...
@@ -250,10 +255,6 @@ static TINA_SHARE *get_share(const char *table_name, TABLE *table)
*/
if
(
read_meta_file
(
share
->
meta_file
,
&
share
->
rows_recorded
))
share
->
crashed
=
TRUE
;
if
(
my_stat
(
share
->
data_file_name
,
&
file_stat
,
MYF
(
MY_WME
))
==
NULL
)
goto
error2
;
share
->
saved_data_file_length
=
file_stat
.
st_size
;
}
share
->
use_count
++
;
pthread_mutex_unlock
(
&
tina_mutex
);
...
...
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