diff options
author | Eugene Kosov <claprix@yandex.ru> | 2019-07-04 21:31:35 +0300 |
---|---|---|
committer | Eugene Kosov <claprix@yandex.ru> | 2019-07-05 13:14:19 +0300 |
commit | c9aa495fb67ab4fd5c9790d4f61b7e988423619f (patch) | |
tree | 9f6aa0423075e0450ce433983c163d06023b638d /storage/myisam/mi_write.c | |
parent | 23c12ed5cb2a86516f4d4502779d2be312fa6e17 (diff) | |
download | mariadb-git-c9aa495fb67ab4fd5c9790d4f61b7e988423619f.tar.gz |
MDEV-19955 make argument of handler::ha_write_row() const
MDEV-19486 and one more similar bug appeared because handler::write_row() interface
welcomes to modify buffer by storage engine. But callers are not ready for that
thus bugs are possible in future.
handler::write_row():
handler::ha_write_row(): make argument const
Diffstat (limited to 'storage/myisam/mi_write.c')
-rw-r--r-- | storage/myisam/mi_write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/myisam/mi_write.c b/storage/myisam/mi_write.c index f08dea77354..7345ab1604d 100644 --- a/storage/myisam/mi_write.c +++ b/storage/myisam/mi_write.c @@ -40,7 +40,7 @@ int _mi_ck_write_btree(register MI_INFO *info, uint keynr,uchar *key, /* Write new record to database */ -int mi_write(MI_INFO *info, uchar *record) +int mi_write(MI_INFO *info, const uchar *record) { MYISAM_SHARE *share=info->s; uint i; |