Commit 35aba604 authored by Marko Mäkelä's avatar Marko Mäkelä

ibuf_contract_ext(): Remove an #if 0 section of code

that refers to trx_sys_set_ibuf_format().
Change buffer format tagging was never implemented.
parent 118f6a63
...@@ -2585,23 +2585,6 @@ ibuf_contract_ext( ...@@ -2585,23 +2585,6 @@ ibuf_contract_ext(
if (UNIV_UNLIKELY(ibuf->empty) if (UNIV_UNLIKELY(ibuf->empty)
&& UNIV_LIKELY(!srv_shutdown_state)) { && UNIV_LIKELY(!srv_shutdown_state)) {
ibuf_is_empty:
#if 0 /* TODO */
if (srv_shutdown_state) {
/* If the insert buffer becomes empty during
shutdown, note it in the system tablespace. */
trx_sys_set_ibuf_format(TRX_SYS_IBUF_EMPTY);
}
/* TO DO: call trx_sys_set_ibuf_format() at startup
and whenever ibuf_use is changed to allow buffered
delete-marking or deleting. Never downgrade the
stamped format except when the insert buffer becomes
empty. */
#endif
return(0); return(0);
} }
...@@ -2631,7 +2614,7 @@ ibuf_is_empty: ...@@ -2631,7 +2614,7 @@ ibuf_is_empty:
mtr_commit(&mtr); mtr_commit(&mtr);
btr_pcur_close(&pcur); btr_pcur_close(&pcur);
goto ibuf_is_empty; return(0);
} }
sum_sizes = ibuf_get_merge_page_nos(TRUE, btr_pcur_get_rec(&pcur), sum_sizes = ibuf_get_merge_page_nos(TRUE, btr_pcur_get_rec(&pcur),
......
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