提交 7bd1871f 编写于 作者: Z zhiru

clear debug log


Former-commit-id: a956a0f8d55bcb51d826f109ef2dc77746b09611
上级 7f24723e
......@@ -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;
}
}
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册