You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pegasus.apache.org by yu...@apache.org on 2021/08/02 03:28:36 UTC
[incubator-pegasus] branch master updated: fix: use reference to
catch exception (#798)
This is an automated email from the ASF dual-hosted git repository.
yuchenhe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git
The following commit(s) were added to refs/heads/master by this push:
new 874f868 fix: use reference to catch exception (#798)
874f868 is described below
commit 874f868aeb2eb9e96a17221f0e4d8e462e5955cf
Author: zhao liwei <zl...@163.com>
AuthorDate: Mon Aug 2 11:28:28 2021 +0800
fix: use reference to catch exception (#798)
---
src/server/pegasus_server_write.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/server/pegasus_server_write.cpp b/src/server/pegasus_server_write.cpp
index ef41b2b..804294c 100644
--- a/src/server/pegasus_server_write.cpp
+++ b/src/server/pegasus_server_write.cpp
@@ -64,7 +64,7 @@ int pegasus_server_write::on_batched_write_requests(dsn::message_ex **requests,
dassert_f(count == 1, "count = {}", count);
return iter->second(requests[0]);
}
- } catch (TTransportException ex) {
+ } catch (TTransportException &ex) {
_pfc_recent_corrupt_write_count->increment();
derror_replica("pegasus not batch write handler failed, from = {}, exception = {}",
requests[0]->header->from_address.to_string(),
@@ -108,7 +108,7 @@ int pegasus_server_write::on_batched_writes(dsn::message_ex **requests, int coun
dfatal_f("rpc code not handled: {}", rpc_code.to_string());
}
}
- } catch (TTransportException ex) {
+ } catch (TTransportException &ex) {
_pfc_recent_corrupt_write_count->increment();
derror_replica("pegasus batch writes handler failed, from = {}, exception = {}",
requests[i]->header->from_address.to_string(),
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pegasus.apache.org
For additional commands, e-mail: commits-help@pegasus.apache.org