~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/trx0trx.ic

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:26:39 UTC
  • mfrom: (2157.2.2 give-in-to-pkg-config)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172639-nhy7i72sfhoq13ms
Merged in pkg-config fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (c) 1996, 2009, Innobase Oy. All Rights Reserved.
 
3
Copyright (C) 1996, 2009, Innobase Oy. All Rights Reserved.
4
4
 
5
5
This program is free software; you can redistribute it and/or modify it under
6
6
the terms of the GNU General Public License as published by the Free Software
56
56
        }
57
57
}
58
58
 
 
59
/******************************************************************//**
 
60
Checks if the commit id should be logged to the sys header file
 
61
@return TRUE if the commit id should be logged */
 
62
UNIV_INLINE
 
63
ibool
 
64
trx_log_commit_id(const trx_t*  trx)
 
65
/*===============*/
 
66
{
 
67
        return (trx->log_commit_id);
 
68
}
 
69
 
59
70
/****************************************************************//**
60
71
Retrieves the error_info field from a trx.
61
72
@return the error info */
69
80
}
70
81
 
71
82
/*******************************************************************//**
72
 
Retrieves transacion's id, represented as unsigned long long.
73
 
@return transaction's id */
74
 
UNIV_INLINE
75
 
ullint
76
 
trx_get_id(
77
 
/*=======*/
78
 
        const trx_t*    trx)    /*!< in: transaction */
79
 
{
80
 
        return((ullint)ut_conv_dulint_to_longlong(trx->id));
81
 
}
82
 
 
83
 
/*******************************************************************//**
84
83
Retrieves transaction's que state in a human readable string. The string
85
84
should not be free()'d or modified.
86
85
@return string in the data segment */