Skip to content

Commit

Permalink
DOSE-703 Fix next_tick to actually advance (openzfs#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaybee authored Oct 4, 2021
1 parent 89e2853 commit f6e966e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/zfs_object_agent/zettacache/src/zettacache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -800,9 +800,9 @@ impl ZettaCache {
mut merge_rx: Option<tokio::sync::mpsc::Receiver<MergeMessage>>,
mut next_index: Option<ZettaCacheIndexPhys>,
) {
let next_tick = tokio::time::Instant::now();
let mut next_tick = tokio::time::Instant::now();
loop {
let next_tick = std::cmp::max(
next_tick = std::cmp::max(
tokio::time::Instant::now(),
next_tick + *CHECKPOINT_INTERVAL,
);
Expand Down

0 comments on commit f6e966e

Please sign in to comment.