Commit 492a83a5 authored by Timothy Smith's avatar Timothy Smith
Browse files

Merge some 5.0 innodb changes

parents b9a9ae56 4ea036f4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2260,6 +2260,7 @@ buf_print(void)
	ut_a(buf_validate());
}	

#ifdef UNIV_DEBUG
/*************************************************************************
Returns the number of latched pages in the buffer pool. */

@@ -2290,6 +2291,7 @@ buf_get_latched_pages_number(void)
        mutex_exit(&(buf_pool->mutex));
        return fixed_pages_number;
}
#endif /* UNIV_DEBUG */

/*************************************************************************
Returns the number of pending buf pool ios. */
+1 −1
Original line number Diff line number Diff line
@@ -3554,7 +3554,7 @@ dict_foreign_parse_drop_constraints(

	ptr = dict_accept(ptr, "FOREIGN", &success);
	
	if (!success) {
	if (!success || !ib_isspace(*ptr)) {

	        goto loop;
	}
+8 −5
Original line number Diff line number Diff line
@@ -495,7 +495,15 @@ Prints info of the buffer pool data structure. */
void
buf_print(void);
/*============*/

/*************************************************************************
Returns the number of latched pages in the buffer pool. */

ulint
buf_get_latched_pages_number(void);
/*==============================*/
#endif /* UNIV_DEBUG */

/************************************************************************
Prints a page to stderr. */

@@ -503,12 +511,7 @@ void
buf_page_print(
/*===========*/
	byte*	read_buf);	/* in: a database page */
/*************************************************************************
Returns the number of latched pages in the buffer pool. */

ulint
buf_get_latched_pages_number(void);
/*==============================*/
/*************************************************************************
Returns the number of pending buf pool ios. */

+2 −0
Original line number Diff line number Diff line
@@ -531,7 +531,9 @@ struct export_var_struct{
        ulint innodb_buffer_pool_pages_dirty;
        ulint innodb_buffer_pool_pages_misc;
        ulint innodb_buffer_pool_pages_free;
#ifdef UNIV_DEBUG
        ulint innodb_buffer_pool_pages_latched;
#endif /* UNIV_DEBUG */
        ulint innodb_buffer_pool_read_requests;
        ulint innodb_buffer_pool_reads;
        ulint innodb_buffer_pool_wait_free;
+1 −0
Original line number Diff line number Diff line
@@ -237,6 +237,7 @@ trx_undo_set_state_at_finish(
/*=========================*/
				/* out: undo log segment header page,
				x-latched */
	trx_rseg_t*	rseg,	/* in: rollback segment memory object */
	trx_t*		trx,	/* in: transaction */
	trx_undo_t*	undo,	/* in: undo log memory copy */
	mtr_t*		mtr);	/* in: mtr */
Loading