summaryrefslogtreecommitdiff
path: root/storage/innobase/fil
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-01-22 16:50:20 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2018-01-22 16:58:13 +0200
commit431607237d0d1438cdc69f5bf5a188253d7549cf (patch)
tree22ef1b0b6d0f67642c6fa09de323a67453acaae5 /storage/innobase/fil
parent5e87f49a9927bf3fd0bd9af789bbdd329e4b4416 (diff)
downloadmariadb-git-431607237d0d1438cdc69f5bf5a188253d7549cf.tar.gz
MDEV-12173 "Error: trying to do an operation on a dropped tablespace"
InnoDB is issuing a 'noise' message that is not a sign of abnormal operation. The only issuers of it are the debug function lock_rec_block_validate() and the change buffer merge. While the error should ideally never occur in transactional locking, we happen to know that DISCARD TABLESPACE and TRUNCATE TABLE and possibly DROP TABLE are breaking InnoDB table locks. When it comes to the change buffer merge, the message simply is useless noise. We know perfectly well that a tablespace can be dropped while a change buffer merge is pending. And the code is prepared to handle that, which is demonstrated by the fact that whenever the message was issued, InnoDB did not crash. fil_inc_pending_ops(): Remove the parameter print_err.
Diffstat (limited to 'storage/innobase/fil')
-rw-r--r--storage/innobase/fil/fil0fil.cc12
1 files changed, 1 insertions, 11 deletions
diff --git a/storage/innobase/fil/fil0fil.cc b/storage/innobase/fil/fil0fil.cc
index 3395d0431d4..7167b99a750 100644
--- a/storage/innobase/fil/fil0fil.cc
+++ b/storage/innobase/fil/fil0fil.cc
@@ -1965,8 +1965,7 @@ UNIV_INTERN
ibool
fil_inc_pending_ops(
/*================*/
- ulint id, /*!< in: space id */
- ibool print_err) /*!< in: need to print error or not */
+ ulint id) /*!< in: space id */
{
fil_space_t* space;
@@ -1974,15 +1973,6 @@ fil_inc_pending_ops(
space = fil_space_get_by_id(id);
- if (space == NULL) {
- if (print_err) {
- fprintf(stderr,
- "InnoDB: Error: trying to do an operation on a"
- " dropped tablespace %lu\n",
- (ulong) id);
- }
- }
-
if (space == NULL || space->stop_new_ops) {
mutex_exit(&fil_system->mutex);