MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
rpl_info_dummy.cc
1 /* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
2 
3  This program is free software; you can redistribute it and/or modify
4  it under the terms of the GNU General Public License as published by
5  the Free Software Foundation; version 2 of the License.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  GNU General Public License for more details.
11 
12  You should have received a copy of the GNU General Public License
13  along with this program; if not, write to the Free Software
14  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
15 
16 #include <my_global.h>
17 #include "rpl_info_dummy.h"
18 
19 Rpl_info_dummy::Rpl_info_dummy(const int nparam)
20  :Rpl_info_handler(nparam)
21 {
22 }
23 
24 int Rpl_info_dummy::do_init_info(uint instance __attribute__((unused)))
25 {
26  return 0;
27 }
28 
29 int Rpl_info_dummy::do_init_info()
30 {
31  return 0;
32 }
33 
34 int Rpl_info_dummy::do_prepare_info_for_read()
35 {
36  DBUG_ASSERT(!abort);
37  cursor= 0;
38  return 0;
39 }
40 
41 int Rpl_info_dummy::do_prepare_info_for_write()
42 {
43  DBUG_ASSERT(!abort);
44  cursor= 0;
45  return 0;
46 }
47 
48 enum_return_check Rpl_info_dummy::do_check_info()
49 {
50  DBUG_ASSERT(!abort);
51  return REPOSITORY_DOES_NOT_EXIST;
52 }
53 
54 enum_return_check Rpl_info_dummy::do_check_info(uint instance __attribute__((unused)))
55 {
56  DBUG_ASSERT(!abort);
57  return REPOSITORY_DOES_NOT_EXIST;
58 }
59 
60 int Rpl_info_dummy::do_flush_info(const bool force __attribute__((unused)))
61 {
62  DBUG_ASSERT(!abort);
63  return 0;
64 }
65 
66 void Rpl_info_dummy::do_end_info()
67 {
68  return;
69 }
70 
71 int Rpl_info_dummy::do_remove_info()
72 {
73  DBUG_ASSERT(!abort);
74  return 0;
75 }
76 
77 int Rpl_info_dummy::do_clean_info()
78 {
79  DBUG_ASSERT(!abort);
80  return 0;
81 }
82 
83 uint Rpl_info_dummy::do_get_rpl_info_type()
84 {
85  return INFO_REPOSITORY_DUMMY;
86 }
87 
88 bool Rpl_info_dummy::do_set_info(const int pos __attribute__((unused)),
89  const char *value __attribute__((unused)))
90 {
91  DBUG_ASSERT(!abort);
92 
93  return FALSE;
94 }
95 
96 bool Rpl_info_dummy::do_set_info(const int pos __attribute__((unused)),
97  const uchar *value __attribute__((unused)),
98  const size_t size __attribute__((unused)))
99 {
100  DBUG_ASSERT(!abort);
101 
102  return FALSE;
103 }
104 
105 bool Rpl_info_dummy::do_set_info(const int pos __attribute__((unused)),
106  const ulong value __attribute__((unused)))
107 {
108  DBUG_ASSERT(!abort);
109 
110  return FALSE;
111 }
112 
113 bool Rpl_info_dummy::do_set_info(const int pos __attribute__((unused)),
114  const int value __attribute__((unused)))
115 {
116  DBUG_ASSERT(!abort);
117 
118  return FALSE;
119 }
120 
121 bool Rpl_info_dummy::do_set_info(const int pos __attribute__((unused)),
122  const float value __attribute__((unused)))
123 {
124  DBUG_ASSERT(!abort);
125 
126  return FALSE;
127 }
128 
129 bool Rpl_info_dummy::do_set_info(const int pos __attribute__((unused)),
130  const Dynamic_ids *value __attribute__((unused)))
131 {
132  DBUG_ASSERT(!abort);
133 
134  return FALSE;
135 }
136 
137 bool Rpl_info_dummy::do_get_info(const int pos __attribute__((unused)),
138  char *value __attribute__((unused)),
139  const size_t size __attribute__((unused)),
140  const char *default_value __attribute__((unused)))
141 {
142  DBUG_ASSERT(!abort);
143 
144  return FALSE;
145 }
146 
147 bool Rpl_info_dummy::do_get_info(const int pos __attribute__((unused)),
148  uchar *value __attribute__((unused)),
149  const size_t size __attribute__((unused)),
150  const uchar *default_value __attribute__((unused)))
151 {
152  DBUG_ASSERT(!abort);
153 
154  return FALSE;
155 }
156 
157 bool Rpl_info_dummy::do_get_info(const int pos __attribute__((unused)),
158  ulong *value __attribute__((unused)),
159  const ulong default_value __attribute__((unused)))
160 {
161  DBUG_ASSERT(!abort);
162 
163  return FALSE;
164 }
165 
166 bool Rpl_info_dummy::do_get_info(const int pos __attribute__((unused)),
167  int *value __attribute__((unused)),
168  const int default_value __attribute__((unused)))
169 {
170  DBUG_ASSERT(!abort);
171 
172  return FALSE;
173 }
174 
175 bool Rpl_info_dummy::do_get_info(const int pos __attribute__((unused)),
176  float *value __attribute__((unused)),
177  const float default_value __attribute__((unused)))
178 {
179  DBUG_ASSERT(!abort);
180 
181  return FALSE;
182 }
183 
184 bool Rpl_info_dummy::do_get_info(const int pos __attribute__((unused)),
185  Dynamic_ids *value __attribute__((unused)),
186  const Dynamic_ids *default_value __attribute__((unused)))
187 {
188  DBUG_ASSERT(!abort);
189 
190  return FALSE;
191 }
192 
193 char* Rpl_info_dummy::do_get_description_info()
194 {
195  DBUG_ASSERT(!abort);
196 
197  return NULL;
198 }
199 
200 bool Rpl_info_dummy::do_is_transactional()
201 {
202  DBUG_ASSERT(!abort);
203 
204  return FALSE;
205 }
206 
207 bool Rpl_info_dummy::do_update_is_transactional()
208 {
209  DBUG_ASSERT(!abort);
210 
211  return FALSE;
212 }