Skip to content

Commit

Permalink
oops, this is important
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeeter committed Nov 1, 2024
1 parent 28d0613 commit 489e0d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions upstairs/src/downstairs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,12 @@ impl Downstairs {
self.clients[i].set_delay_us(0);
}

// Special-case: if a Downstairs goes away midway through initial
// reconciliation, then we have to manually abort reconciliation.
if self.clients.iter().any(|c| c.state() == DsState::Reconcile) {
self.abort_reconciliation(up_state);
}

// If this client is coming back from being offline, then mark that its
// jobs must be replayed when it completes negotiation.
if self.clients[client_id].state() == DsState::Offline {
Expand Down
3 changes: 1 addition & 2 deletions upstairs/src/upstairs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2008,8 +2008,7 @@ impl Upstairs {
self.downstairs
.notify_nexus_of_client_task_stopped(client_id, reason);

self.downstairs
.reinitialize(client_id, &self.state);
self.downstairs.reinitialize(client_id, &self.state);
}

/// Sets both guest and per-client backpressure
Expand Down

0 comments on commit 489e0d5

Please sign in to comment.