Skip to content

Commit

Permalink
fix(pd):PartitionCache lockGraph Logic error (#2640)
Browse files Browse the repository at this point in the history
  • Loading branch information
haohao0103 authored Sep 24, 2024
1 parent c88963c commit d2906a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void waitGraphLock(String graphName) {

public void lockGraph(String graphName) {
var lock = getOrCreateGraphLock(graphName);
while (lock.compareAndSet(false, true)) {
while (!lock.compareAndSet(false, true)) {
Thread.onSpinWait();
}
}
Expand Down

0 comments on commit d2906a6

Please sign in to comment.