summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-12-03 08:12:47 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2020-12-03 08:12:47 +0200
commita13fac9eeef0f304b6b6f52ad2b6659f22190523 (patch)
tree7bbcbe8765354f03142a005198276cadbfac6b20 /sql/sql_class.h
parente28d9c15c3093612d841b24b5bb6b480c9b8009c (diff)
parentf146969fb3a1e8ed508f55ee38faaffd5cff2021 (diff)
downloadmariadb-git-a13fac9eeef0f304b6b6f52ad2b6659f22190523.tar.gz
Merge 10.5 into 10.6
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r--sql/sql_class.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index 65b2a275632..6bd08343c9e 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -4772,6 +4772,13 @@ public:
locked_tables_mode= mode_arg;
}
void leave_locked_tables_mode();
+ /* Relesae transactional locks if there are no active transactions */
+ void release_transactional_locks()
+ {
+ if (!(server_status &
+ (SERVER_STATUS_IN_TRANS | SERVER_STATUS_IN_TRANS_READONLY)))
+ mdl_context.release_transactional_locks(this);
+ }
int decide_logging_format(TABLE_LIST *tables);
/*
In Some cases when decide_logging_format is called it does not have all