Skip to content

Commit 070183c

Browse files
committed
MDEV-26325 Shutdown hangs whenever named pipes were used for connections.
This was a regression introduced in MDEV-18353, where to CONNECT objects were incorrectly counted for named pipes.
1 parent 10db7fc commit 070183c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sql/sql_connect.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ class CONNECT : public ilink {
3535
#ifdef _WIN32
3636
HANDLE pipe;
3737
CONNECT(HANDLE pipe_arg): pipe(pipe_arg), vio_type(VIO_TYPE_NAMEDPIPE),
38-
scheduler(thread_scheduler), thread_id(0), prior_thr_create_utime(0) {}
38+
scheduler(thread_scheduler), thread_id(0), prior_thr_create_utime(0)
39+
{
40+
count++;
41+
}
3942
#endif
4043
enum enum_vio_type vio_type;
4144
scheduler_functions *scheduler;

0 commit comments

Comments
 (0)