Fix bug with call to select(2)
authorTatsuo Ishii <ishii at sraoss.co.jp>
Thu, 16 Feb 2006 14:32:01 +0000 (14:32 +0000)
committerTatsuo Ishii <ishii at sraoss.co.jp>
Thu, 16 Feb 2006 14:32:01 +0000 (14:32 +0000)
pool_process_query.c

index ce240bea06fa2cd530ee42a84489fcc3bf33a9a4..0f565eaccc35ebe8351971c7d4ac46488e867e1f 100644 (file)
@@ -215,7 +215,7 @@ POOL_STATUS pool_process_query(POOL_CONNECTION *frontend,
                        {
                                if (DUAL_MODE)
                                        fds = select(Max(SECONDARY(backend)->fd,
-                                                                        Max(frontend->fd, MASTER(backend)->fd)+1),
+                                                                        Max(frontend->fd, MASTER(backend)->fd)) + 1,
                                                                 &readmask, &writemask, &exceptmask, NULL);
                                else
                                        fds = select(Max(frontend->fd, MASTER(backend)->fd)+1,