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
b5f830d8
Commit
b5f830d8
authored
Aug 15, 2011
by
Michael Widenius
Browse files
Options
Browse Files
Download
Plain Diff
Merge in bug fix from 5.1
parents
8740e596
e71eb27a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
75 additions
and
1 deletion
+75
-1
mysql-test/suite/maria/r/locking.result
mysql-test/suite/maria/r/locking.result
+31
-0
mysql-test/suite/maria/t/locking.test
mysql-test/suite/maria/t/locking.test
+43
-0
storage/maria/ma_extra.c
storage/maria/ma_extra.c
+1
-1
No files found.
mysql-test/suite/maria/r/locking.result
0 → 100644
View file @
b5f830d8
drop table if exists t1;
CREATE TABLE t1 (
`Vorgangsnr` int(10) unsigned NOT NULL AUTO_INCREMENT,
`Datum_Eingang` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Erfassungs-/Buchungsdatum',
`Warennummer` varchar(20) DEFAULT NULL,
`BenutzerID` int(10) unsigned DEFAULT NULL,
`Vermerke_Versand` varchar(1024) DEFAULT NULL,
`Zubehr` varchar(250) DEFAULT NULL,
`Datum_Annahme` varchar(12) DEFAULT NULL,
`K_Lieferscheinnummer` int(10) unsigned DEFAULT NULL,
`RMANr` int(10) unsigned DEFAULT '0',
`K_Bestelldaten` varchar(1024) DEFAULT NULL COMMENT 'Bestellnr, Datum, Auftraggeber',
PRIMARY KEY (`Vorgangsnr`),
KEY `Datum_Eingang` (`Datum_Eingang`)
) ENGINE=Aria AUTO_INCREMENT=250 DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
alter table t1 disable keys;
lock tables t1 write;
INSERT INTO t1 (Datum_Eingang, BenutzerID, Zubehr, Datum_Annahme) VALUES ('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006');
INSERT INTO t1 (Datum_Eingang, BenutzerID, Zubehr, Datum_Annahme) VALUES ('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006'),('2006-06-21 00:00:00', 713, 'ohne Zubehr', '21.06.2006');
unlock tables;
select count(*) from t1;
count(*)
88
check table t1 extended;
Table Op Msg_type Msg_text
test.t1 check status OK
alter table t1 enable keys;
check table t1 extended;
Table Op Msg_type Msg_text
test.t1 check status OK
drop table t1;
mysql-test/suite/maria/t/locking.test
0 → 100644
View file @
b5f830d8
#
# Aria bugs that has to do with locking
#
--
source
include
/
have_maria
.
inc
disable_warnings
;
drop
table
if
exists
t1
;
enable_warnings
;
#
# Test generating data with insert select
#
CREATE
TABLE
t1
(
`Vorgangsnr`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`Datum_Eingang`
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'Erfassungs-/Buchungsdatum'
,
`Warennummer`
varchar
(
20
)
DEFAULT
NULL
,
`BenutzerID`
int
(
10
)
unsigned
DEFAULT
NULL
,
`Vermerke_Versand`
varchar
(
1024
)
DEFAULT
NULL
,
`Zubehr`
varchar
(
250
)
DEFAULT
NULL
,
`Datum_Annahme`
varchar
(
12
)
DEFAULT
NULL
,
`K_Lieferscheinnummer`
int
(
10
)
unsigned
DEFAULT
NULL
,
`RMANr`
int
(
10
)
unsigned
DEFAULT
'0'
,
`K_Bestelldaten`
varchar
(
1024
)
DEFAULT
NULL
COMMENT
'Bestellnr, Datum, Auftraggeber'
,
PRIMARY
KEY
(
`Vorgangsnr`
),
KEY
`Datum_Eingang`
(
`Datum_Eingang`
)
)
ENGINE
=
Aria
AUTO_INCREMENT
=
250
DEFAULT
CHARSET
=
latin1
ROW_FORMAT
=
DYNAMIC
;
alter
table
t1
disable
keys
;
lock
tables
t1
write
;
let
$loop
=
2
;
while
(
$loop
)
{
INSERT
INTO
t1
(
Datum_Eingang
,
BenutzerID
,
Zubehr
,
Datum_Annahme
)
VALUES
(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
),(
'2006-06-21 00:00:00'
,
713
,
'ohne Zubehr'
,
'21.06.2006'
);
dec
$loop
;
}
unlock
tables
;
select
count
(
*
)
from
t1
;
check
table
t1
extended
;
alter
table
t1
enable
keys
;
check
table
t1
extended
;
drop
table
t1
;
storage/maria/ma_extra.c
View file @
b5f830d8
...
...
@@ -143,7 +143,7 @@ int maria_extra(MARIA_HA *info, enum ha_extra_function function,
(
READ_CACHE_USED
|
WRITE_CACHE_USED
|
OPT_NO_ROWS
))
&&
!
share
->
state
.
header
.
uniques
)
if
(
!
(
init_io_cache
(
&
info
->
rec_cache
,
info
->
dfile
.
file
,
cache_size
,
WRITE_CACHE
,
share
->
state
.
state
.
data_file_length
,
WRITE_CACHE
,
info
->
state
->
data_file_length
,
(
pbool
)
(
info
->
lock_type
!=
F_UNLCK
),
MYF
(
share
->
write_flag
&
MY_WAIT_IF_FULL
))))
{
...
...
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