Skip to content

Commit 6148c6f

Browse files
committed
close #2639
1 parent a038d23 commit 6148c6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hugegraph-pd/hg-pd-common/src/main/java/org/apache/hugegraph/pd/common/PartitionCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public void waitGraphLock(String graphName) {
8585

8686
public void lockGraph(String graphName) {
8787
var lock = getOrCreateGraphLock(graphName);
88-
while (lock.compareAndSet(false, true)) {
88+
while (!lock.compareAndSet(false, true)) {
8989
Thread.onSpinWait();
9090
}
9191
}

0 commit comments

Comments
 (0)