Skip to content

Commit 1def892

Browse files
committed
Remove all the printfs
1 parent 3922329 commit 1def892

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

storage/innobase/dict/mem.cc

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -158,37 +158,26 @@ static std::vector<std::string> innobase_system_databases({
158158
static bool dict_mem_table_is_system(const std::string &name) {
159159
/* Table has the following format: database/table and some system table are
160160
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)
164162
return true;
165-
}
166163

167164
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)
171166
return true;
172-
}
173167
}
174168

175-
printf("PIKI: false\n");
176169
return false;
177170
}
178171

179172
void dict_add_system_prefix(const char *pfx) {
180-
printf("PIKI: add \"%s\"\n", pfx);
181173
if (!pfx || !pfx[0])
182174
return;
175+
183176
std::string pfx_s = pfx;
184177
if (pfx_s[pfx_s.size()-1] != '/')
185178
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())
187180
innobase_system_databases.push_back(pfx_s);
188-
}
189-
else {
190-
printf("PIKI: already present\n");
191-
}
192181
}
193182

194183
/** Creates a table memory object.

0 commit comments

Comments
 (0)