Skip to content

Commit

Permalink
comment on timer lifetime; #9870 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
problame committed Dec 2, 2024
1 parent be2d64b commit 5d778ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pageserver/src/page_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1015,6 +1015,8 @@ impl PageServerHandler {
}
},
Ok((response_msg, timer)) => {
// Extending the lifetime of the timers so observations on drop
// include the flush time.
timers.push(timer);
response_msg
}
Expand Down

0 comments on commit 5d778ee

Please sign in to comment.