Browse Source

Fix mysql monothread test. (#5667)

Matthieu Garrigues 5 years ago
parent
commit
1a7df68794
1 changed files with 0 additions and 6 deletions
  1. 0 6
      frameworks/C++/lithium/lithium.cc

+ 0 - 6
frameworks/C++/lithium/lithium.cc

@@ -75,18 +75,12 @@ int main(int argc, char* argv[]) {
 
 
   int nprocs = std::thread::hardware_concurrency();
   int nprocs = std::thread::hardware_concurrency();
 
 
-#if TFB_MYSQL
-  int nthreads = nprocs;
-#elif TFB_PGSQL
-
 #if MONOTHREAD
 #if MONOTHREAD
   int nthreads = 1;
   int nthreads = 1;
 #else
 #else
   int nthreads = nprocs;
   int nthreads = nprocs;
 #endif
 #endif
 
 
-#endif
-
 #if TFB_MYSQL
 #if TFB_MYSQL
   auto sql_db = mysql_database(s::host = argv[1], s::database = "hello_world", s::user = "benchmarkdbuser",
   auto sql_db = mysql_database(s::host = argv[1], s::database = "hello_world", s::user = "benchmarkdbuser",
                 s::password = "benchmarkdbpass", s::port = 3306, s::charset = "utf8");
                 s::password = "benchmarkdbpass", s::port = 3306, s::charset = "utf8");