ndb - fiexed for bug#15021, binlog_index table become inconsistent if errors...
ndb - fiexed for bug#15021, binlog_index table become inconsistent if errors during purge of binlogs.
improved the original patch, changed if/else to switch/case.
sql/table.cc:
changed if/else to switch/case.