summaryrefslogtreecommitdiff
path: root/storage/spider/ha_spider.h
diff options
context:
space:
mode:
authorMichael Widenius <monty@mariadb.org>2017-04-16 22:40:39 +0300
committerMonty <monty@mariadb.org>2017-04-18 12:23:53 +0300
commita05a610d60a6d177b66f9da97906efdb44336a6f (patch)
treebca0d63ddc2a8b43d22a3d1732e5497caab40f78 /storage/spider/ha_spider.h
parentd82ac8eaafd89a6a74436747b660ef02c69eaac3 (diff)
downloadmariadb-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/spider/ha_spider.h')
-rw-r--r--storage/spider/ha_spider.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/storage/spider/ha_spider.h b/storage/spider/ha_spider.h
index 50d890dc854..bd02e34043d 100644
--- a/storage/spider/ha_spider.h
+++ b/storage/spider/ha_spider.h
@@ -569,12 +569,12 @@ public:
void end_bulk_update();
int bulk_update_row(
const uchar *old_data,
- uchar *new_data,
+ const uchar *new_data,
uint *dup_key_found
);
int update_row(
const uchar *old_data,
- uchar *new_data
+ const uchar *new_data
);
#ifdef HANDLER_HAS_DIRECT_UPDATE_ROWS
int direct_update_rows_init(
@@ -582,7 +582,7 @@ public:
KEY_MULTI_RANGE *ranges,
uint range_count,
bool sorted,
- uchar *new_data
+ const uchar *new_data
);
#ifdef HA_CAN_BULK_ACCESS
int pre_direct_update_rows_init(