@@ -264,16 +264,14 @@ struct z_first_page_t {
264264 return (fil_addr_t (page_no, offset));
265265 }
266266
267- /* * All the index pages are singled linked with each other, and
267+ /* * All the index pages are singly linked with each other, and
268268 the first page contains the link to one index page.
269269 @param[in] page_no the page number of an index page. */
270270 void set_index_page_no (page_no_t page_no) {
271- ut_ad (m_mtr != nullptr );
272- mlog_write_ulint (frame () + OFFSET_INDEX_PAGE_NO, page_no, MLOG_4BYTES,
273- m_mtr);
271+ set_index_page_no (page_no, m_mtr);
274272 }
275273
276- /* * All the index pages are singled linked with each other, and
274+ /* * All the index pages are singly linked with each other, and
277275 the first page contains the link to one index page.
278276 @param[in] page_no the page number of an index page.
279277 @param[in] mtr use this mini transaction context for redo logs. */
@@ -282,7 +280,7 @@ struct z_first_page_t {
282280 mlog_write_ulint (frame () + OFFSET_INDEX_PAGE_NO, page_no, MLOG_4BYTES, mtr);
283281 }
284282
285- /* * All the index pages are singled linked with each other, and
283+ /* * All the index pages are singly linked with each other, and
286284 the first page contains the link to one index page. Get that index
287285 page number.
288286 @return the index page number. */
@@ -312,30 +310,44 @@ struct z_first_page_t {
312310 bool verify_frag_page_no ();
313311#endif /* UNIV_DEBUG */
314312
315- /* * All the fragment pages are doubly linked with each other, and
316- the first page contains the link to one fragment page in FIL_PAGE_PREV.
313+ /* * All the fragment pages (@see z_frag_page_t) are doubly linked with each
314+ other, and the first page contains the link to one fragment page in
315+ FIL_PAGE_PREV.
317316 @param[in] mtr Mini-transaction for this modification.
318317 @param[in] page_no The page number of a fragment page. */
319318 void set_frag_page_no (mtr_t *mtr, page_no_t page_no) {
320319 ut_ad (verify_frag_page_no ());
321320 set_prev_page_no (page_no, mtr);
322321 }
323322
324- /* * All the fragment pages are doubly linked with each other, and
325- the first page contains the link to one fragment page in FIL_PAGE_PREV.
323+ /* * All the fragment pages (@see z_frag_page_t) are doubly linked with each
324+ other, and the first page contains the link to one fragment page in
325+ FIL_PAGE_PREV.
326326 @param[in] page_no the page number of a fragment page. */
327327 void set_frag_page_no (page_no_t page_no) {
328328 ut_ad (verify_frag_page_no ());
329329 set_prev_page_no (page_no, m_mtr);
330330 }
331331
332- /* * All the frag node pages are singled linked with each other, and
333- the first page contains the link to one frag node page.
332+ /* * All the frag node pages (@see z_frag_node_page_t) are singly linked with
333+ each other, and the first page contains the link to the last allocated frag
334+ node page. The last allocated FIL_PAGE_TYPE_ZLOB_FRAG_ENTRY page will be the
335+ first in this list. This list is used to free these pages.
334336 @param[in] page_no the page number of an frag node page. */
335337 void set_frag_node_page_no (page_no_t page_no) {
336- ut_ad (m_mtr != nullptr );
338+ set_frag_node_page_no (page_no, m_mtr);
339+ }
340+
341+ /* * All the frag node pages (@see z_frag_node_page_t) are singly linked with
342+ each other, and the first page contains the link to the last allocated frag
343+ node page. The last allocated FIL_PAGE_TYPE_ZLOB_FRAG_ENTRY page will be the
344+ first in this list. This list is used to free these pages.
345+ @param[in] page_no the page number of an frag node page.
346+ @param[in] mtr mini trx context to generate redo logs. */
347+ void set_frag_node_page_no (page_no_t page_no, mtr_t *mtr) {
348+ ut_ad (mtr != nullptr );
337349 mlog_write_ulint (frame () + OFFSET_FRAG_NODES_PAGE_NO, page_no, MLOG_4BYTES,
338- m_mtr );
350+ mtr );
339351 }
340352
341353 /* * Free all the z_frag_page_t pages. All the z_frag_page_t pages are
@@ -368,7 +380,7 @@ struct z_first_page_t {
368380 @return the number of pages freed. */
369381 size_t free_all_data_pages ();
370382
371- /* * All the frag node pages are singled linked with each other, and the
383+ /* * All the frag node pages are singly linked with each other, and the
372384 first page contains the link to one frag node page. Get that frag node
373385 page number.
374386 @return the index page number. */
0 commit comments