diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2013-07-23 18:29:16 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2013-07-23 18:29:16 +0400 |
commit | b2aea91fcbbdde9e16a3aa54691e968890b634e4 (patch) | |
tree | 49887b0280c6e5f971a147bc974b041b67a82890 /storage/connect/ha_connect.h | |
parent | 84d073848a76e15bdd02c54f5c0965156eb6f095 (diff) | |
download | mariadb-git-b2aea91fcbbdde9e16a3aa54691e968890b634e4.tar.gz |
MDEV-4786 - merge 10.0-monty → 10.0
Fixed connect compilation failure.
storage/connect/csort.cpp:
min/max are not defined by my_global.h anymore, include osutil.h instead.
storage/connect/filamfix.cpp:
min/max are not defined by my_global.h anymore, include osutil.h instead.
storage/connect/ha_connect.cc:
Renamed MYSQL_ERROR -> Sql_condition.
Renamed KEY::key_parts -> KEY::user_defined_key_parts.
Adjusted connect according to:
WL#4305 - storage-engine private data area per physical table.
storage/connect/ha_connect.h:
Adjusted connect according to:
WL#4305 - storage-engine private data area per physical table.
storage/connect/inihandl.c:
min/max are not defined by my_global.h anymore, include osutil.h instead.
storage/connect/osutil.h:
min/max are not defined by my_global.h anymore, define them for C as well.
storage/connect/taboccur.cpp:
Include server headers before osutil.h to avoid min/max redefinition.
storage/connect/tabpivot.cpp:
Include server headers before osutil.h to avoid min/max redefinition.
storage/connect/tabtbl.cpp:
Include server headers before osutil.h to avoid min/max redefinition.
storage/connect/tabxcl.cpp:
Include server headers before osutil.h to avoid min/max redefinition.
storage/connect/value.cpp:
min/max are not defined by my_global.h anymore, include osutil.h instead.
Include server headers before osutil.h to avoid min/max redefinition.
Diffstat (limited to 'storage/connect/ha_connect.h')
-rw-r--r-- | storage/connect/ha_connect.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/storage/connect/ha_connect.h b/storage/connect/ha_connect.h index abf82b2d1a8..d248b351081 100644 --- a/storage/connect/ha_connect.h +++ b/storage/connect/ha_connect.h @@ -123,12 +123,20 @@ struct ha_field_option_struct CONNECT_SHARE is a structure that will be shared among all open handlers. This example implements the minimum of what you will probably need. */ -typedef struct st_connect_share { - char *table_name; - uint table_name_length, use_count; +class CONNECT_SHARE : public Handler_share { +public: mysql_mutex_t mutex; THR_LOCK lock; -} CONNECT_SHARE; + CONNECT_SHARE() + { + thr_lock_init(&lock); + } + ~CONNECT_SHARE() + { + thr_lock_delete(&lock); + mysql_mutex_destroy(&mutex); + } +}; typedef class ha_connect *PHC; @@ -139,6 +147,7 @@ class ha_connect: public handler { THR_LOCK_DATA lock; ///< MySQL lock CONNECT_SHARE *share; ///< Shared lock info + CONNECT_SHARE *get_share(); public: ha_connect(handlerton *hton, TABLE_SHARE *table_arg); |