Loading BitKeeper/etc/logging_ok +1 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ sasha@mysql.sashanet.com serg@serg.mysql.com tim@hundin.mysql.fi tim@threads.polyesthetic.msg tim@white.box tim@work.mysql.com tonu@hundin.mysql.fi tonu@x3.internalnet tim@white.box Docs/manual.texi +2161 −2195 File changed.Preview size limit exceeded, changes collapsed. Show changes innobase/btr/btr0pcur.c +6 −0 Original line number Diff line number Diff line Loading @@ -246,6 +246,12 @@ btr_pcur_restore_position( && btr_pcur_is_on_user_rec(cursor, mtr) && (0 == cmp_dtuple_rec(tuple, btr_pcur_get_rec(cursor)))) { /* We have to store the NEW value for the modify clock, since the cursor can now be on a different page! */ cursor->modify_clock = buf_frame_get_modify_clock( buf_frame_align( btr_pcur_get_rec(cursor))); mem_heap_free(heap); return(TRUE); Loading innobase/buf/buf0buf.c +73 −0 Original line number Diff line number Diff line Loading @@ -241,6 +241,8 @@ buf_block_init( block->modify_clock = ut_dulint_zero; block->file_page_was_freed = FALSE; rw_lock_create(&(block->lock)); ut_ad(rw_lock_validate(&(block->lock))); Loading Loading @@ -542,6 +544,64 @@ buf_page_peek( return(FALSE); } /************************************************************************ Sets file_page_was_freed TRUE if the page is found in the buffer pool. This function should be called when we free a file page and want the debug version to check that it is not accessed any more unless reallocated. */ buf_block_t* buf_page_set_file_page_was_freed( /*=============================*/ /* out: control block if found from page hash table, otherwise NULL */ ulint space, /* in: space id */ ulint offset) /* in: page number */ { buf_block_t* block; mutex_enter_fast(&(buf_pool->mutex)); block = buf_page_hash_get(space, offset); if (block) { block->file_page_was_freed = TRUE; } mutex_exit(&(buf_pool->mutex)); return(block); } /************************************************************************ Sets file_page_was_freed FALSE if the page is found in the buffer pool. This function should be called when we free a file page and want the debug version to check that it is not accessed any more unless reallocated. */ buf_block_t* buf_page_reset_file_page_was_freed( /*===============================*/ /* out: control block if found from page hash table, otherwise NULL */ ulint space, /* in: space id */ ulint offset) /* in: page number */ { buf_block_t* block; mutex_enter_fast(&(buf_pool->mutex)); block = buf_page_hash_get(space, offset); if (block) { block->file_page_was_freed = FALSE; } mutex_exit(&(buf_pool->mutex)); return(block); } /************************************************************************ This is the general function used to get access to a database page. */ Loading Loading @@ -646,6 +706,9 @@ buf_page_get_gen( block->accessed = TRUE; #ifdef UNIV_DEBUG_FILE_ACCESSES ut_a(block->file_page_was_freed == FALSE); #endif mutex_exit(&(buf_pool->mutex)); #ifdef UNIV_DEBUG Loading Loading @@ -842,6 +905,9 @@ buf_page_optimistic_get_func( ut_ad(block->buf_fix_count > 0); ut_ad(block->state == BUF_BLOCK_FILE_PAGE); #ifdef UNIV_DEBUG_FILE_ACCESSES ut_a(block->file_page_was_freed == FALSE); #endif if (!accessed) { /* In the case of a first access, try to apply linear read-ahead */ Loading Loading @@ -949,6 +1015,9 @@ buf_page_get_known_nowait( #endif ut_ad(block->buf_fix_count > 0); ut_ad(block->state == BUF_BLOCK_FILE_PAGE); #ifdef UNIV_DEBUG_FILE_ACCESSES ut_a(block->file_page_was_freed == FALSE); #endif #ifdef UNIV_IBUF_DEBUG ut_a((mode == BUF_KEEP_OLD) Loading Loading @@ -996,6 +1065,8 @@ buf_page_init( block->n_hash_helps = 0; block->is_hashed = FALSE; block->file_page_was_freed = FALSE; } /************************************************************************ Loading Loading @@ -1126,6 +1197,8 @@ buf_page_create( #ifdef UNIV_IBUF_DEBUG ut_a(ibuf_count_get(block->space, block->offset) == 0); #endif block->file_page_was_freed = FALSE; /* Page can be found in buf_pool */ mutex_exit(&(buf_pool->mutex)); Loading innobase/buf/buf0flu.c +4 −2 Original line number Diff line number Diff line Loading @@ -421,6 +421,8 @@ buf_flush_try_neighbors( /* In simulated aio we wake up the i/o-handler threads now that we have posted a batch of writes: */ /* printf("Flush count %lu ; Waking i/o handlers\n", count); */ os_aio_simulated_wake_handler_threads(); return(count); Loading Loading
BitKeeper/etc/logging_ok +1 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ sasha@mysql.sashanet.com serg@serg.mysql.com tim@hundin.mysql.fi tim@threads.polyesthetic.msg tim@white.box tim@work.mysql.com tonu@hundin.mysql.fi tonu@x3.internalnet tim@white.box
Docs/manual.texi +2161 −2195 File changed.Preview size limit exceeded, changes collapsed. Show changes
innobase/btr/btr0pcur.c +6 −0 Original line number Diff line number Diff line Loading @@ -246,6 +246,12 @@ btr_pcur_restore_position( && btr_pcur_is_on_user_rec(cursor, mtr) && (0 == cmp_dtuple_rec(tuple, btr_pcur_get_rec(cursor)))) { /* We have to store the NEW value for the modify clock, since the cursor can now be on a different page! */ cursor->modify_clock = buf_frame_get_modify_clock( buf_frame_align( btr_pcur_get_rec(cursor))); mem_heap_free(heap); return(TRUE); Loading
innobase/buf/buf0buf.c +73 −0 Original line number Diff line number Diff line Loading @@ -241,6 +241,8 @@ buf_block_init( block->modify_clock = ut_dulint_zero; block->file_page_was_freed = FALSE; rw_lock_create(&(block->lock)); ut_ad(rw_lock_validate(&(block->lock))); Loading Loading @@ -542,6 +544,64 @@ buf_page_peek( return(FALSE); } /************************************************************************ Sets file_page_was_freed TRUE if the page is found in the buffer pool. This function should be called when we free a file page and want the debug version to check that it is not accessed any more unless reallocated. */ buf_block_t* buf_page_set_file_page_was_freed( /*=============================*/ /* out: control block if found from page hash table, otherwise NULL */ ulint space, /* in: space id */ ulint offset) /* in: page number */ { buf_block_t* block; mutex_enter_fast(&(buf_pool->mutex)); block = buf_page_hash_get(space, offset); if (block) { block->file_page_was_freed = TRUE; } mutex_exit(&(buf_pool->mutex)); return(block); } /************************************************************************ Sets file_page_was_freed FALSE if the page is found in the buffer pool. This function should be called when we free a file page and want the debug version to check that it is not accessed any more unless reallocated. */ buf_block_t* buf_page_reset_file_page_was_freed( /*===============================*/ /* out: control block if found from page hash table, otherwise NULL */ ulint space, /* in: space id */ ulint offset) /* in: page number */ { buf_block_t* block; mutex_enter_fast(&(buf_pool->mutex)); block = buf_page_hash_get(space, offset); if (block) { block->file_page_was_freed = FALSE; } mutex_exit(&(buf_pool->mutex)); return(block); } /************************************************************************ This is the general function used to get access to a database page. */ Loading Loading @@ -646,6 +706,9 @@ buf_page_get_gen( block->accessed = TRUE; #ifdef UNIV_DEBUG_FILE_ACCESSES ut_a(block->file_page_was_freed == FALSE); #endif mutex_exit(&(buf_pool->mutex)); #ifdef UNIV_DEBUG Loading Loading @@ -842,6 +905,9 @@ buf_page_optimistic_get_func( ut_ad(block->buf_fix_count > 0); ut_ad(block->state == BUF_BLOCK_FILE_PAGE); #ifdef UNIV_DEBUG_FILE_ACCESSES ut_a(block->file_page_was_freed == FALSE); #endif if (!accessed) { /* In the case of a first access, try to apply linear read-ahead */ Loading Loading @@ -949,6 +1015,9 @@ buf_page_get_known_nowait( #endif ut_ad(block->buf_fix_count > 0); ut_ad(block->state == BUF_BLOCK_FILE_PAGE); #ifdef UNIV_DEBUG_FILE_ACCESSES ut_a(block->file_page_was_freed == FALSE); #endif #ifdef UNIV_IBUF_DEBUG ut_a((mode == BUF_KEEP_OLD) Loading Loading @@ -996,6 +1065,8 @@ buf_page_init( block->n_hash_helps = 0; block->is_hashed = FALSE; block->file_page_was_freed = FALSE; } /************************************************************************ Loading Loading @@ -1126,6 +1197,8 @@ buf_page_create( #ifdef UNIV_IBUF_DEBUG ut_a(ibuf_count_get(block->space, block->offset) == 0); #endif block->file_page_was_freed = FALSE; /* Page can be found in buf_pool */ mutex_exit(&(buf_pool->mutex)); Loading
innobase/buf/buf0flu.c +4 −2 Original line number Diff line number Diff line Loading @@ -421,6 +421,8 @@ buf_flush_try_neighbors( /* In simulated aio we wake up the i/o-handler threads now that we have posted a batch of writes: */ /* printf("Flush count %lu ; Waking i/o handlers\n", count); */ os_aio_simulated_wake_handler_threads(); return(count); Loading