~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/include/buf0buf.h

Tags: innodb-plugin-1.0.2
InnoDB Plugin 1.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
530
530
        const byte*     read_buf,       /* in: a database page */
531
531
        ulint           zip_size);      /* in: compressed page size, or
532
532
                                        0 for uncompressed pages */
 
533
#ifdef UNIV_DEBUG
533
534
/*************************************************************************
534
535
Returns the number of latched pages in the buffer pool. */
535
536
UNIV_INTERN
536
537
ulint
537
538
buf_get_latched_pages_number(void);
538
539
/*==============================*/
 
540
#endif /* UNIV_DEBUG */
539
541
/*************************************************************************
540
542
Returns the number of pending buf pool ios. */
541
543
UNIV_INTERN
601
603
        buf_block_t*    block,  /* in: buffer page
602
604
                                where we have acquired latch */
603
605
        ulint           level); /* in: latching order level */
 
606
#else /* UNIV_SYNC_DEBUG */
 
607
# define buf_block_dbg_add_level(block, level) /* nothing */
604
608
#endif /* UNIV_SYNC_DEBUG */
605
609
/*************************************************************************
606
610
Gets the state of a block. */
1275
1279
                                        /* base node of the LRU list */
1276
1280
        buf_page_t*     LRU_old;        /* pointer to the about 3/8 oldest
1277
1281
                                        blocks in the LRU list; NULL if LRU
1278
 
                                        length less than BUF_LRU_OLD_MIN_LEN */
 
1282
                                        length less than BUF_LRU_OLD_MIN_LEN;
 
1283
                                        NOTE: when LRU_old != NULL, its length
 
1284
                                        should always equal LRU_old_len */
1279
1285
        ulint           LRU_old_len;    /* length of the LRU list from
1280
1286
                                        the block to which LRU_old points
1281
1287
                                        onward, including that block;
1282
1288
                                        see buf0lru.c for the restrictions
1283
1289
                                        on this value; not defined if
1284
 
                                        LRU_old == NULL */
 
1290
                                        LRU_old == NULL;
 
1291
                                        NOTE: LRU_old_len must be adjusted
 
1292
                                        whenever LRU_old shrinks or grows! */
1285
1293
 
1286
1294
        UT_LIST_BASE_NODE_T(buf_block_t) unzip_LRU;
1287
1295
                                        /* base node of the unzip_LRU list */