From 3c631d7b7be1651295ec486066aa1a9027a571ce Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 28 Jul 2007 18:46:21 -0400 Subject: [PATCH] WL#3228 (NDB) : RBR using different table defs on slave/master This patch changes the code to comply with different word order on Solaris --- sql/rpl_utility.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sql/rpl_utility.h b/sql/rpl_utility.h index b94d0510a20..e4f9690cf61 100644 --- a/sql/rpl_utility.h +++ b/sql/rpl_utility.h @@ -122,8 +122,12 @@ public: These types store two bytes. */ uint16 *x= (uint16 *)&field_metadata[index]; +#ifdef WORDS_BIGENDIAN + m_field_metadata[i]= sint2korr(x); +#else m_field_metadata[i]= *x; - index= index + sizeof(short int); +#endif + index= index + sizeof(short); break; } case MYSQL_TYPE_NEWDECIMAL: