fix:When generating seqId, the lock is handled incorrectly.

Signed-off-by: dong-peng25 <dongpeng25@huawei.com>
This commit is contained in:
dong-peng25 2022-09-07 15:41:11 +08:00
parent 80a97cba90
commit 85808330a8

View File

@ -40,9 +40,11 @@ uint64_t TransTdcGetNewSeqId(void)
static uint64_t seq = 0;
seq += TRANS_SEQ_STEP;
uint64_t retseq = seq;
ReleaseSessonConnLock();
return seq;
return retseq;
}
int32_t GenerateTdcChannelId(void)