Skip to content

Commit e6c3942

Browse files
committed
artifact_cache: keep access points that we're waiting for up-to-date, even if we don't get the result, so that they are not prematurely cancelled.
1 parent 980c5a4 commit e6c3942

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/artifact_cache/artifact_cache.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ ac_artifact_from_key_(Access *access, String8 key, AC_ArtifactParams *params, U6
141141
node->key = str8_copy(stripe->arena, key);
142142
node->working_count = 1;
143143
node->evict_threshold_us = params->evict_threshold_us;
144-
node->access_pt.last_time_touched_us = os_now_microseconds();
145-
node->access_pt.last_update_idx_touched = update_tick_idx();
146144
}
145+
node->access_pt.last_time_touched_us = os_now_microseconds();
146+
node->access_pt.last_update_idx_touched = update_tick_idx();
147147

148148
// rjf: request
149149
if(need_request)

0 commit comments

Comments
 (0)