diff options
author | Sergei Golubchik <serg@mariadb.org> | 2016-10-18 10:17:55 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2016-12-12 20:27:33 +0100 |
commit | 65e53c8bc6727c4d5909864052d4c6e6c967e870 (patch) | |
tree | 31121dbf47443cd9c21ffaffa6a4c55d0487c033 /storage/archive | |
parent | 9a3ec79b53ea1916211b4134375ebde5fb7c914c (diff) | |
download | mariadb-git-65e53c8bc6727c4d5909864052d4c6e6c967e870.tar.gz |
cleanup: Field_blob::get_ptr()
and declare few other Field getters to be 'const'
Diffstat (limited to 'storage/archive')
-rw-r--r-- | storage/archive/ha_archive.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/storage/archive/ha_archive.cc b/storage/archive/ha_archive.cc index c322c8eee54..9d6d100c1b8 100644 --- a/storage/archive/ha_archive.cc +++ b/storage/archive/ha_archive.cc @@ -383,8 +383,7 @@ unsigned int ha_archive::pack_row_v1(uchar *record) uint32 length= ((Field_blob *) table->field[*blob])->get_length(); if (length) { - uchar *data_ptr; - ((Field_blob *) table->field[*blob])->get_ptr(&data_ptr); + uchar *data_ptr= ((Field_blob *) table->field[*blob])->get_ptr(); memcpy(pos, data_ptr, length); pos+= length; } |