DAOS-11684 dtx: use the address of tree handle for dtx_rpc_post
If we directly use the value of tree handle as dtx_rpc_post()'s input parameter, then it may be DAOS_HDL_INVAL before DTX helper ULT being scheduled. That will cause memory leak.
Signed-off-by: Fan Yong [email protected]
Bug-tracker data: Ticket title is 'Memory leak when batched DTX commit' Status is 'In Progress' Job should run at elevated priority (3) https://daosio.atlassian.net/browse/DAOS-11684
Test stage Build on Leap 15 with Intel-C and TARGET_PREFIX completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-10386/1/execution/node/449/log
Test stage Build on Leap 15 with Intel-C and TARGET_PREFIX completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-10386/2/execution/node/450/log
Test stage Functional Hardware Large completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-10386/4/testReport/(root)/
Test stage Python Bandit check completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-10386/5/execution/node/142/log
Test stage Functional Hardware Medium completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-10386/5/execution/node/1099/log
Test stage Functional Hardware Large completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-10386/5/execution/node/1190/log
Test stage Functional Hardware Large completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-10386/6/execution/node/1138/log
Related issue has been resolved via the patch https://github.com/daos-stack/daos/pull/10441, do not need this one any longer.