diff options
author | Aleksey Midenkov <midenok@gmail.com> | 2020-11-24 13:44:35 +0300 |
---|---|---|
committer | Aleksey Midenkov <midenok@gmail.com> | 2020-12-04 23:24:59 +0300 |
commit | 5d42f699655e0e2964007b4f42eb5323a44d6f77 (patch) | |
tree | 172d6fe410c49a284072bd4fc810f5cd688ab037 | |
parent | 8f3b99d0c96aa0f2b09d6c04c298f6ade411ed83 (diff) | |
download | mariadb-git-5d42f699655e0e2964007b4f42eb5323a44d6f77.tar.gz |
Comments
-rw-r--r-- | sql/sql_alter.h | 2 | ||||
-rw-r--r-- | sql/sql_class.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_alter.h b/sql/sql_alter.h index 2bdc8fce69d..134fb1ae7f3 100644 --- a/sql/sql_alter.h +++ b/sql/sql_alter.h @@ -428,7 +428,7 @@ public: // Backup for the table we altering. NB: auto-rollback if not committed. FK_table_backup fk_table_backup; - // NB: share is owned and released by fk_shares. + // NB: shares are owned and released by fk_shares. FK_ddl_vector fk_ref_backup; /* NB: backup is added only if not exists, fk_handle_alter() may try it multiple diff --git a/sql/sql_class.h b/sql/sql_class.h index 976add8fe7c..88e7bfa2df0 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -1070,7 +1070,7 @@ public: /* - NB: Not a vtagain, ALTER does require duplicate check hence mbd::map is used, while other commands + NB: again, ALTER does require duplicate check hence mbd::map is used, while other commands do not require and mbd::vector is enough. To avoid templating or code complexity via virtual ifaces we just use mbd::map for everything. We are not going to hit bottleneck here: it is DDL (rare operation), it is less than hundred of foreign keys normally. |