Skip to content

Commit 3e4ed78

Browse files
unlock fix
1 parent c88c5b5 commit 3e4ed78

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)