Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
MXS-1786: Fix hang on COM_STATISTICS
The commands needs to be handled separately from the rest of the result types. Added a test case that reproduces the problem and verifies that the change in code fixes it.
- Loading branch information
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| /** | ||
| * MXS-1786: Hang with COM_STATISTICS | ||
| */ | ||
|
|
||
| #include "testconnections.h" | ||
|
|
||
| int main(int argc, char* argv[]) | ||
| { | ||
| TestConnections test(argc, argv); | ||
|
|
||
| test.maxscales->connect(); | ||
|
|
||
| for (int i = 0; i < 10; i++) | ||
| { | ||
| test.set_timeout(10); | ||
| mysql_stat(test.maxscales->conn_rwsplit[0]); | ||
| test.try_query(test.maxscales->conn_rwsplit[0], "SELECT 1"); | ||
| } | ||
|
|
||
| test.maxscales->disconnect(); | ||
|
|
||
|
|
||
| return test.global_result; | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters