Commit afd4083
Fix sync checkpoint race by ordering operation fetch
Move completion event signaling to after the execution state is updated
from the checkpoint response. This prevents a waiting user thread from
running the second status check before new operations are added, which
could lead to a duplicate START and stalled checkpoint thread.
This preserves the existing checkpoint API semantics while closing the
race window between completion signaling and state refresh.1 parent c2e9bdd commit afd4083
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | 616 | | |
622 | 617 | | |
623 | 618 | | |
624 | | - | |
| 619 | + | |
625 | 620 | | |
626 | 621 | | |
627 | 622 | | |
628 | 623 | | |
629 | 624 | | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
| |||
0 commit comments