From a39de6353abfb787723a61479fb20a942622a160 Mon Sep 17 00:00:00 2001 From: Guilhem Bichot Date: Tue, 11 Aug 2009 18:47:26 +0200 Subject: [PATCH] a fix for Bug #46652: ndb_restore_compat gives Valgrind error in open_binary_frm(), until it's fixed in a parent tree --- sql/table.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sql/table.cc b/sql/table.cc index 60a27e136b1..5ec371353c8 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -970,8 +970,9 @@ static int open_binary_frm(THD *thd, TABLE_SHARE *share, uchar *head, */ next_chunk+= 4; } - else if (share->mysql_version >= 50110) + else #endif + if (share->mysql_version >= 50110) { /* New auto_partitioned indicator introduced in 5.1.11 */ #ifdef WITH_PARTITION_STORAGE_ENGINE