~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Lee Bieber
  • Date: 2010-11-20 22:04:04 UTC
  • mfrom: (1942.1.4 b)
  • Revision ID: kalebral@gmail.com-20101120220404-2qpb4xuik9wv9u1q
Merge Lee -  Run bzr ignore for leftover files
Merge Shrews - Add a --replicate-query option to the server which controls whether or not the SQL query string is included in the GPB Statement messages.
Merge Andrew - fix bug 665119: drizzleslap has -i mapped to two options
Merge Andrew fix bug 674145: Table Names Not Case Matched

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
 
 
70
59
/****************************************************************//**
71
60
Retrieves the error_info field from a trx.
72
61
@return the error info */
80
69
}
81
70
 
82
71
/*******************************************************************//**
 
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
/*******************************************************************//**
83
84
Retrieves transaction's que state in a human readable string. The string
84
85
should not be free()'d or modified.
85
86
@return string in the data segment */