diff options
author | unknown <serg@sergbook.mysql.com> | 2005-01-05 11:56:15 +0200 |
---|---|---|
committer | unknown <serg@sergbook.mysql.com> | 2005-01-05 11:56:15 +0200 |
commit | 9368cd0f3f366e728d4cc27cd706a8a5a9083d2f (patch) | |
tree | 60881b7c72a5ead15163302473cb9456f0f3298c /sql/ha_federated.cc | |
parent | 4fd1524c0a0e3fed746a8f2af743cafbb12abfd4 (diff) | |
download | mariadb-git-9368cd0f3f366e728d4cc27cd706a8a5a9083d2f.tar.gz |
fix alignment issues
Diffstat (limited to 'sql/ha_federated.cc')
-rwxr-xr-x | sql/ha_federated.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/ha_federated.cc b/sql/ha_federated.cc index d7fb1950c0f..d4405e3e719 100755 --- a/sql/ha_federated.cc +++ b/sql/ha_federated.cc @@ -1522,7 +1522,7 @@ void ha_federated::position(const byte *record) { DBUG_ENTER("ha_federated::position"); //ha_store_ptr Add seek storage - *(MYSQL_ROW_OFFSET *)ref=current_position; + *(MYSQL_ROW_OFFSET *)ref=current_position; // ref is always aligned DBUG_VOID_RETURN; } @@ -1541,7 +1541,7 @@ int ha_federated::rnd_pos(byte * buf, byte *pos) { DBUG_ENTER("ha_federated::rnd_pos"); statistic_increment(table->in_use->status_var.ha_read_rnd_count,&LOCK_status); - current_position= *(MYSQL_ROW_OFFSET *)pos; + memcpy(current_position, pos, sizeof(MYSQL_ROW_OFFSET)); // pos is not aligned result->current_row= 0; result->data_cursor= current_position; DBUG_RETURN(rnd_next(buf)); |