[PD] Simplify late-abort quiescent ack branch to else (#40711)
This commit is contained in:
@@ -2485,10 +2485,10 @@ class MooncakeKVManager(StagingManagerMixin, CommonKVManager):
|
||||
f"Received abort notification for room {room_to_be_aborted}, "
|
||||
f"marked as Failed; ACK deferred until transfer drains"
|
||||
)
|
||||
elif self._staging_outstanding.get(room_to_be_aborted, 0) == 0:
|
||||
# Concluded/unknown AND quiescent: ack now. A cleared
|
||||
# room is not automatically quiescent -- clear() can
|
||||
# drop a room whose chunk is still transferring.
|
||||
else:
|
||||
# Concluded/unknown AND quiescent (the branch above
|
||||
# already took every case with writes outstanding):
|
||||
# ack now so decode releases without the timeout.
|
||||
self._send_abort_ack(
|
||||
decode_ip, decode_port, room_to_be_aborted
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user