Skip to content

Commit

Permalink
MariaRocks port: In MariaDB, there's no Field_longlong::PACK_LENGTH
Browse files Browse the repository at this point in the history
And the code in ha_rocksdb.cc makes assumptions about hidden pk length
being 8, anyway.
  • Loading branch information
spetrunia committed Oct 16, 2016
1 parent b42248d commit 7eef3de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/rocksdb/ha_rocksdb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 7eef3de

Please sign in to comment.