Commit 6d0d935
committed
tapgarden: remove duplicate batch freeze
In this commit, we update the caretaker start logic to remove an
unnecessary batch write. Before we start the caretaker, we write the
batch with the Frozen state, but we don't update the in-memory pending
batch to move from the Pending to Frozen state. This causes the
caretaker to write the batch again on start. We can address this by
updating the in-memory batch after a successful batch freeze.1 parent 75ee8c8 commit 6d0d935
1 file changed
+5
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
636 | 636 | | |
637 | 637 | | |
638 | 638 | | |
639 | | - | |
640 | | - | |
641 | 639 | | |
642 | 640 | | |
643 | 641 | | |
| |||
677 | 675 | | |
678 | 676 | | |
679 | 677 | | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | 678 | | |
685 | 679 | | |
686 | 680 | | |
| |||
691 | 685 | | |
692 | 686 | | |
693 | 687 | | |
694 | | - | |
695 | | - | |
696 | | - | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
697 | 693 | | |
698 | 694 | | |
699 | 695 | | |
| |||
0 commit comments