MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pfs_check.cc File Reference
#include "my_global.h"
#include "pfs_server.h"
#include "pfs_engine_table.h"
Include dependency graph for pfs_check.cc:

Go to the source code of this file.

Functions

void check_performance_schema ()

Detailed Description

Check the performance schema table structure. The code in this file is implemented in pfs_check.cc instead of pfs_server.cc, to separate dependencies to server structures (THD, ...) in a dedicated file. This code organization helps a lot maintenance of the unit tests.

Definition in file pfs_check.cc.

Function Documentation

void check_performance_schema ( )

Check that the performance schema tables have the expected structure. Discrepancies are written in the server log, but are not considered fatal, so this function does not return an error code:

  • some differences are compatible, and should not cause a failure
  • some differences are not compatible, but then the DBA needs an operational server to be able to DROP+CREATE the tables with the proper structure, as part of the initial server installation or during an upgrade. In case of discrepancies, later attempt to perform DML against the performance schema will be rejected with an error.

Definition at line 45 of file pfs_check.cc.

Here is the call graph for this function: