~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/include/ibuf0ibuf.ic

Tags: innodb-plugin-1.0.2
InnoDB Plugin 1.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
253
253
 
254
254
/****************************************************************************
255
255
Updates the free bits of an uncompressed page in the ibuf bitmap if
256
 
there is not enough free on the page any more. This is done in a
 
256
there is not enough free on the page any more.  This is done in a
257
257
separate mini-transaction, hence this operation does not restrict
258
258
further work to only ibuf bitmap operations, which would result if the
259
 
latch to the bitmap page were kept. */
 
259
latch to the bitmap page were kept.  NOTE: The free bits in the insert
 
260
buffer bitmap must never exceed the free space on a page.  It is
 
261
unsafe to increment the bits in a separately committed
 
262
mini-transaction, because in crash recovery, the free bits could
 
263
momentarily be set too high.  It is only safe to use this function for
 
264
decrementing the free bits.  Should more free space become available,
 
265
we must not update the free bits here, because that would break crash
 
266
recovery. */
260
267
UNIV_INLINE
261
268
void
262
269
ibuf_update_free_bits_if_full(