summaryrefslogtreecommitdiff
path: root/src/storage/cache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage/cache.cc')
-rw-r--r--src/storage/cache.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/storage/cache.cc b/src/storage/cache.cc
index 2630632..dccab47 100644
--- a/src/storage/cache.cc
+++ b/src/storage/cache.cc
@@ -87,7 +87,11 @@ Response Cache::is_access_cleared(Accessor accessor, int address)
if (this->is_waiting)
r = BLOCKED;
else if (this->wait_time == 0) {
+ this->requester = IDLE;
+ this->wait_time = delay;
r = OK;
+ } else {
+ --this->wait_time;
}
}
return r;