summaryrefslogtreecommitdiff
path: root/sql-common
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2012-01-30 13:45:58 +0100
committerunknown <knielsen@knielsen-hq.org>2012-01-30 13:45:58 +0100
commit7c8ebb532eef543a9b98107c164a12a49e28d0ca (patch)
treed4f5e863949947c0737d07749528d5479251fda6 /sql-common
parentd5678e1778d684610b50ab8f2b8f11289d075c02 (diff)
downloadmariadb-git-7c8ebb532eef543a9b98107c164a12a49e28d0ca.tar.gz
MWL#192: Fix problem when we first enable MYSQL_OPT_NONBLOCK, then connect
in normal blocking style, then later do a non-blocking operation. In this case, the vio->async_context was not set up correctly, so that non-blocking operation was not properly handled.
Diffstat (limited to 'sql-common')
-rw-r--r--sql-common/client.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql-common/client.c b/sql-common/client.c
index ad407136b92..b047d177830 100644
--- a/sql-common/client.c
+++ b/sql-common/client.c
@@ -2841,8 +2841,7 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,const char *host, const char *user,
goto error;
}
- if (mysql->options.extension && mysql->options.extension->async_context &&
- mysql->options.extension->async_context->active)
+ if (mysql->options.extension && mysql->options.extension->async_context)
net->vio->async_context= mysql->options.extension->async_context;
if (my_net_init(net, net->vio))