diff options
Diffstat (limited to 'storage')
-rw-r--r-- | storage/connect/ha_connect.cc | 6 | ||||
-rw-r--r-- | storage/connect/inihandl.c | 2 | ||||
-rw-r--r-- | storage/federated/ha_federated.cc | 1 | ||||
-rw-r--r-- | storage/federatedx/federatedx_io.cc | 2 | ||||
-rw-r--r-- | storage/federatedx/ha_federatedx.cc | 1 | ||||
-rw-r--r-- | storage/innobase/dict/dict0defrag_bg.cc | 4 | ||||
-rw-r--r-- | storage/innobase/dict/dict0stats_bg.cc | 4 | ||||
-rw-r--r-- | storage/innobase/include/dict0mem.h | 10 | ||||
-rw-r--r-- | storage/innobase/include/fsp0fsp.h | 2 | ||||
-rw-r--r-- | storage/innobase/include/fsp0types.h | 6 | ||||
-rw-r--r-- | storage/innobase/row/row0sel.cc | 2 | ||||
-rw-r--r-- | storage/xtradb/handler/ha_innodb.cc | 2 | ||||
-rw-r--r-- | storage/xtradb/include/dict0mem.h | 6 | ||||
-rw-r--r-- | storage/xtradb/include/fsp0fsp.h | 8 |
14 files changed, 22 insertions, 34 deletions
diff --git a/storage/connect/ha_connect.cc b/storage/connect/ha_connect.cc index 5fe75fd0f59..a2ba6ffad13 100644 --- a/storage/connect/ha_connect.cc +++ b/storage/connect/ha_connect.cc @@ -1190,7 +1190,7 @@ char *ha_connect::GetRealString(const char *s) { char *sv; - if (IsPartitioned() && s && partname && *partname) { + if (IsPartitioned() && s && *partname) { sv= (char*)PlugSubAlloc(xp->g, NULL, 0); sprintf(sv, s, partname); PlugSubAlloc(xp->g, NULL, strlen(sv) + 1); @@ -2868,7 +2868,7 @@ PCFIL ha_connect::CheckCond(PGLOBAL g, PCFIL filp, const Item *cond) strncat(body, res->ptr(), res->length()); if (res->length() < 19) - strcat(body, "1970-01-01 00:00:00" + res->length()); + strcat(body, &"1970-01-01 00:00:00"[res->length()]); strcat(body, "'}"); break; @@ -2897,7 +2897,7 @@ PCFIL ha_connect::CheckCond(PGLOBAL g, PCFIL filp, const Item *cond) strncat(body, res->ptr(), res->length()); if (res->length() < 19) - strcat(body, "1970-01-01 00:00:00" + res->length()); + strcat(body, &"1970-01-01 00:00:00"[res->length()]); strcat(body, "'}"); break; diff --git a/storage/connect/inihandl.c b/storage/connect/inihandl.c index 46102557b20..896431b855f 100644 --- a/storage/connect/inihandl.c +++ b/storage/connect/inihandl.c @@ -193,7 +193,7 @@ static void PROFILE_Save( FILE *file, PROFILESECTION *section ) } for (key = section->key; key; key = key->next) - if (key->name && key->name[0]) { + if (key->name[0]) { fprintf(file, "%s", SVP(key->name)); if (key->value) diff --git a/storage/federated/ha_federated.cc b/storage/federated/ha_federated.cc index 2334848a50b..038415cc188 100644 --- a/storage/federated/ha_federated.cc +++ b/storage/federated/ha_federated.cc @@ -407,7 +407,6 @@ static const int bulk_padding= 64; // bytes "overhead" in packet /* Variables used when chopping off trailing characters */ static const uint sizeof_trailing_comma= sizeof(", ") - 1; -static const uint sizeof_trailing_closeparen= sizeof(") ") - 1; static const uint sizeof_trailing_and= sizeof(" AND ") - 1; static const uint sizeof_trailing_where= sizeof(" WHERE ") - 1; diff --git a/storage/federatedx/federatedx_io.cc b/storage/federatedx/federatedx_io.cc index 1e0348e3bf8..5baec617cda 100644 --- a/storage/federatedx/federatedx_io.cc +++ b/storage/federatedx/federatedx_io.cc @@ -54,8 +54,6 @@ static const io_schemes_st federated_io_schemes[] = { "null", instantiate_io_null } /* must be last element */ }; -const uint federated_io_schemes_count= array_elements(federated_io_schemes); - federatedx_io::federatedx_io(FEDERATEDX_SERVER *aserver) : server(aserver), owner_ptr(0), txn_next(0), idle_next(0), active(FALSE), busy(FALSE), readonly(TRUE) diff --git a/storage/federatedx/ha_federatedx.cc b/storage/federatedx/ha_federatedx.cc index cc12673f86f..a4da84ddaf3 100644 --- a/storage/federatedx/ha_federatedx.cc +++ b/storage/federatedx/ha_federatedx.cc @@ -337,7 +337,6 @@ static const int bulk_padding= 64; // bytes "overhead" in packet /* Variables used when chopping off trailing characters */ static const uint sizeof_trailing_comma= sizeof(", ") - 1; -static const uint sizeof_trailing_closeparen= sizeof(") ") - 1; static const uint sizeof_trailing_and= sizeof(" AND ") - 1; static const uint sizeof_trailing_where= sizeof(" WHERE ") - 1; diff --git a/storage/innobase/dict/dict0defrag_bg.cc b/storage/innobase/dict/dict0defrag_bg.cc index 82aa3abcde6..3f3eefc6acf 100644 --- a/storage/innobase/dict/dict0defrag_bg.cc +++ b/storage/innobase/dict/dict0defrag_bg.cc @@ -43,10 +43,6 @@ static ib_mutex_t defrag_pool_mutex; static mysql_pfs_key_t defrag_pool_mutex_key; #endif -/** The number of tables that can be added to "defrag_pool" before -it is enlarged */ -static const ulint DEFRAG_POOL_INITIAL_SLOTS = 128; - /** Indices whose defrag stats need to be saved to persistent storage.*/ struct defrag_pool_item_t { table_id_t table_id; diff --git a/storage/innobase/dict/dict0stats_bg.cc b/storage/innobase/dict/dict0stats_bg.cc index dbc8e90bed6..9d04cee4165 100644 --- a/storage/innobase/dict/dict0stats_bg.cc +++ b/storage/innobase/dict/dict0stats_bg.cc @@ -63,10 +63,6 @@ static os_event_t dict_stats_disabled_event; /** This mutex protects the "recalc_pool" variable. */ static ib_mutex_t recalc_pool_mutex; -/** The number of tables that can be added to "recalc_pool" before -it is enlarged */ -static const ulint RECALC_POOL_INITIAL_SLOTS = 128; - /** Allocator type, used by std::vector */ typedef ut_allocator<table_id_t> recalc_pool_allocator_t; diff --git a/storage/innobase/include/dict0mem.h b/storage/innobase/include/dict0mem.h index 4fac0648bcb..c009732aac7 100644 --- a/storage/innobase/include/dict0mem.h +++ b/storage/innobase/include/dict0mem.h @@ -235,23 +235,23 @@ DEFAULT=0, ON = 1, OFF = 2 << DICT_TF_POS_SHARED_SPACE) /** Bit mask of the PAGE_COMPRESSION field */ #define DICT_TF_MASK_PAGE_COMPRESSION \ - ((~(~0 << DICT_TF_WIDTH_PAGE_COMPRESSION)) \ + ((~(~0U << DICT_TF_WIDTH_PAGE_COMPRESSION)) \ << DICT_TF_POS_PAGE_COMPRESSION) /** Bit mask of the PAGE_COMPRESSION_LEVEL field */ #define DICT_TF_MASK_PAGE_COMPRESSION_LEVEL \ - ((~(~0 << DICT_TF_WIDTH_PAGE_COMPRESSION_LEVEL)) \ + ((~(~0U << DICT_TF_WIDTH_PAGE_COMPRESSION_LEVEL)) \ << DICT_TF_POS_PAGE_COMPRESSION_LEVEL) /** Bit mask of the ATOMIC_WRITES field */ #define DICT_TF_MASK_ATOMIC_WRITES \ - ((~(~0 << DICT_TF_WIDTH_ATOMIC_WRITES)) \ + ((~(~0U << DICT_TF_WIDTH_ATOMIC_WRITES)) \ << DICT_TF_POS_ATOMIC_WRITES) /** Bit mask of the PAGE_ENCRYPTION field */ #define DICT_TF_MASK_PAGE_ENCRYPTION \ - ((~(~0 << DICT_TF_WIDTH_PAGE_ENCRYPTION)) \ + ((~(~0U << DICT_TF_WIDTH_PAGE_ENCRYPTION)) \ << DICT_TF_POS_PAGE_ENCRYPTION) /** Bit mask of the PAGE_ENCRYPTION_KEY field */ #define DICT_TF_MASK_PAGE_ENCRYPTION_KEY \ - ((~(~0 << DICT_TF_WIDTH_PAGE_ENCRYPTION_KEY)) \ + ((~(~0U << DICT_TF_WIDTH_PAGE_ENCRYPTION_KEY)) \ << DICT_TF_POS_PAGE_ENCRYPTION_KEY) /** Return the value of the COMPACT field */ diff --git a/storage/innobase/include/fsp0fsp.h b/storage/innobase/include/fsp0fsp.h index 3709c4a4f24..17ccb113e91 100644 --- a/storage/innobase/include/fsp0fsp.h +++ b/storage/innobase/include/fsp0fsp.h @@ -48,7 +48,7 @@ Created 12/18/1995 Heikki Tuuri + FSP_FLAGS_WIDTH_PAGE_SSIZE) /** Bit mask of the DATA_DIR field */ #define FSP_FLAGS_MASK_DATA_DIR_ORACLE \ - ((~(~0 << FSP_FLAGS_WIDTH_DATA_DIR)) \ + ((~(~0U << FSP_FLAGS_WIDTH_DATA_DIR)) \ << FSP_FLAGS_POS_DATA_DIR_ORACLE) #define FSP_FLAGS_HAS_DATA_DIR_ORACLE(flags) \ diff --git a/storage/innobase/include/fsp0types.h b/storage/innobase/include/fsp0types.h index 73fd6341d94..5acd7777004 100644 --- a/storage/innobase/include/fsp0types.h +++ b/storage/innobase/include/fsp0types.h @@ -348,15 +348,15 @@ is a tablespace with encryption. */ << FSP_FLAGS_POS_ENCRYPTION) /** Bit mask of the PAGE_COMPRESSION field */ #define FSP_FLAGS_MASK_PAGE_COMPRESSION \ - ((~(~0 << FSP_FLAGS_WIDTH_PAGE_COMPRESSION)) \ + ((~(~0U << FSP_FLAGS_WIDTH_PAGE_COMPRESSION)) \ << FSP_FLAGS_POS_PAGE_COMPRESSION) /** Bit mask of the PAGE_COMPRESSION_LEVEL field */ #define FSP_FLAGS_MASK_PAGE_COMPRESSION_LEVEL \ - ((~(~0 << FSP_FLAGS_WIDTH_PAGE_COMPRESSION_LEVEL)) \ + ((~(~0U << FSP_FLAGS_WIDTH_PAGE_COMPRESSION_LEVEL)) \ << FSP_FLAGS_POS_PAGE_COMPRESSION_LEVEL) /** Bit mask of the ATOMIC_WRITES field */ #define FSP_FLAGS_MASK_ATOMIC_WRITES \ - ((~(~0 << FSP_FLAGS_WIDTH_ATOMIC_WRITES)) \ + ((~(~0U << FSP_FLAGS_WIDTH_ATOMIC_WRITES)) \ << FSP_FLAGS_POS_ATOMIC_WRITES) /** Return the value of the POST_ANTELOPE field */ diff --git a/storage/innobase/row/row0sel.cc b/storage/innobase/row/row0sel.cc index 9a94eb99cd3..3f5a307f562 100644 --- a/storage/innobase/row/row0sel.cc +++ b/storage/innobase/row/row0sel.cc @@ -209,7 +209,7 @@ row_sel_sec_rec_is_for_clust_rec( const dict_field_t* ifield; const dict_col_t* col; ulint clust_pos = 0; - ulint clust_len; + ulint clust_len = 0; ulint len; bool is_virtual; diff --git a/storage/xtradb/handler/ha_innodb.cc b/storage/xtradb/handler/ha_innodb.cc index bd02e97b739..4ba67529a64 100644 --- a/storage/xtradb/handler/ha_innodb.cc +++ b/storage/xtradb/handler/ha_innodb.cc @@ -642,7 +642,7 @@ ha_create_table_option innodb_table_option_list[]= { /* With this option user can enable page compression feature for the table */ - HA_TOPTION_BOOL("PAGE_COMPRESSED", page_compressed, compression_default), + HA_TOPTION_BOOL("PAGE_COMPRESSED", page_compressed, 0), /* With this option user can set zip compression level for page compression for this table*/ HA_TOPTION_NUMBER("PAGE_COMPRESSION_LEVEL", page_compression_level, 0, 1, 9, 1), diff --git a/storage/xtradb/include/dict0mem.h b/storage/xtradb/include/dict0mem.h index 24219ac8799..aa5e4795ec9 100644 --- a/storage/xtradb/include/dict0mem.h +++ b/storage/xtradb/include/dict0mem.h @@ -215,15 +215,15 @@ DEFAULT=0, ON = 1, OFF = 2 << DICT_TF_POS_DATA_DIR) /** Bit mask of the PAGE_COMPRESSION field */ #define DICT_TF_MASK_PAGE_COMPRESSION \ - ((~(~0 << DICT_TF_WIDTH_PAGE_COMPRESSION)) \ + ((~(~0U << DICT_TF_WIDTH_PAGE_COMPRESSION)) \ << DICT_TF_POS_PAGE_COMPRESSION) /** Bit mask of the PAGE_COMPRESSION_LEVEL field */ #define DICT_TF_MASK_PAGE_COMPRESSION_LEVEL \ - ((~(~0 << DICT_TF_WIDTH_PAGE_COMPRESSION_LEVEL)) \ + ((~(~0U << DICT_TF_WIDTH_PAGE_COMPRESSION_LEVEL)) \ << DICT_TF_POS_PAGE_COMPRESSION_LEVEL) /** Bit mask of the ATOMIC_WRITES field */ #define DICT_TF_MASK_ATOMIC_WRITES \ - ((~(~0 << DICT_TF_WIDTH_ATOMIC_WRITES)) \ + ((~(~0U << DICT_TF_WIDTH_ATOMIC_WRITES)) \ << DICT_TF_POS_ATOMIC_WRITES) /** Bit mask of the PAGE_ENCRYPTION field */ #define DICT_TF_MASK_PAGE_ENCRYPTION \ diff --git a/storage/xtradb/include/fsp0fsp.h b/storage/xtradb/include/fsp0fsp.h index 9212328f724..e515cc39052 100644 --- a/storage/xtradb/include/fsp0fsp.h +++ b/storage/xtradb/include/fsp0fsp.h @@ -128,19 +128,19 @@ dictionary */ << FSP_FLAGS_POS_DATA_DIR) /** Bit mask of the DATA_DIR field */ #define FSP_FLAGS_MASK_DATA_DIR_ORACLE \ - ((~(~0 << FSP_FLAGS_WIDTH_DATA_DIR)) \ + ((~(~0U << FSP_FLAGS_WIDTH_DATA_DIR)) \ << FSP_FLAGS_POS_DATA_DIR_ORACLE) /** Bit mask of the PAGE_COMPRESSION field */ #define FSP_FLAGS_MASK_PAGE_COMPRESSION \ - ((~(~0 << FSP_FLAGS_WIDTH_PAGE_COMPRESSION)) \ + ((~(~0U << FSP_FLAGS_WIDTH_PAGE_COMPRESSION)) \ << FSP_FLAGS_POS_PAGE_COMPRESSION) /** Bit mask of the PAGE_COMPRESSION_LEVEL field */ #define FSP_FLAGS_MASK_PAGE_COMPRESSION_LEVEL \ - ((~(~0 << FSP_FLAGS_WIDTH_PAGE_COMPRESSION_LEVEL)) \ + ((~(~0U << FSP_FLAGS_WIDTH_PAGE_COMPRESSION_LEVEL)) \ << FSP_FLAGS_POS_PAGE_COMPRESSION_LEVEL) /** Bit mask of the ATOMIC_WRITES field */ #define FSP_FLAGS_MASK_ATOMIC_WRITES \ - ((~(~0 << FSP_FLAGS_WIDTH_ATOMIC_WRITES)) \ + ((~(~0U << FSP_FLAGS_WIDTH_ATOMIC_WRITES)) \ << FSP_FLAGS_POS_ATOMIC_WRITES) /** Return the value of the POST_ANTELOPE field */ |