clear debug log

Former-commit-id: a956a0f8d55bcb51d826f109ef2dc77746b09611
pull/191/head
zhiru 2019-06-26 13:54:29 +08:00
parent 7f24723ec7
commit 7bd1871f81
2 changed files with 6 additions and 6 deletions

View File

@ -45,7 +45,7 @@ public:
sleep(1);
}
ENGINE_LOG_DEBUG << "conns_in_use_ in grab: " << conns_in_use_ << std::endl;
// ENGINE_LOG_DEBUG << "conns_in_use_ in grab: " << conns_in_use_ << std::endl;
++conns_in_use_;
return mysqlpp::ConnectionPool::grab();
}
@ -53,10 +53,10 @@ public:
// Other half of in-use conn count limit
void release(const mysqlpp::Connection* pc) override {
mysqlpp::ConnectionPool::release(pc);
ENGINE_LOG_DEBUG << "conns_in_use_ in release: " << conns_in_use_ << std::endl;
// ENGINE_LOG_DEBUG << "conns_in_use_ in release: " << conns_in_use_ << std::endl;
--conns_in_use_;
if (conns_in_use_ < 0) {
ENGINE_LOG_DEBUG << "conns_in_use_ in release < 0: " << conns_in_use_ << std::endl;
ENGINE_LOG_ERROR << "conns_in_use_ in release less than zero: " << conns_in_use_ << std::endl;
}
}

View File

@ -326,7 +326,7 @@ namespace meta {
} else {
createTableQuery << "SELECT state FROM Tables " <<
"WHERE table_id = " << quote << table_schema.table_id_ << ";";
ENGINE_LOG_DEBUG << "Create Table : " << createTableQuery.str();
// ENGINE_LOG_DEBUG << "Create Table : " << createTableQuery.str();
StoreQueryResult res = createTableQuery.store();
assert(res && res.num_rows() <= 1);
if (res.num_rows() == 1) {
@ -338,7 +338,7 @@ namespace meta {
return Status::Error(msg);
}
}
ENGINE_LOG_DEBUG << "Create Table start";
// ENGINE_LOG_DEBUG << "Create Table start";
table_schema.files_cnt_ = 0;
table_schema.id_ = -1;
@ -358,7 +358,7 @@ namespace meta {
createTableQuery << "INSERT INTO Tables VALUES" <<
"(" << id << ", " << quote << table_id << ", " << state << ", " << dimension << ", " <<
created_on << ", " << files_cnt << ", " << engine_type << ", " << store_raw_data << ");";
ENGINE_LOG_DEBUG << "Create Table : " << createTableQuery.str();
// ENGINE_LOG_DEBUG << "Create Table : " << createTableQuery.str();
if (SimpleResult res = createTableQuery.execute()) {
table_schema.id_ = res.insert_id(); //Might need to use SELECT LAST_INSERT_ID()?
// std::cout << table_schema.id_ << std::endl;