Skip to content

Commit 27e2bfa

Browse files
jasonk000absurdfarce
authored andcommitted
Fix race condition in ClockSeqAndNodeContainer
patch by Jason Koch; reviewed by Lukasz Antoniak and Bret McGuire reference: #2050
1 parent 3f5f3ac commit 27e2bfa

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • core/src/main/java/com/datastax/oss/driver/api/core/uuid

core/src/main/java/com/datastax/oss/driver/api/core/uuid/Uuids.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,8 @@ private long get() {
141141
if (!initialized) {
142142
synchronized (ClockSeqAndNodeContainer.class) {
143143
if (!initialized) {
144-
145-
initialized = true;
146144
val = makeClockSeqAndNode();
145+
initialized = true;
147146
}
148147
}
149148
}

0 commit comments

Comments
 (0)