Skip to content

Commit 0ba6ed1

Browse files
unlock fix
1 parent 6e52f8d commit 0ba6ed1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

framework/db/src/main/java/com/cloud/utils/db/GlobalLock.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ public boolean unlock() {
313313
}
314314
if (ownerThread == Thread.currentThread()) {
315315
lockCount--;
316-
if (lockCount < 0) {
316+
if (lockCount < 1) {
317317
ownerThread = null;
318318
boolean result = DbUtil.releaseGlobalLock(name);
319319

0 commit comments

Comments
 (0)