diff --git a/servant/libservant/ObjectProxy.cpp b/servant/libservant/ObjectProxy.cpp index 660710f..096380c 100755 --- a/servant/libservant/ObjectProxy.cpp +++ b/servant/libservant/ObjectProxy.cpp @@ -237,6 +237,11 @@ void ObjectProxy::doInvokeException(ReqMessage * msg) //标识请求异常 msg->eStatus = ReqMessage::REQ_EXC; + if (!msg->adapter) + { + msg->adapter->stat(msg); + } + if(msg->eType == ReqMessage::SYNC_CALL) { if(!msg->sched) diff --git a/servant/servant/AdapterProxy.h b/servant/servant/AdapterProxy.h index cde60ed..d6e4c64 100644 --- a/servant/servant/AdapterProxy.h +++ b/servant/servant/AdapterProxy.h @@ -221,6 +221,11 @@ public: */ TC_TimeoutQueueNew * getTimeoutQueue() { return _timeoutQueue.get(); } + /** + * 模块间调用信息的统计 + */ + void stat(ReqMessage * msg); + protected: //创建完网络句柄后的回调 @@ -268,11 +273,6 @@ private: */ void initStatHead(); - /** - * 模块间调用信息的统计 - */ - void stat(ReqMessage * msg); - /** * 模块间调用信息的合并 */