Update GlobalIdGenerator.java

This commit is contained in:
吴晟 Wu Sheng 2017-08-01 16:09:33 +08:00 committed by GitHub
parent 4fda33b16c
commit 8e8dab9391
1 changed files with 3 additions and 0 deletions

View File

@ -84,6 +84,9 @@ public final class GlobalIdGenerator {
}
private short nextThreadSeq() {
if (threadSeq == 10000) {
threadSeq = 0;
}
return threadSeq++;
}
}