MySQL 9.0.0
Source Code Documentation
ha_innopart.cc File Reference

Code for native partitioning in InnoDB. More...

#include <debug_sync.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <log.h>
#include <my_check_opt.h>
#include <mysqld.h>
#include <sql_acl.h>
#include <sql_backup_lock.h>
#include <sql_class.h>
#include <sql_show.h>
#include <sql_table.h>
#include <strfunc.h>
#include <algorithm>
#include <new>
#include "dd/dd.h"
#include "dd/dictionary.h"
#include "dd/properties.h"
#include "dd/types/partition.h"
#include "dd/types/table.h"
#include "btr0sea.h"
#include "ddl0ddl.h"
#include "dict0dd.h"
#include "dict0dict.h"
#include "dict0priv.h"
#include "dict0stats.h"
#include "fsp0sysspace.h"
#include "ha_innodb.h"
#include "ha_innopart.h"
#include "handler0alter.h"
#include "key.h"
#include "lex_string.h"
#include "lock0lock.h"
#include "my_byteorder.h"
#include "my_compiler.h"
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_io.h"
#include "my_macros.h"
#include "mysql/plugin.h"
#include "partition_info.h"
#include "row0import.h"
#include "row0ins.h"
#include "row0mysql.h"
#include "row0quiesce.h"
#include "row0sel.h"
#include "row0upd.h"
#include "univ.i"
#include "ut0ut.h"

Functions

const char * partition_get_tablespace (const char *tablespace, const partition_element *part, const partition_element *sub_part)
 Get explicit specified tablespace for one (sub)partition, checking from lowest level. More...
 
static int update_table_stats (dict_table_t *table, bool is_analyze)
 Updates the statistics for one partition (table). More...
 

Detailed Description

Code for native partitioning in InnoDB.

Created Nov 22, 2013 Mattias Jonsson

Function Documentation

◆ partition_get_tablespace()

const char * partition_get_tablespace ( const char *  tablespace,
const partition_element part,
const partition_element sub_part 
)

Get explicit specified tablespace for one (sub)partition, checking from lowest level.

Parameters
[in]tablespacetable-level tablespace if specified
[in]partPartition to check
[in]sub_partSub-partition to check, if no, just NULL
Returns
Tablespace name, if nullptr or [0] = '\0' then nothing specified

◆ update_table_stats()

static int update_table_stats ( dict_table_t table,
bool  is_analyze 
)
static

Updates the statistics for one partition (table).

Parameters
[in]tableTable to update the statistics for.
[in]is_analyzeTrue if called from "::analyze()".
Returns
error code.