Skip to content

Commit

Permalink
Fix message cleaner & saver potential deadlock (#901)
Browse files Browse the repository at this point in the history
  • Loading branch information
spetz authored Apr 14, 2024
1 parent 6e7cabe commit ea50337
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "server"
version = "0.2.18"
version = "0.2.19"
edition = "2021"
build = "src/build.rs"

Expand Down
2 changes: 1 addition & 1 deletion server/src/channels/commands/clean_messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl MessagesCleaner {
impl ServerCommand<CleanMessagesCommand> for CleanMessagesExecutor {
async fn execute(&mut self, system: &SharedSystem, _command: CleanMessagesCommand) {
let now = IggyTimestamp::now().to_micros();
let system = system.write();
let system = system.read();
let streams = system.get_streams();
for stream in streams {
let topics = stream.get_topics();
Expand Down

0 comments on commit ea50337

Please sign in to comment.