Commit 142f984
committed
kvcoord: reset HasBufferedAllPrecedingWrites for multi-batch flush
HasBufferedAllPrecedingWrites should only be set when the write buffer
_knows_ that no writes have been issued. In the case of a multi-batch
flush, the second batch should not have HasBufferedAllPrecedingWrites
set to true since the first batch contained writes.
Fixes #153509
Release note: None1 parent 33c0b2e commit 142f984
File tree
2 files changed
+46
-0
lines changed- pkg/kv/kvclient/kvcoord
2 files changed
+46
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1826 | 1826 | | |
1827 | 1827 | | |
1828 | 1828 | | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
1829 | 1832 | | |
1830 | 1833 | | |
1831 | 1834 | | |
| |||
Lines changed: 43 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2671 | 2671 | | |
2672 | 2672 | | |
2673 | 2673 | | |
| 2674 | + | |
| 2675 | + | |
| 2676 | + | |
| 2677 | + | |
| 2678 | + | |
| 2679 | + | |
| 2680 | + | |
| 2681 | + | |
| 2682 | + | |
| 2683 | + | |
| 2684 | + | |
| 2685 | + | |
| 2686 | + | |
| 2687 | + | |
| 2688 | + | |
| 2689 | + | |
| 2690 | + | |
| 2691 | + | |
| 2692 | + | |
| 2693 | + | |
| 2694 | + | |
| 2695 | + | |
| 2696 | + | |
| 2697 | + | |
| 2698 | + | |
| 2699 | + | |
| 2700 | + | |
| 2701 | + | |
| 2702 | + | |
| 2703 | + | |
| 2704 | + | |
| 2705 | + | |
| 2706 | + | |
| 2707 | + | |
| 2708 | + | |
| 2709 | + | |
| 2710 | + | |
| 2711 | + | |
| 2712 | + | |
| 2713 | + | |
| 2714 | + | |
| 2715 | + | |
| 2716 | + | |
2674 | 2717 | | |
2675 | 2718 | | |
2676 | 2719 | | |
| |||
0 commit comments