diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-05-05 23:53:31 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-05-05 23:53:31 +0200 |
commit | 3792693f311a90cf195ec6d2f9b3762255a249c7 (patch) | |
tree | 6a7af45fff9c7ad7463310d1fe12e9d505547b2f /sql/handler.h | |
parent | f90dca1a0d78f4af9ab4355aaf325839034147ce (diff) | |
download | mariadb-git-3792693f311a90cf195ec6d2f9b3762255a249c7.tar.gz |
merge MySQL-5.6 bugfix "Bug#17862905: MYSQLDUMP CREATES USELESS METADATA LOCKS"
revno: 5716
committer: Praveenkumar Hulakund <praveenkumar.hulakund@oracle.com>
branch nick: mysql_5_6
timestamp: Sat 2013-12-28 22:08:40 +0530
message:
Bug#17862905: MYSQLDUMP CREATES USELESS METADATA LOCKS
Diffstat (limited to 'sql/handler.h')
-rw-r--r-- | sql/handler.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/handler.h b/sql/handler.h index 13b783b964b..0b8bd6e9ce6 100644 --- a/sql/handler.h +++ b/sql/handler.h @@ -1025,6 +1025,13 @@ struct handlerton to the savepoint_set call */ int (*savepoint_rollback)(handlerton *hton, THD *thd, void *sv); + /** + Check if storage engine allows to release metadata locks which were + acquired after the savepoint if rollback to savepoint is done. + @return true - If it is safe to release MDL locks. + false - If it is not. + */ + bool (*savepoint_rollback_can_release_mdl)(handlerton *hton, THD *thd); int (*savepoint_release)(handlerton *hton, THD *thd, void *sv); /* 'all' is true if it's a real commit, that makes persistent changes @@ -4046,6 +4053,7 @@ int ha_enable_transaction(THD *thd, bool on); /* savepoints */ int ha_rollback_to_savepoint(THD *thd, SAVEPOINT *sv); +bool ha_rollback_to_savepoint_can_release_mdl(THD *thd); int ha_savepoint(THD *thd, SAVEPOINT *sv); int ha_release_savepoint(THD *thd, SAVEPOINT *sv); |