~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Monty Taylor
  • Date: 2008-09-15 17:24:04 UTC
  • Revision ID: monty@inaugust.com-20080915172404-ygh6hiyu0q7qpa9x
Removed strndup calls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
/*************************************************************************
21
21
Opens a read view where exactly the transactions serialized before this
22
22
point in time are seen in the view. */
23
 
UNIV_INTERN
 
23
 
24
24
read_view_t*
25
25
read_view_open_now(
26
26
/*===============*/
33
33
/*************************************************************************
34
34
Makes a copy of the oldest existing read view, or opens a new. The view
35
35
must be closed with ..._close. */
36
 
UNIV_INTERN
 
36
 
37
37
read_view_t*
38
38
read_view_oldest_copy_or_open_new(
39
39
/*==============================*/
45
45
                                        allocated */
46
46
/*************************************************************************
47
47
Closes a read view. */
48
 
UNIV_INTERN
 
48
 
49
49
void
50
50
read_view_close(
51
51
/*============*/
53
53
/*************************************************************************
54
54
Closes a consistent read view for MySQL. This function is called at an SQL
55
55
statement end if the trx isolation level is <= TRX_ISO_READ_COMMITTED. */
56
 
UNIV_INTERN
 
56
 
57
57
void
58
58
read_view_close_for_mysql(
59
59
/*======================*/
69
69
        dulint          trx_id);/* in: trx id */
70
70
/*************************************************************************
71
71
Prints a read view to stderr. */
72
 
UNIV_INTERN
 
72
 
73
73
void
74
74
read_view_print(
75
75
/*============*/
78
78
Create a consistent cursor view for mysql to be used in cursors. In this
79
79
consistent read view modifications done by the creating transaction or future
80
80
transactions are not visible. */
81
 
UNIV_INTERN
 
81
 
82
82
cursor_view_t*
83
83
read_cursor_view_create_for_mysql(
84
84
/*==============================*/
86
86
/*************************************************************************
87
87
Close a given consistent cursor view for mysql and restore global read view
88
88
back to a transaction read view. */
89
 
UNIV_INTERN
 
89
 
90
90
void
91
91
read_cursor_view_close_for_mysql(
92
92
/*=============================*/
96
96
This function sets a given consistent cursor view to a transaction
97
97
read view if given consistent cursor view is not NULL. Otherwise, function
98
98
restores a global read view to a transaction read view. */
99
 
UNIV_INTERN
 
99
 
100
100
void
101
101
read_cursor_set_for_mysql(
102
102
/*======================*/
111
111
        dulint  undo_no;        /* (0, 0) or if type is VIEW_HIGH_GRANULARITY
112
112
                                transaction undo_no when this high-granularity
113
113
                                consistent read view was created */
 
114
        ibool   can_be_too_old; /* TRUE if the system has had to purge old
 
115
                                versions which this read view should be able
 
116
                                to access: the read view can bump into the
 
117
                                DB_MISSING_HISTORY error */
114
118
        dulint  low_limit_no;   /* The view does not need to see the undo
115
119
                                logs for transactions whose transaction number
116
120
                                is strictly smaller (<) than this value: they