Skip to content

Commit

Permalink
0001014: Don't write STOPPED for the last server id in sym_lock when …
Browse files Browse the repository at this point in the history
…releasing an infinite lock
  • Loading branch information
chenson42 committed Jan 29, 2013
1 parent 8a8a9e2 commit 54a1b01
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -163,7 +163,8 @@ public void unlock(final String action) {
}

protected boolean unlock(String action, String serverId) {
return sqlTemplate.update(getSql("releaseLockSql"), new Object[] { serverId, action,
String lastLockingServerId = serverId.equals(Lock.STOPPED) ? null : serverId;
return sqlTemplate.update(getSql("releaseLockSql"), new Object[] { lastLockingServerId, action,
serverId }) > 0;
}

Expand Down

0 comments on commit 54a1b01

Please sign in to comment.