~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

Merged in innodb plugin 1.0.2 

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
                                can be stored locally on the page */
49
49
        ulint   rec_size,       /* in: length of the record in bytes */
50
50
        ulint   comp,           /* in: nonzero=compact format */
 
51
        ulint   n_fields,       /* in: number of fields in the record;
 
52
                                ignored if zip_size == 0 */
51
53
        ulint   zip_size)       /* in: compressed page size in bytes, or 0 */
52
54
        __attribute__((__const__));
53
55
 
126
128
Check that the compressed and decompressed pages match. */
127
129
UNIV_INTERN
128
130
ibool
 
131
page_zip_validate_low(
 
132
/*==================*/
 
133
                                        /* out: TRUE if valid, FALSE if not */
 
134
        const page_zip_des_t*   page_zip,/* in: compressed page */
 
135
        const page_t*           page,   /* in: uncompressed page */
 
136
        ibool                   sloppy) /* in: FALSE=strict,
 
137
                                        TRUE=ignore the MIN_REC_FLAG */
 
138
        __attribute__((nonnull));
 
139
/**************************************************************************
 
140
Check that the compressed and decompressed pages match. */
 
141
UNIV_INTERN
 
142
ibool
129
143
page_zip_validate(
130
144
/*==============*/
131
145
        const page_zip_des_t*   page_zip,/* in: compressed page */
309
323
        mtr_t*          mtr)    /* in: mini-transaction */
310
324
        __attribute__((nonnull));
311
325
/**************************************************************************
312
 
Copy a page byte for byte, except for the file page header and trailer. */
 
326
Copy the records of a page byte for byte.  Do not copy the page header
 
327
or trailer, except those B-tree header fields that are directly
 
328
related to the storage of records.  Also copy PAGE_MAX_TRX_ID.
 
329
NOTE: The caller must update the lock table and the adaptive hash index. */
313
330
UNIV_INTERN
314
331
void
315
 
page_zip_copy(
316
 
/*==========*/
 
332
page_zip_copy_recs(
 
333
/*===============*/
317
334
        page_zip_des_t*         page_zip,       /* out: copy of src_zip
318
335
                                                (n_blobs, m_start, m_end,
319
336
                                                m_nonempty, data[0..size-1]) */