Open Masquerade6 opened 2 years ago
Long transId = HmilyContextHolder.get().getTransId(); Long transId = HmilyTransactionHolder.getInstance().getCurrentTransaction().getTransId();
只有在事务发起方才能得到事务id,其它地方调用HmilyContextHolder.get()和HmilyTransactionHolder.getInstance().getCurrentTransaction()拿到的都是null?这是bug还是使用不对?
存在threadLocal中的
Long transId = HmilyContextHolder.get().getTransId(); Long transId = HmilyTransactionHolder.getInstance().getCurrentTransaction().getTransId();
只有在事务发起方才能得到事务id,其它地方调用HmilyContextHolder.get()和HmilyTransactionHolder.getInstance().getCurrentTransaction()拿到的都是null?这是bug还是使用不对?