mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-01 15:47:01 +08:00
Merge pull request #2785 from Kingdon1992/fix_bug_in_ThreadLocalIndex
[ISSUE #2783]Fix bug in ThreadLocalIndex
This commit is contained in:
@@ -30,9 +30,8 @@ public class ThreadLocalIndex {
|
||||
this.threadLocalIndex.set(index);
|
||||
}
|
||||
|
||||
index = Math.abs(index + 1);
|
||||
this.threadLocalIndex.set(index);
|
||||
return index;
|
||||
this.threadLocalIndex.set(++index);
|
||||
return Math.abs(index);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user