You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(cluster): defensive clamp on m_reqs_generated -= at three staging sites (#437)
PR #399 introduced a >= clamp at hold_pipeline; the three sibling sites
(connect_shard_connection, handle_cluster_slots, handle_moved) subtract
empty_staged.size() with no such guard. Today the invariant -- entries
in empty_staged are pre-decrement -- holds, but a refactor could break
it silently. Matching the pattern makes the invariant explicit and
future-proofs against subtle underflow to 2^64.
Refs: 2.4 review #12 (Review 1 + Review 16).
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments