diff --git a/storage/ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp b/storage/ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp index faa565f781a..eb94e2c3473 100644 --- a/storage/ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp +++ b/storage/ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp @@ -1200,7 +1200,7 @@ Dbtup::read_pseudo(Uint32 attrId, return 0; case AttributeHeader::COPY_ROWID: outBuffer[0] = operPtr.p->m_copy_tuple_location.m_page_no; - outBuffer[0] = operPtr.p->m_copy_tuple_location.m_page_idx; + outBuffer[1] = operPtr.p->m_copy_tuple_location.m_page_idx; return 2; default: return 0;