Commit 7eef3de1 authored by Sergei Petrunia's avatar Sergei Petrunia

MariaRocks port: In MariaDB, there's no Field_longlong::PACK_LENGTH

And the code in ha_rocksdb.cc makes assumptions about hidden pk length
being 8, anyway.
parent b42248d2
......@@ -3931,7 +3931,7 @@ int ha_rocksdb::read_hidden_pk_id_from_rowkey(longlong* hidden_pk_id)
if ((!reader.read(Rdb_key_def::INDEX_NUMBER_SIZE)))
return 1;
const int length= Field_longlong::PACK_LENGTH;
const int length= 8; /* was Field_longlong::PACK_LENGTH in FB MySQL tree */
const uchar *from= reinterpret_cast<const uchar*>(reader.read(length));
if (from == nullptr)
{
......
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