fix cache 4016

This commit is contained in:
z404289981
2024-05-10 05:18:37 +00:00
committed by ob-robot
parent 24e9be1a98
commit 8d4b729d11

View File

@ -232,7 +232,7 @@ int ObKVCacheHazardStation::acquire(int64_t &slot_id)
curr = (curr + 1) % slot_num_;
if (curr == end) {
if (++retry_count >= MAX_ACQUIRE_RETRY_COUNT) {
ret = OB_ERR_UNEXPECTED;
ret = OB_ENTRY_NOT_EXIST;
COMMON_LOG(WARN, "There is no free slot for current thread", K(ret), K(retry_count));
} else {
sched_yield();