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
6cd0eebe
Commit
6cd0eebe
authored
Feb 10, 2010
by
Mattias Jonsson
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
b0e2a9b2
dca67006
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
49 additions
and
6 deletions
+49
-6
mysql-test/suite/parts/r/partition_innodb_status_file.result
mysql-test/suite/parts/r/partition_innodb_status_file.result
+14
-0
mysql-test/suite/parts/t/partition_innodb_status_file-master.opt
...est/suite/parts/t/partition_innodb_status_file-master.opt
+1
-0
mysql-test/suite/parts/t/partition_innodb_status_file.test
mysql-test/suite/parts/t/partition_innodb_status_file.test
+20
-0
sql/sql_table.cc
sql/sql_table.cc
+11
-6
sql/unireg.h
sql/unireg.h
+3
-0
No files found.
mysql-test/suite/parts/r/partition_innodb_status_file.result
0 → 100644
View file @
6cd0eebe
CREATE TABLE t1 (a INT) ENGINE = InnoDB PARTITION BY HASH(a);
INSERT INTO t1 VALUES (0), (1), (2);
START TRANSACTION;
UPDATE t1 SET a = 5 WHERE a = 1;
# Connection con1
# InnoDB lock timeout and monitor thread runs every 15 seconds
SET innodb_lock_wait_timeout = 20;
START TRANSACTION;
UPDATE t1 SET a = 3 WHERE a = 1;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
COMMIT;
# Connection default
COMMIT;
DROP TABLE t1;
mysql-test/suite/parts/t/partition_innodb_status_file-master.opt
0 → 100644
View file @
6cd0eebe
--innodb-status-file=1
mysql-test/suite/parts/t/partition_innodb_status_file.test
0 → 100644
View file @
6cd0eebe
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_partition
.
inc
CREATE
TABLE
t1
(
a
INT
)
ENGINE
=
InnoDB
PARTITION
BY
HASH
(
a
);
INSERT
INTO
t1
VALUES
(
0
),
(
1
),
(
2
);
START
TRANSACTION
;
UPDATE
t1
SET
a
=
5
WHERE
a
=
1
;
connect
(
con1
,
localhost
,
root
,,);
--
echo
# Connection con1
--
echo
# InnoDB lock timeout and monitor thread runs every 15 seconds
SET
innodb_lock_wait_timeout
=
20
;
START
TRANSACTION
;
--
error
ER_LOCK_WAIT_TIMEOUT
UPDATE
t1
SET
a
=
3
WHERE
a
=
1
;
COMMIT
;
disconnect
con1
;
connection
default
;
--
echo
# Connection default
COMMIT
;
DROP
TABLE
t1
;
sql/sql_table.cc
View file @
6cd0eebe
...
@@ -292,7 +292,8 @@ uint explain_filename(THD* thd,
...
@@ -292,7 +292,8 @@ uint explain_filename(THD* thd,
{
{
if
(
explain_mode
==
EXPLAIN_ALL_VERBOSE
)
if
(
explain_mode
==
EXPLAIN_ALL_VERBOSE
)
{
{
to_p
=
strnmov
(
to_p
,
ER
(
ER_DATABASE_NAME
),
end_p
-
to_p
);
to_p
=
strnmov
(
to_p
,
ER_THD_OR_DEFAULT
(
thd
,
ER_DATABASE_NAME
),
end_p
-
to_p
);
*
(
to_p
++
)
=
' '
;
*
(
to_p
++
)
=
' '
;
to_p
=
add_identifier
(
thd
,
to_p
,
end_p
,
db_name
,
db_name_len
);
to_p
=
add_identifier
(
thd
,
to_p
,
end_p
,
db_name
,
db_name_len
);
to_p
=
strnmov
(
to_p
,
", "
,
end_p
-
to_p
);
to_p
=
strnmov
(
to_p
,
", "
,
end_p
-
to_p
);
...
@@ -305,7 +306,7 @@ uint explain_filename(THD* thd,
...
@@ -305,7 +306,7 @@ uint explain_filename(THD* thd,
}
}
if
(
explain_mode
==
EXPLAIN_ALL_VERBOSE
)
if
(
explain_mode
==
EXPLAIN_ALL_VERBOSE
)
{
{
to_p
=
strnmov
(
to_p
,
ER
(
ER_TABLE_NAME
),
end_p
-
to_p
);
to_p
=
strnmov
(
to_p
,
ER
_THD_OR_DEFAULT
(
thd
,
ER_TABLE_NAME
),
end_p
-
to_p
);
*
(
to_p
++
)
=
' '
;
*
(
to_p
++
)
=
' '
;
to_p
=
add_identifier
(
thd
,
to_p
,
end_p
,
table_name
,
table_name_len
);
to_p
=
add_identifier
(
thd
,
to_p
,
end_p
,
table_name
,
table_name_len
);
}
}
...
@@ -322,18 +323,22 @@ uint explain_filename(THD* thd,
...
@@ -322,18 +323,22 @@ uint explain_filename(THD* thd,
if
(
name_type
!=
NORMAL
)
if
(
name_type
!=
NORMAL
)
{
{
if
(
name_type
==
TEMP
)
if
(
name_type
==
TEMP
)
to_p
=
strnmov
(
to_p
,
ER
(
ER_TEMPORARY_NAME
),
end_p
-
to_p
);
to_p
=
strnmov
(
to_p
,
ER_THD_OR_DEFAULT
(
thd
,
ER_TEMPORARY_NAME
),
end_p
-
to_p
);
else
else
to_p
=
strnmov
(
to_p
,
ER
(
ER_RENAMED_NAME
),
end_p
-
to_p
);
to_p
=
strnmov
(
to_p
,
ER_THD_OR_DEFAULT
(
thd
,
ER_RENAMED_NAME
),
end_p
-
to_p
);
to_p
=
strnmov
(
to_p
,
" "
,
end_p
-
to_p
);
to_p
=
strnmov
(
to_p
,
" "
,
end_p
-
to_p
);
}
}
to_p
=
strnmov
(
to_p
,
ER
(
ER_PARTITION_NAME
),
end_p
-
to_p
);
to_p
=
strnmov
(
to_p
,
ER_THD_OR_DEFAULT
(
thd
,
ER_PARTITION_NAME
),
end_p
-
to_p
);
*
(
to_p
++
)
=
' '
;
*
(
to_p
++
)
=
' '
;
to_p
=
add_identifier
(
thd
,
to_p
,
end_p
,
part_name
,
part_name_len
);
to_p
=
add_identifier
(
thd
,
to_p
,
end_p
,
part_name
,
part_name_len
);
if
(
subpart_name
)
if
(
subpart_name
)
{
{
to_p
=
strnmov
(
to_p
,
", "
,
end_p
-
to_p
);
to_p
=
strnmov
(
to_p
,
", "
,
end_p
-
to_p
);
to_p
=
strnmov
(
to_p
,
ER
(
ER_SUBPARTITION_NAME
),
end_p
-
to_p
);
to_p
=
strnmov
(
to_p
,
ER_THD_OR_DEFAULT
(
thd
,
ER_SUBPARTITION_NAME
),
end_p
-
to_p
);
*
(
to_p
++
)
=
' '
;
*
(
to_p
++
)
=
' '
;
to_p
=
add_identifier
(
thd
,
to_p
,
end_p
,
subpart_name
,
subpart_name_len
);
to_p
=
add_identifier
(
thd
,
to_p
,
end_p
,
subpart_name
,
subpart_name_len
);
}
}
...
...
sql/unireg.h
View file @
6cd0eebe
...
@@ -46,6 +46,9 @@
...
@@ -46,6 +46,9 @@
#define ER(X) CURRENT_THD_ERRMSGS[(X) - ER_ERROR_FIRST]
#define ER(X) CURRENT_THD_ERRMSGS[(X) - ER_ERROR_FIRST]
#define ER_DEFAULT(X) DEFAULT_ERRMSGS[(X) - ER_ERROR_FIRST]
#define ER_DEFAULT(X) DEFAULT_ERRMSGS[(X) - ER_ERROR_FIRST]
#define ER_SAFE(X) (((X) >= ER_ERROR_FIRST && (X) <= ER_ERROR_LAST) ? ER(X) : "Invalid error code")
#define ER_SAFE(X) (((X) >= ER_ERROR_FIRST && (X) <= ER_ERROR_LAST) ? ER(X) : "Invalid error code")
#define ER_THD(thd,X) ((thd)->variables.lc_messages->errmsgs->errmsgs[(X) - \
ER_ERROR_FIRST])
#define ER_THD_OR_DEFAULT(thd,X) ((thd) ? ER_THD(thd, X) : ER_DEFAULT(X))
#define ERRMAPP 1
/* Errormap f|r my_error */
#define ERRMAPP 1
/* Errormap f|r my_error */
...
...
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