Skip to content

Commit

Permalink
- populate rpc field deadline based on the header setting
Browse files Browse the repository at this point in the history
Required-githooks: true

Signed-off-by: Alexander A Oganezov <[email protected]>
  • Loading branch information
frostedcmos committed Sep 18, 2024
1 parent c10a5bb commit 6dd84af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cart/crt_hg_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,9 @@ crt_hg_header_copy(struct crt_rpc_priv *in, struct crt_rpc_priv *out)

out->crp_req_hdr = in->crp_req_hdr;
out->crp_reply_hdr.cch_hlc = in->crp_reply_hdr.cch_hlc;
out->crp_deadline_sec = in->crp_deadline_sec;

/* Populate rpc_priv fields correctly based on the header copied */
out->crp_deadline_sec = in->crp_req_hdr.cch_src_deadline_sec;

if (!(out->crp_flags & CRT_RPC_FLAG_COLL))
return;
Expand Down
1 change: 1 addition & 0 deletions src/cart/crt_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ crt_gdata_dump(void)
DUMP_GDATA_FIELD("0x%lx", cg_rpcid);
DUMP_GDATA_FIELD("%ld", cg_num_cores);
DUMP_GDATA_FIELD("%d", cg_rpc_quota);
DUMP_GDATA_FIELD("%d", cg_start_time_sec);
}

/* first step init - for initializing crt_gdata */
Expand Down

0 comments on commit 6dd84af

Please sign in to comment.