summaryrefslogtreecommitdiff
path: root/include/myisam.h
diff options
context:
space:
mode:
authorEugene Kosov <claprix@yandex.ru>2019-07-04 21:31:35 +0300
committerEugene Kosov <claprix@yandex.ru>2019-07-05 13:14:19 +0300
commitc9aa495fb67ab4fd5c9790d4f61b7e988423619f (patch)
tree9f6aa0423075e0450ce433983c163d06023b638d /include/myisam.h
parent23c12ed5cb2a86516f4d4502779d2be312fa6e17 (diff)
downloadmariadb-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 'include/myisam.h')
-rw-r--r--include/myisam.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/myisam.h b/include/myisam.h
index 3138dc832f7..216f041c8a9 100644
--- a/include/myisam.h
+++ b/include/myisam.h
@@ -276,7 +276,7 @@ extern int mi_rsame_with_pos(struct st_myisam_info *file,uchar *record,
int inx, my_off_t pos);
extern int mi_update(struct st_myisam_info *file,const uchar *old,
const uchar *new_record);
-extern int mi_write(struct st_myisam_info *file,uchar *buff);
+extern int mi_write(struct st_myisam_info *file,const uchar *buff);
extern my_off_t mi_position(struct st_myisam_info *file);
extern int mi_status(struct st_myisam_info *info, MI_ISAMINFO *x, uint flag);
extern int mi_lock_database(struct st_myisam_info *file,int lock_type);