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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e36be72a
Commit
e36be72a
authored
Aug 24, 2006
by
petr/cps@mysql.com/owlet.local
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
after merge fix
parent
5fae48d9
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 @
e36be72a
...
@@ -1575,7 +1575,7 @@ create table bug15205 (val int(11) default null) engine=csv;
...
@@ -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
;
create
table
bug15205_2
(
val
int
(
11
)
default
null
)
engine
=
csv
;
--
exec
rm
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
bug15205
.
CSV
--
exec
rm
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
bug15205
.
CSV
# system error (can't open the datafile)
# system error (can't open the datafile)
--
error
ER_GET_ERRNO
--
error
13
select
*
from
bug15205
;
select
*
from
bug15205
;
select
*
from
bug15205_2
;
select
*
from
bug15205_2
;
--
exec
touch
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
bug15205
.
CSV
--
exec
touch
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
bug15205
.
CSV
...
...
storage/csv/ha_tina.cc
View file @
e36be72a
...
@@ -229,6 +229,11 @@ static TINA_SHARE *get_share(const char *table_name, TABLE *table)
...
@@ -229,6 +229,11 @@ static TINA_SHARE *get_share(const char *table_name, TABLE *table)
MY_REPLACE_EXT
|
MY_UNPACK_FILENAME
);
MY_REPLACE_EXT
|
MY_UNPACK_FILENAME
);
fn_format
(
meta_file_name
,
table_name
,
""
,
CSM_EXT
,
fn_format
(
meta_file_name
,
table_name
,
""
,
CSM_EXT
,
MY_REPLACE_EXT
|
MY_UNPACK_FILENAME
);
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
))
if
(
my_hash_insert
(
&
tina_open_tables
,
(
byte
*
)
share
))
goto
error
;
goto
error
;
thr_lock_init
(
&
share
->
lock
);
thr_lock_init
(
&
share
->
lock
);
...
@@ -250,10 +255,6 @@ static TINA_SHARE *get_share(const char *table_name, TABLE *table)
...
@@ -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
))
if
(
read_meta_file
(
share
->
meta_file
,
&
share
->
rows_recorded
))
share
->
crashed
=
TRUE
;
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
++
;
share
->
use_count
++
;
pthread_mutex_unlock
(
&
tina_mutex
);
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