Commit 9d234dd0 authored by marko's avatar marko

branches/zip: row_merge_build_indexes(): Call innobase_rec_reset() only once.

row_merge_dup_report(): Do not call innobase_rec_reset().
parent 6b3579a8
...@@ -436,8 +436,6 @@ row_merge_dup_report( ...@@ -436,8 +436,6 @@ row_merge_dup_report(
violation is detected, it is impossible to violation is detected, it is impossible to
fetch the clustered index record without an fetch the clustered index record without an
expensive table scan. */ expensive table scan. */
innobase_rec_reset(dup->table);
} }
} else { } else {
const dict_index_t* clust_index const dict_index_t* clust_index
...@@ -479,7 +477,6 @@ row_merge_dup_report( ...@@ -479,7 +477,6 @@ row_merge_dup_report(
This should never happen, but we ignore this This should never happen, but we ignore this
error unless UNIV_DEBUG is defined. */ error unless UNIV_DEBUG is defined. */
ut_ad(0); ut_ad(0);
innobase_rec_reset(dup->table);
} }
btr_pcur_close(&pcur); btr_pcur_close(&pcur);
...@@ -2311,6 +2308,10 @@ row_merge_build_indexes( ...@@ -2311,6 +2308,10 @@ row_merge_build_indexes(
tmpfd = innobase_mysql_tmpfile(); tmpfd = innobase_mysql_tmpfile();
/* Reset the MySQL row buffer that is used when reporting
duplicate keys. */
innobase_rec_reset(table);
/* Read clustered index of the table and create files for /* Read clustered index of the table and create files for
secondary index entries for merge sort */ secondary index entries for merge sort */
...@@ -2342,7 +2343,6 @@ row_merge_build_indexes( ...@@ -2342,7 +2343,6 @@ row_merge_build_indexes(
if (error != DB_SUCCESS) { if (error != DB_SUCCESS) {
trx->error_key_num = i; trx->error_key_num = i;
innobase_rec_reset(table);
goto func_exit; goto func_exit;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment