#At file:///home/msvensson/mysql/rbwr/7.0/ based on revid:magnus.blaudd@stripped
3817 Magnus Blåudd 2010-10-22
ndb
- remove uneccessary pointer subtraction, value is already known in "i"
modified:
sql/ha_ndbcluster.cc
=== modified file 'sql/ha_ndbcluster.cc'
--- a/sql/ha_ndbcluster.cc 2010-10-22 13:19:48 +0000
+++ b/sql/ha_ndbcluster.cc 2010-10-22 13:22:46 +0000
@@ -5815,13 +5815,12 @@ bool ha_ndbcluster::read_before_write_re
if (m_has_unique_index)
{
KEY *key;
- uint i;
- for (i= 0; i < table_share->keys; i++)
+ for (uint i= 0; i < table_share->keys; i++)
{
key= table->key_info + i;
if ((key->flags & HA_NOSAME) &&
bitmap_is_overlapping(table->write_set,
- m_key_fields[key - table->key_info]))
+ m_key_fields[i]))
{
DBUG_RETURN(FALSE);
}
Attachment: [text/bzr-bundle] bzr/magnus.blaudd@sun.com-20101022132246-b3v12zooa87imqcw.bundle
| Thread |
|---|
| • bzr commit into mysql-5.1-telco-7.0 branch (magnus.blaudd:3817) | Magnus Blåudd | 22 Oct |