diff options
author | Daniel Black <grooverdan@users.sourceforge.net> | 2015-04-13 23:25:23 +1000 |
---|---|---|
committer | Daniel Black <grooverdan@users.sourceforge.net> | 2015-04-13 23:25:23 +1000 |
commit | 76c18f7e76dff6f5c5f8986e0480074a3100fdbe (patch) | |
tree | 925db1f8d51f543f594ce4aa59bc007ba8f653d5 /sql | |
parent | 622891c6e17b714d92534cb46bf0d573fa4e3ba1 (diff) | |
download | mariadb-git-76c18f7e76dff6f5c5f8986e0480074a3100fdbe.tar.gz |
sql_print_information corrected
as checksum/swap don't always occur
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_view.cc | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/sql/sql_view.cc b/sql/sql_view.cc index da7ab7c79bc..24f01aeaa76 100644 --- a/sql/sql_view.cc +++ b/sql/sql_view.cc @@ -856,6 +856,8 @@ int mariadb_fix_view(THD *thd, TABLE_LIST *view, bool wrong_checksum, else view->algorithm= VIEW_ALGORITHM_MERGE; } + else + swap_alg= 0; if (wrong_checksum) { if (view->md5.length != 32) @@ -875,10 +877,14 @@ int mariadb_fix_view(THD *thd, TABLE_LIST *view, bool wrong_checksum, view->db, view->table_name); DBUG_RETURN(HA_ADMIN_INTERNAL_ERROR); } - sql_print_information("View '%-.192s'.'%-.192s': algorithm swapped to '%s'", - view->db, view->table_name, - (view->algorithm == VIEW_ALGORITHM_MERGE)? - "MERGE":"TEMPTABLE"); + sql_print_information("View '%-.192s'.'%-.192s': versioned to %llu%s%s", + view->db, view->table_name, view->mariadb_version, + (wrong_checksum ? ", and checksum corrected" : ""), + (swap_alg ? + ((view->algorithm == VIEW_ALGORITHM_MERGE) ? + ", and algorithm swapped to 'MERGE'" + : ", and algorithm swapped to 'TEMPTABLE'") + : "")); DBUG_RETURN(HA_ADMIN_OK); |