diff --git a/cpp/src/db/MySQLConnectionPool.h b/cpp/src/db/MySQLConnectionPool.h index 7d3a1f88a3..bd047d56f8 100644 --- a/cpp/src/db/MySQLConnectionPool.h +++ b/cpp/src/db/MySQLConnectionPool.h @@ -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; } } diff --git a/cpp/src/db/MySQLMetaImpl.cpp b/cpp/src/db/MySQLMetaImpl.cpp index 6b733ec5ae..c860c667c4 100644 --- a/cpp/src/db/MySQLMetaImpl.cpp +++ b/cpp/src/db/MySQLMetaImpl.cpp @@ -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;