|
@@ -64,7 +64,7 @@ public class SeqlockInterceptor implements HandlerInterceptor {
|
|
String mapping = (String) request.getAttribute(HttpServletRequestAttribute.$_MAPPING.name());
|
|
String mapping = (String) request.getAttribute(HttpServletRequestAttribute.$_MAPPING.name());
|
|
|
|
|
|
if (null != globalSeqlock) {
|
|
if (null != globalSeqlock) {
|
|
- String key = CacheConstants.LOCK_SEQ_GLOBAL + mapping;
|
|
|
|
|
|
+ String key = CacheConstants.LOCK_REQUEST_GLOBAL + mapping;
|
|
|
|
|
|
if (redisClient.setIfAbsent(key, ThreadLocalUtil.getTraceId(), 60 * 5)) {
|
|
if (redisClient.setIfAbsent(key, ThreadLocalUtil.getTraceId(), 60 * 5)) {
|
|
LOG.info("{} global locked", key);
|
|
LOG.info("{} global locked", key);
|
|
@@ -80,7 +80,7 @@ public class SeqlockInterceptor implements HandlerInterceptor {
|
|
} else if (null != sessionSeqlock) {
|
|
} else if (null != sessionSeqlock) {
|
|
User user = (User) request.getAttribute(HttpServletRequestAttribute.$_ACCESS_USER.name());
|
|
User user = (User) request.getAttribute(HttpServletRequestAttribute.$_ACCESS_USER.name());
|
|
|
|
|
|
- String key = CacheConstants.LOCK_SEQ_SESSION + user.getKey();
|
|
|
|
|
|
+ String key = CacheConstants.LOCK_REQUEST_SESSION + user.getKey();
|
|
|
|
|
|
if (redisClient.setIfAbsent(key, ThreadLocalUtil.getTraceId(), 60 * 5)) {
|
|
if (redisClient.setIfAbsent(key, ThreadLocalUtil.getTraceId(), 60 * 5)) {
|
|
LOG.info("{} session locked", key);
|
|
LOG.info("{} session locked", key);
|