This commit is contained in:
2024-08-16 14:46:16 +08:00
parent 1dd365124d
commit f37a265bd6

View File

@@ -823,11 +823,12 @@ select id from tmp1 where rk = 1
assertBatchEditable(batch);
@Cleanup("unlock") RLock lock = redissonClient.getLock("batchModify." + batch.getId());
boolean tryLock = lock.tryLock();
if (!tryLock) {
if (!lock.tryLock()) {
lock = null;
batchModifing(batch);
}