summaryrefslogtreecommitdiff
path: root/sql/rpl_utility.h
diff options
context:
space:
mode:
authorjani@a88-113-38-195.elisa-laajakaista.fi <>2007-05-24 13:24:36 +0300
committerjani@a88-113-38-195.elisa-laajakaista.fi <>2007-05-24 13:24:36 +0300
commitfc3b3a0a864fd142f65bbd5ff611d2f09041a258 (patch)
tree94027c861a0c3fd6ad62c4bee7ae5f7b1088f056 /sql/rpl_utility.h
parent2ff938d21c596d1769076d2703b22120d2cf8336 (diff)
parent088e2395f1833f16c2ea3f7405f604165b4aa2cc (diff)
downloadmariadb-git-fc3b3a0a864fd142f65bbd5ff611d2f09041a258.tar.gz
Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.1
into a88-113-38-195.elisa-laajakaista.fi:/home/my/bk/mysql-5.1-marvel
Diffstat (limited to 'sql/rpl_utility.h')
-rw-r--r--sql/rpl_utility.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/sql/rpl_utility.h b/sql/rpl_utility.h
index 82992eec690..2ce8def4577 100644
--- a/sql/rpl_utility.h
+++ b/sql/rpl_utility.h
@@ -26,7 +26,7 @@ struct st_relay_log_info;
typedef st_relay_log_info RELAY_LOG_INFO;
uint32
-field_length_from_packed(enum_field_types field_type, byte const *data);
+field_length_from_packed(enum_field_types field_type, uchar const *data);
/**
A table definition from the master.
@@ -58,7 +58,7 @@ public:
@param types Array of types
@param size Number of elements in array 'types'
*/
- table_def(field_type *types, my_size_t size)
+ table_def(field_type *types, ulong size)
: m_size(size), m_type(new unsigned char [size])
{
if (m_type)
@@ -81,7 +81,7 @@ public:
@return The number of fields that there is type data for.
*/
- my_size_t size() const { return m_size; }
+ ulong size() const { return m_size; }
/*
@@ -93,10 +93,9 @@ public:
<code>index</code>. Currently, only the type identifier is
returned.
*/
- field_type type(my_ptrdiff_t index) const
+ field_type type(ulong index) const
{
- DBUG_ASSERT(0 <= index);
- DBUG_ASSERT(static_cast<my_size_t>(index) < m_size);
+ DBUG_ASSERT(index < m_size);
return m_type[index];
}
@@ -120,7 +119,7 @@ public:
int compatible_with(RELAY_LOG_INFO const *rli, TABLE *table) const;
private:
- my_size_t m_size; // Number of elements in the types array
+ ulong m_size; // Number of elements in the types array
field_type *m_type; // Array of type descriptors
};