Skip to content

Commit

Permalink
scoot advance time back
Browse files Browse the repository at this point in the history
Signed-off-by: Brian L. Troutwine <[email protected]>
  • Loading branch information
blt committed Nov 12, 2024
1 parent 07ff0f3 commit ce9149d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lading/src/generator/file_gen/logrotate_fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ impl Filesystem for LogrotateFS {
) {
let tick = self.get_current_tick();
let mut state = self.state.lock().expect("lock poisoned");
state.advance_time(tick);

counter!("fs_release").increment(1);

Expand All @@ -376,10 +377,8 @@ impl Filesystem for LogrotateFS {
};

if let Some(file_handle) = file_handle {
// Close the file in the model, advance time.
// Close the file in the model
state.close_file(tick, file_handle);
state.advance_time(tick);

reply.ok();
} else {
reply.error(ENOENT);
Expand Down

0 comments on commit ce9149d

Please sign in to comment.