Commit f0e513e
committed
DAOS-17861 cart: fix err handling in corpc (#17299)
1. Some fail cases already set the rc by crt_corpc_fail_parent_rpc()/
crt_corpc_fail_child_rpc(), or called crt_corpc_complete() that will
reply parent already, so need to reset rc to 0 to avoid call
crt_hg_reply_error_send() again or drop refcount.
2. Fix a refcount leak in a case when need not call local RPC handler
in middle node.
Signed-off-by: Xuezhao Liu <xuezhao.liu@hpe.com>1 parent f455361 commit f0e513e
2 files changed
+28
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
790 | 790 | | |
791 | 791 | | |
792 | 792 | | |
793 | | - | |
794 | | - | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
795 | 800 | | |
796 | 801 | | |
797 | 802 | | |
| |||
908 | 913 | | |
909 | 914 | | |
910 | 915 | | |
911 | | - | |
912 | | - | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
913 | 924 | | |
914 | | - | |
915 | | - | |
916 | | - | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
917 | 930 | | |
918 | | - | |
919 | | - | |
920 | | - | |
921 | | - | |
922 | | - | |
923 | | - | |
924 | | - | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
925 | 938 | | |
926 | 939 | | |
927 | 940 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1470 | 1470 | | |
1471 | 1471 | | |
1472 | 1472 | | |
| 1473 | + | |
1473 | 1474 | | |
1474 | 1475 | | |
1475 | 1476 | | |
| |||
0 commit comments