diff options
author | Tatiana A. Nurnberg <azundris@mysql.com> | 2009-09-29 06:08:18 -0700 |
---|---|---|
committer | Tatiana A. Nurnberg <azundris@mysql.com> | 2009-09-29 06:08:18 -0700 |
commit | ba6bd996209fae2639c361119c6b23c7d9a83a55 (patch) | |
tree | 96b07f56caa91eceb1ac80a12e25c3f7c0b188c4 /sql/log_event.cc | |
parent | 197182d74904e2ef88e95675d81c0c39782c635d (diff) | |
parent | fc3740368aed05f95da167deda7544a91a904d3f (diff) | |
download | mariadb-git-ba6bd996209fae2639c361119c6b23c7d9a83a55.tar.gz |
auto-merge
Diffstat (limited to 'sql/log_event.cc')
-rw-r--r-- | sql/log_event.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/log_event.cc b/sql/log_event.cc index d91b09d90c9..d7921ad3c27 100644 --- a/sql/log_event.cc +++ b/sql/log_event.cc @@ -8842,11 +8842,11 @@ int Rows_log_event::find_row(const Relay_log_info *rli) */ store_record(table,record[1]); - if (table->s->keys > 0) + if (table->s->keys > 0 && table->s->keys_in_use.is_set(0)) { DBUG_PRINT("info",("locating record using primary key (index_read)")); - /* We have a key: search the table using the index */ + /* The 0th key is active: search the table using the index */ if (!table->file->inited && (error= table->file->ha_index_init(0, FALSE))) { DBUG_PRINT("info",("ha_index_init returns error %d",error)); |