Skip to content

Commit

Permalink
hotfix: 락 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
sangwonsheep committed Dec 12, 2024
1 parent cb76a72 commit 435dbc1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class MysqlLockProvider implements LockProvider {
@Override
public boolean acquireLock(String key, long timeout, Long userId) {
String sql = "SELECT GET_LOCK(?, ?)";
String lockKey = key + "_" + userId;
String lockKey = userId + "";
log.debug("lockKey : {}", lockKey);
Boolean result = jdbcTemplate.queryForObject(sql, Boolean.class, lockKey, timeout / 1000);
return Boolean.TRUE.equals(result); // null인 경우 false 반환
Expand Down

0 comments on commit 435dbc1

Please sign in to comment.