Commit 5e9a2851 authored by Thirunarayanan B's avatar Thirunarayanan B

Bug #17858679 TOO MANY TIMES OF MEMSET DECREASE

		THE PERFORMANCE UNDER HEAVY INSERT
	Fixing the build problem in 5.5.
parent cacd2242
...@@ -143,6 +143,7 @@ row_ins_alloc_sys_fields( ...@@ -143,6 +143,7 @@ row_ins_alloc_sys_fields(
const dict_col_t* col; const dict_col_t* col;
dfield_t* dfield; dfield_t* dfield;
byte* ptr; byte* ptr;
uint len;
row = node->row; row = node->row;
table = node->table; table = node->table;
...@@ -152,7 +153,7 @@ row_ins_alloc_sys_fields( ...@@ -152,7 +153,7 @@ row_ins_alloc_sys_fields(
ut_ad(dtuple_get_n_fields(row) == dict_table_get_n_cols(table)); ut_ad(dtuple_get_n_fields(row) == dict_table_get_n_cols(table));
/* allocate buffer to hold the needed system created hidden columns. */ /* allocate buffer to hold the needed system created hidden columns. */
uint len = DATA_ROW_ID_LEN + DATA_TRX_ID_LEN + DATA_ROLL_PTR_LEN; len = DATA_ROW_ID_LEN + DATA_TRX_ID_LEN + DATA_ROLL_PTR_LEN;
ptr = mem_heap_zalloc(heap, len); ptr = mem_heap_zalloc(heap, len);
/* 1. Populate row-id */ /* 1. Populate row-id */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment