Skip to content

Conversation

ipuustin
Copy link
Member

Description:
Compilation failed because Envoy::EnvoyException values were caught by value. Change the catching to references to fix the issue.

The error message was this:

source/extensions/filters/network/mysql_proxy/mysql_utils.cc:100:27: error: catching polymorphic type 'class Envoy::EnvoyException' by value [-Werror=catch-value=]

Risk Level: Low
Testing:
Ran unit tests. One test (MySQLCommandTest.MySQLTest39) failed. But since that test was expecting a success case (MYSQL_SUCCESS), the test failure probably isn't related. Without the patch, I couldn't run the test due to the compilation issue.
Docs Changes: N/A
Release Notes: N/A

Compilation fails because Envoy::EnvoyException values are caught by
value. Change the catching to references to fix the issue.

source/extensions/filters/network/mysql_proxy/mysql_utils.cc:100:27: error: catching polymorphic type 'class Envoy::EnvoyException' by value [-Werror=catch-value=]

Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@mattklein123 mattklein123 merged commit 681bd8f into envoyproxy:master Jan 21, 2019
danzh2010 pushed a commit to danzh2010/envoy that referenced this pull request Jan 24, 2019
Compilation fails because Envoy::EnvoyException values are caught by
value. Change the catching to references to fix the issue.

source/extensions/filters/network/mysql_proxy/mysql_utils.cc:100:27: error: catching polymorphic type 'class Envoy::EnvoyException' by value [-Werror=catch-value=]

Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
Signed-off-by: Dan Zhang <danzh@google.com>
fredlas pushed a commit to fredlas/envoy that referenced this pull request Mar 5, 2019
Compilation fails because Envoy::EnvoyException values are caught by
value. Change the catching to references to fix the issue.

source/extensions/filters/network/mysql_proxy/mysql_utils.cc:100:27: error: catching polymorphic type 'class Envoy::EnvoyException' by value [-Werror=catch-value=]

Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
Signed-off-by: Fred Douglas <fredlas@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants