@@ -158,37 +158,26 @@ static std::vector<std::string> innobase_system_databases({
158
158
static bool dict_mem_table_is_system (const std::string &name) {
159
159
/* Table has the following format: database/table and some system table are
160
160
of the form SYS_* */
161
- printf (" PIKI: is_system?(\" %s\" )\n " , name.c_str ());
162
- if (name.find (' /' ) == std::string::npos) {
163
- printf (" PIKI: true, no slash\n " );
161
+ if (name.find (' /' ) == std::string::npos)
164
162
return true ;
165
- }
166
163
167
164
for (auto p : innobase_system_databases) {
168
- printf (" PIKI: compare to \" %s\"\n " , p.c_str ());
169
- if (name.length () > p.length () && name.compare (0 , p.length (), p) == 0 ) {
170
- printf (" PIKI: true\n " );
165
+ if (name.length () > p.length () && name.compare (0 , p.length (), p) == 0 )
171
166
return true ;
172
- }
173
167
}
174
168
175
- printf (" PIKI: false\n " );
176
169
return false ;
177
170
}
178
171
179
172
void dict_add_system_prefix (const char *pfx) {
180
- printf (" PIKI: add \" %s\"\n " , pfx);
181
173
if (!pfx || !pfx[0 ])
182
174
return ;
175
+
183
176
std::string pfx_s = pfx;
184
177
if (pfx_s[pfx_s.size ()-1 ] != ' /' )
185
178
pfx_s += ' /' ;
186
- if (std::find (innobase_system_databases.begin (), innobase_system_databases.end (), pfx_s) == innobase_system_databases.end ()) {
179
+ if (std::find (innobase_system_databases.begin (), innobase_system_databases.end (), pfx_s) == innobase_system_databases.end ())
187
180
innobase_system_databases.push_back (pfx_s);
188
- }
189
- else {
190
- printf (" PIKI: already present\n " );
191
- }
192
181
}
193
182
194
183
/* * Creates a table memory object.
0 commit comments