~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

Tags: innodb-plugin-1.0.2
InnoDB Plugin 1.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
310
310
void
311
311
trx_sys_file_format_close(void);
312
312
/*===========================*/
 
313
/************************************************************************
 
314
Tags the system table space with minimum format id if it has not been
 
315
tagged yet.
 
316
WARNING: This function is only called during the startup and AFTER the
 
317
redo log application during recovery has finished. */
 
318
UNIV_INTERN
 
319
void
 
320
trx_sys_file_format_tag_init(void);
 
321
/*==============================*/
313
322
/*********************************************************************
314
323
Get the name representation of the file format from its id. */
315
324
UNIV_INTERN
317
326
trx_sys_file_format_id_to_name(
318
327
/*===========================*/
319
328
                                        /* out: pointer to the name */
320
 
        const uint      id);            /* in: id of the file format */
 
329
        const ulint     id);            /* in: id of the file format */
321
330
/*********************************************************************
322
 
Set the file format tag unconditonally. */
 
331
Set the file format id unconditionally except if it's already the
 
332
same value. */
323
333
UNIV_INTERN
324
334
ibool
325
335
trx_sys_file_format_max_set(
326
 
/*===========================*/
 
336
/*========================*/
327
337
                                        /* out: TRUE if value updated */
328
 
        ulint           file_format,    /* in: file format id */
329
 
        char**          name);          /* out: max format name */
 
338
        ulint           format_id,      /* in: file format id */
 
339
        const char**    name);          /* out: max file format name or
 
340
                                        NULL if not needed. */
330
341
/*********************************************************************
331
342
Get the name representation of the file format from its id. */
332
343
UNIV_INTERN
343
354
                                        /* out: DB_SUCCESS or error code */
344
355
        ulint           max_format_id); /* in: the max format id to check */
345
356
/************************************************************************
346
 
Update the file format tag in the tablespace to the max value. */
 
357
Update the file format tag in the system tablespace only if the given
 
358
format id is greater than the known max id. */
347
359
UNIV_INTERN
348
360
ibool
349
 
trx_sys_file_format_max_update(
350
 
/*===========================*/
351
 
                                        /* out: TRUE if value updated */
352
 
        uint            flags,          /* in: flags of the table */
353
 
        char**          name);          /* out: max format name */
 
361
trx_sys_file_format_max_upgrade(
 
362
/*============================*/
 
363
                                        /* out: TRUE if format_id was
 
364
                                        bigger than the known max id */
 
365
        const char**    name,           /* out: max file format name */
 
366
        ulint           format_id);     /* in: file format identifier */
354
367
/* The automatically created system rollback segment has this id */
355
368
#define TRX_SYS_SYSTEM_RSEG_ID  0
356
369