From ee040ef2b762d1a780a53bc347657484335b1a4c Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 31 Aug 2007 10:19:52 +0400 Subject: Never access thd->ha_data directly, use getters/setters from the plugin API instead. This is a pre-requisite of the fix for Bug 12713, which changes the data type of thd->ha_data from void * to struct Ha_data. include/mysql/plugin.h: Provide accessors to thd->ha_data for simple and robust code. sql/ha_ndbcluster_binlog.h: Use getters/setters of thd->ha_data, instead of direct access. sql/handler.cc: Use a getter of thd->ha_data instead of direct access. sql/log.cc: Use getters/setters of thd->ha_data, instead of direct access. sql/rpl_utility.h: Fix a compilation warning (declaration order must match initialization order in constructor). storage/federated/ha_federated.cc: Use interface accessors to thd->ha_data, instead of direct access. --- sql/rpl_utility.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/rpl_utility.h') diff --git a/sql/rpl_utility.h b/sql/rpl_utility.h index eac3d14dfc6..62b2ca23918 100644 --- a/sql/rpl_utility.h +++ b/sql/rpl_utility.h @@ -241,8 +241,8 @@ public: private: ulong m_size; // Number of elements in the types array field_type *m_type; // Array of type descriptors - uint16 *m_field_metadata; uint m_field_metadata_size; + uint16 *m_field_metadata; uchar *m_null_bits; uchar *m_memory; }; -- cgit v1.2.1