fix lock bug

This commit is contained in:
Looly
2020-12-07 18:39:21 +08:00
parent 97f1e8b3dd
commit 775afa68cc
2 changed files with 3 additions and 2 deletions

View File

@@ -174,7 +174,7 @@ public abstract class AbstractCache<K, V> implements Cache<K, V> {
return co.get(isUpdateLastAccess);
}
} finally {
lock.unlock(stamp);
lock.unlockRead(stamp);
}
// 过期