Skip to content

Commit

Permalink
Update entry's timestamps immediately after insertion
Browse files Browse the repository at this point in the history
Remove unused statements.
  • Loading branch information
tatsuya6502 committed Jun 25, 2022
1 parent 2d0b31c commit 26b0e96
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/dash/base_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -813,8 +813,6 @@ where
freq: &FrequencySketch,
counters: &mut EvictionCounters,
) {
// entry.set_last_accessed(timestamp);
// entry.set_last_modified(timestamp);
entry.set_dirty(false);

if entry.is_admitted() {
Expand Down
2 changes: 0 additions & 2 deletions src/sync_base/base_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -994,8 +994,6 @@ where
freq: &FrequencySketch,
counters: &mut EvictionCounters,
) {
// entry.set_last_accessed(timestamp);
// entry.set_last_modified(timestamp);
entry.set_dirty(false);

if entry.is_admitted() {
Expand Down

0 comments on commit 26b0e96

Please sign in to comment.