Skip to content

Commit

Permalink
lyc 17
Browse files Browse the repository at this point in the history
  • Loading branch information
acelyc111 committed Jan 24, 2024
1 parent 5dbba78 commit 64f5115
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/runtime/rpc/rpc_engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,13 @@ struct service_app_spec;
//
// client matcher for matching RPC request and RPC response, and handling timeout
// (1) the whole network may share a single client matcher,
// (2) or we usually prefere each <src, dst> pair use a client matcher to have better inquery
// (2) or we usually prefer each <src, dst> pair use a client matcher to have better query
// performance
// (3) or we have certain cases we want RPC responses from node which is not the initial target node
// the RPC request message is sent to. In this case, a shared rpc_engine level matcher is used.
//
// WE NOW USE option (3) so as to enable more features and the performance should not be degraded
// (due to
// less std::shared_ptr<rpc_client_matcher> operations in rpc_timeout_task
// (due to less std::shared_ptr<rpc_client_matcher> operations in rpc_timeout_task)
//
#define MATCHER_BUCKET_NR 13
class rpc_client_matcher : public ref_counter
Expand Down
4 changes: 2 additions & 2 deletions src/runtime/rpc/rpc_message.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ class message_ex : public ref_counter, public extensible_object<message_ex, 4>
rpc_session_ptr io_session; // send/recv session
rpc_address to_address; // always ipv4/v6 address, it is the to_node's net address
rpc_address server_address; // used by requests, and may be of uri/group address
host_port to_host_port; // fqdn from to_address, older versions use fqdn as net
host_port server_host_port; // fqdn from server_address, older versions use fqdn as net
host_port to_host_port; // fqdn from 'to_address', older versions use fqdn as net
host_port server_host_port; // fqdn from 'server_address', older versions use fqdn as net
dsn::task_code local_rpc_code;
network_header_format hdr_format;
int send_retry_count;
Expand Down

0 comments on commit 64f5115

Please sign in to comment.