Commit 1bb473c3 authored by mskold@mysql.com's avatar mskold@mysql.com

If doing write, then peeking is not needed

parent a40d9128
......@@ -2076,7 +2076,7 @@ int ha_ndbcluster::write_row(byte *record)
/*
* If IGNORE the ignore constraint violations on primary and unique keys
*/
if (m_ignore_dup_key)
if (!m_use_write && m_ignore_dup_key)
{
int peek_res= peek_indexed_rows(record);
......
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