Revert changes done in re6b772bbb596137e7f83dabaab46fc501fb6a8f5 - reason: breaks readline-history capability on linux
This is essentially a bug in MySQLs InnoDB database storage engine where connectionhandlers does not decrement the servers threadcount while trying to exit properly. Bugreport exists on mySQL bugtracker. --HG-- branch : trunk
This commit is contained in:
@@ -393,15 +393,6 @@ void CliRunnable::run()
|
|||||||
{
|
{
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
// Safe exit thread
|
|
||||||
#ifdef linux
|
|
||||||
while (!kb_hit_return() && !World::IsStopped())
|
|
||||||
// With this, we limit CLI to 10commands/second
|
|
||||||
usleep(100);
|
|
||||||
if (World::IsStopped())
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
char *command_str ; // = fgets(commandbuf,sizeof(commandbuf),stdin);
|
char *command_str ; // = fgets(commandbuf,sizeof(commandbuf),stdin);
|
||||||
|
|
||||||
#if PLATFORM == WINDOWS
|
#if PLATFORM == WINDOWS
|
||||||
|
|||||||
Reference in New Issue
Block a user