summaryrefslogtreecommitdiff
path: root/storage/archive
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-10-18 10:17:55 +0200
committerSergei Golubchik <serg@mariadb.org>2016-12-12 20:27:33 +0100
commit65e53c8bc6727c4d5909864052d4c6e6c967e870 (patch)
tree31121dbf47443cd9c21ffaffa6a4c55d0487c033 /storage/archive
parent9a3ec79b53ea1916211b4134375ebde5fb7c914c (diff)
downloadmariadb-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.cc3
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;
}