fix the problem when ObAsyncRpcProxy send rpc failed and do not add response count and result
This commit is contained in:
@ -262,14 +262,10 @@ int ObAsyncRpcProxy<PC, RpcArg, RpcResult, Func>::call(
|
|||||||
RPC_LOG(WARN, "call rpc func failed", K(server), K(timeout),
|
RPC_LOG(WARN, "call rpc func failed", K(server), K(timeout),
|
||||||
K(cluster_id), K(tenant_id), K(arg), KR(ret));
|
K(cluster_id), K(tenant_id), K(arg), KR(ret));
|
||||||
}
|
}
|
||||||
if (OB_FAIL(ret)) {
|
|
||||||
cb_list_.remove_last();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (OB_FAIL(ret)) {
|
if (OB_FAIL(ret)) {
|
||||||
// free memory
|
// if send rpc failed, just call on_timeout to fill the result and add response count
|
||||||
cb->~ObAsyncCB();
|
cb->on_timeout();
|
||||||
allocator_.free(mem);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user