Commit b5cf8ca
fix: use state field for ClusterShutdown instead of local variable (#458)
ClusterShutdown in ClusterManagerState was checked by update handlers to
reject work after shutdown, but was never set — only a local shouldShutdown
variable was set. This made the shutdown guard dead code, allowing updates
to slip through during the AllHandlersFinished drain. Replace shouldShutdown
with cm.state.ClusterShutdown as the single source of truth.
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 2d3ec87 commit b5cf8ca
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
296 | 295 | | |
297 | 296 | | |
298 | | - | |
| 297 | + | |
299 | 298 | | |
300 | 299 | | |
301 | 300 | | |
302 | 301 | | |
303 | 302 | | |
304 | | - | |
| 303 | + | |
305 | 304 | | |
306 | 305 | | |
307 | 306 | | |
| |||
0 commit comments