Commit 543f95ec authored by joreland@mysql.com's avatar joreland@mysql.com

ndb -

  fix length of NDB$PK in unique index table
parent 14fb5e3c
...@@ -202,7 +202,7 @@ class ha_innobase: public handler ...@@ -202,7 +202,7 @@ class ha_innobase: public handler
static ulonglong get_mysql_bin_log_pos(); static ulonglong get_mysql_bin_log_pos();
bool primary_key_is_clustered() { return true; } bool primary_key_is_clustered() { return true; }
int cmp_ref(const byte *ref1, const byte *ref2); int cmp_ref(const byte *ref1, const byte *ref2);
bool ha_innobase::check_if_incompatible_data(HA_CREATE_INFO *info, bool check_if_incompatible_data(HA_CREATE_INFO *info,
uint table_changes); uint table_changes);
}; };
......
...@@ -541,7 +541,7 @@ static void set_tabname(const char *pathname, char *tabname); ...@@ -541,7 +541,7 @@ static void set_tabname(const char *pathname, char *tabname);
qc_engine_callback *engine_callback, qc_engine_callback *engine_callback,
ulonglong *engine_data); ulonglong *engine_data);
bool ha_ndbcluster::check_if_incompatible_data(HA_CREATE_INFO *info, bool check_if_incompatible_data(HA_CREATE_INFO *info,
uint table_changes); uint table_changes);
private: private:
......
...@@ -12549,7 +12549,7 @@ void Dbtc::insertIntoIndexTable(Signal* signal, ...@@ -12549,7 +12549,7 @@ void Dbtc::insertIntoIndexTable(Signal* signal,
AttributeBuffer::DataBufferIterator iter; AttributeBuffer::DataBufferIterator iter;
Uint32 attrId = 0; Uint32 attrId = 0;
Uint32 keyLength = 0; Uint32 keyLength = 0;
Uint32 totalPrimaryKeyLength = 0; Uint32 totalPrimaryKeyLength = 1; // fragment length
Uint32 hops; Uint32 hops;
indexTabPtr.i = indexData->indexId; indexTabPtr.i = indexData->indexId;
...@@ -12604,7 +12604,7 @@ void Dbtc::insertIntoIndexTable(Signal* signal, ...@@ -12604,7 +12604,7 @@ void Dbtc::insertIntoIndexTable(Signal* signal,
} }
AttributeHeader pkAttrHeader(attrId, totalPrimaryKeyLength); AttributeHeader pkAttrHeader(attrId, totalPrimaryKeyLength);
Uint32 attributesLength = afterValues.getSize() + Uint32 attributesLength = afterValues.getSize() +
pkAttrHeader.getHeaderSize() + pkAttrHeader.getDataSize() + 1; pkAttrHeader.getHeaderSize() + pkAttrHeader.getDataSize();
TcKeyReq::setKeyLength(tcKeyRequestInfo, keyLength); TcKeyReq::setKeyLength(tcKeyRequestInfo, keyLength);
tcKeyReq->attrLen = attributesLength; tcKeyReq->attrLen = attributesLength;
......
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