diff options
author | Michael Widenius <monty@mariadb.org> | 2017-04-16 22:40:39 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2017-04-18 12:23:53 +0300 |
commit | a05a610d60a6d177b66f9da97906efdb44336a6f (patch) | |
tree | bca0d63ddc2a8b43d22a3d1732e5497caab40f78 /storage/myisam/myisamdef.h | |
parent | d82ac8eaafd89a6a74436747b660ef02c69eaac3 (diff) | |
download | mariadb-git-a05a610d60a6d177b66f9da97906efdb44336a6f.tar.gz |
Added "const" to new data for handler::update_row()
This was done to make it clear that a update_row() should not change the
row.
This was not done for handler::write_row() as this function still needs
to update auto_increment values in the row. This should at some point
be moved to handler::ha_write_row() after which write_row can also have
const arguments.
Diffstat (limited to 'storage/myisam/myisamdef.h')
-rw-r--r-- | storage/myisam/myisamdef.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/myisam/myisamdef.h b/storage/myisam/myisamdef.h index ff12cb53dd9..0d718f0a22e 100644 --- a/storage/myisam/myisamdef.h +++ b/storage/myisam/myisamdef.h @@ -696,7 +696,7 @@ extern int mi_indexes_are_disabled(MI_INFO *info); ulong _mi_calc_total_blob_length(MI_INFO *info, const uchar *record); ha_checksum mi_checksum(MI_INFO *info, const uchar *buf); ha_checksum mi_static_checksum(MI_INFO *info, const uchar *buf); -my_bool mi_check_unique(MI_INFO *info, MI_UNIQUEDEF *def, uchar *record, +my_bool mi_check_unique(MI_INFO *info, MI_UNIQUEDEF *def, const uchar *record, ha_checksum unique_hash, my_off_t pos); ha_checksum mi_unique_hash(MI_UNIQUEDEF *def, const uchar *buf); int _mi_cmp_static_unique(MI_INFO *info, MI_UNIQUEDEF *def, |