Commit 5909e0ec authored by Marko Mäkelä's avatar Marko Mäkelä

Cleanup: btr_store_big_rec_extern_fields() does not really modify pcur

parent 5294695e
...@@ -820,14 +820,6 @@ PageBulk::storeExt( ...@@ -820,14 +820,6 @@ PageBulk::storeExt(
dberr_t err = btr_store_big_rec_extern_fields( dberr_t err = btr_store_big_rec_extern_fields(
&btr_pcur, offsets, big_rec, &m_mtr, BTR_STORE_INSERT_BULK); &btr_pcur, offsets, big_rec, &m_mtr, BTR_STORE_INSERT_BULK);
/* Reset m_block and m_cur_rec from page cursor, because
block may be changed during blob insert. (FIXME: Can it really?) */
ut_ad(m_block == btr_pcur.btr_cur.page_cur.block);
m_block = btr_pcur.btr_cur.page_cur.block;
m_cur_rec = btr_pcur.btr_cur.page_cur.rec;
m_page = buf_block_get_frame(m_block);
return(err); return(err);
} }
......
...@@ -7221,9 +7221,7 @@ the file, in case the file was somehow truncated in the crash. ...@@ -7221,9 +7221,7 @@ the file, in case the file was somehow truncated in the crash.
dberr_t dberr_t
btr_store_big_rec_extern_fields( btr_store_big_rec_extern_fields(
/*============================*/ /*============================*/
btr_pcur_t* pcur, /*!< in/out: a persistent cursor. if btr_pcur_t* pcur, /*!< in: a persistent cursor */
btr_mtr is restarted, then this can
be repositioned. */
rec_offs* offsets, /*!< in/out: rec_get_offsets() on rec_offs* offsets, /*!< in/out: rec_get_offsets() on
pcur. the "external storage" flags pcur. the "external storage" flags
in offsets will correctly correspond in offsets will correctly correspond
......
...@@ -677,9 +677,7 @@ file segment of the index tree. ...@@ -677,9 +677,7 @@ file segment of the index tree.
dberr_t dberr_t
btr_store_big_rec_extern_fields( btr_store_big_rec_extern_fields(
/*============================*/ /*============================*/
btr_pcur_t* pcur, /*!< in/out: a persistent cursor. if btr_pcur_t* pcur, /*!< in: a persistent cursor */
btr_mtr is restarted, then this can
be repositioned. */
rec_offs* offsets, /*!< in/out: rec_get_offsets() on rec_offs* offsets, /*!< in/out: rec_get_offsets() on
pcur. the "external storage" flags pcur. the "external storage" flags
in offsets will correctly correspond in offsets will correctly correspond
...@@ -690,7 +688,7 @@ btr_store_big_rec_extern_fields( ...@@ -690,7 +688,7 @@ btr_store_big_rec_extern_fields(
latches to the clustered index. can be latches to the clustered index. can be
committed and restarted. */ committed and restarted. */
enum blob_op op) /*! in: operation code */ enum blob_op op) /*! in: operation code */
MY_ATTRIBUTE((warn_unused_result)); MY_ATTRIBUTE((nonnull, warn_unused_result));
/*******************************************************************//** /*******************************************************************//**
Frees the space in an externally stored field to the file space Frees the space in an externally stored field to the file space
......
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