mirror of https://github.com/apache/nifi.git
NIFI-826 (part 3)
- fixed ID generation routine that was causing miss-identification of the components
This commit is contained in:
parent
1c6d58b959
commit
6c7c3c0822
|
@ -49,11 +49,11 @@ public class TypeOneUUIDGenerator {
|
||||||
long time;
|
long time;
|
||||||
|
|
||||||
synchronized (lock) {
|
synchronized (lock) {
|
||||||
if (currentTime > lastTime) {
|
if (currentTime == lastTime) {
|
||||||
|
++clockSequence;
|
||||||
|
} else {
|
||||||
lastTime = currentTime;
|
lastTime = currentTime;
|
||||||
clockSequence = 0;
|
clockSequence = 0;
|
||||||
} else {
|
|
||||||
++clockSequence;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue