回滚GridFsManager的代码把锁加在CleanService上

This commit is contained in:
ocean23 2021-01-02 12:39:36 +08:00
parent ead9f08e52
commit 05181c34ec

View File

@ -120,7 +120,7 @@ public class CleanService {
// 只要第一个server抢到锁其他server就会返回所以锁10分钟应该足够了 // 只要第一个server抢到锁其他server就会返回所以锁10分钟应该足够了
boolean lock = lockService.lock(deleteFsLock, 10 * 60 * 1000); boolean lock = lockService.lock(deleteFsLock, 10 * 60 * 1000);
if (!lock) { if (!lock) {
log.info("[GridFsManager] deleted task is running, it's ok to return."); log.info("[GridFsManager] deleted task is running, just return.");
return; return;
} }
Stopwatch stopwatch = Stopwatch.createStarted(); Stopwatch stopwatch = Stopwatch.createStarted();